Latex compilation error record and solution

Various errors are always encountered during the compilation of Latex, so they are organized into documents for easy reference.

  • Latex Reference [?]

In this case, I wrote it specifically for the blog, refer to: https://blog.csdn.net/Ryan_lee9410/article/details/104946657

  • Special characters are not escaped

This kind of error may be more common, with special symbols in the text or references or special language (Russian or the like) in the author's name, as shown in the figure below:

For example, the following "&" should be escaped with \

@book{RN265,
   author = {XXX,XXX,XXX},
   title = {XXXXXX},
   publisher = {Springer Science \& Business Media},
   ISBN = {XXX},
   year = {XXX},
   type = {XXX}
}
For other special symbols, please inquire and escape by yourself.

  • Import unnecessary packages

For journals submitted to Elsevier, if it is latex, you need to use elsarticle.cls, and you encounter an error paragraph ended before \@citex was complete.

Solution: remove or comment usepackage{cite}, you can.

 

  • Duplicate references

The compiler will display an error message such as "repeated ref entry", indicating that there are duplicate reference entries in the ref.bib file. Please check whether the references are duplicates.

  • Paragraph ended before XXX was complete.

If this kind of error occurs, it must be a parameter related to XXX or an input error of {}, sometimes missing or an extra "}", entering "{" into "}" by mistake will cause this kind of error, check XXX related one by one Can be written.

  • Error: Command XXX already defined.

If this happens, it means that the command line displayed in the error report or the imported package has been defined, and it may be imported repeatedly (check whether there is a repeated import of the package), or it may be the template that comes with it, and you have re-imported it yourself Again. Delete unnecessary imported packages, or use the commands that come with the template instead.

 

Update from time to time...

 

 

 

Guess you like

Origin blog.csdn.net/Ryan_lee9410/article/details/106049954