View by category
How to identify and fix errors from Latex error codes in the built PDF?
Last updated on April 11, 2024Search for any of the below Keywords using CTRL+F in the PDF built with error logs.
- Error
- Warning
- Too many }’s
- Undefined control sequence
- Missing $ inserted
- Runaway argument
- Not found on input line
Few scenarios and resolutions to fix latex errors are given below.
Scenario 1: Missing citations
Cause: Citations to references do not appear in the built pdf due to incorrect tagging of .bib file.
Resolution: It is imperative that all source files (such as .tex, .bib, .bbl, .bst, .cls, .sty, .bst, etc.) are appropriately labelled under their respective ‘Manuscript/Revised Manuscript’ item type. Proper classification ensures a seamless compilation process.
Scenario 2: Fatal Error occurred, no output PDF file produced!
Cause: Missing one or more .tex files which are called in the main .tex file.
Solution: All.tex files should be tagged under ‘Manuscript/Revised Manuscript’ item type for the system to access the files for the compilation process.
Scenario 3: !Package pdftex.def Error: File ‘Figures/flow.pdf’ not found: using draft setting
Cause: Figure file path was used in \includegraphics command. In Editorial Manager (EM), all figures are uploaded to the working directory so figure file paths are not needed.
Solution: Remove the file path from \includegraphics command and upload the revised file and rebuild the PDF.
Scenario 4: Latex warning: File ‘Res_gain_III.png’ not found on input line 516
Cause: File ‘Res_gain_III.png’ is missing or incorrectly tagged to a different submission item.
Solution:
- Upload the missing file.
- If the submission still cannot be compiled after you have added the missing style file, check the following:
- Are your images correctly categorised under ‘Figure’ submission item type?
- Check whether the names or format of your figure files in the .tex file match with the file that you have uploaded.
Scenario 5: !Latex Error: Invalid UTF-8 byte “FC”
Cause: UTF character used in .tex file/.bib file
Solution: Change the UTF/special character to TeX code in line number 538.
Scenario 6: ! Package natbib Error: Bibliography not compatible with author-year citations
Cause: There is a compatibility issue with the author-year.
Solution: Remove the highlighted ‘authoryear’ from the document class command given below:
\documentclass[preprint,12pt,authoryear]{elsarticle}
The final command will be as below:
\documentclass[preprint,12pt]{elsarticle}
Scenario 7: Missing nomenclature in the built PDF.
Cause: EM does not support commands to generate nomenclature. For example, \makeindex.
Solution: Locally generated nomenclature files(.nls,.ilg) are required to build the PDF successfully.
Scenario 8: !Fatal package fontspecError
Cause: EM makes an automatic determination of the TeX package used. However, if the PDF builder fails in compiling your files correctly, click ‘ViewSubmission’ and check to see whether an error message appears in the compiler log file shown in the PDF as above.
Solution:
- To ensure that the PDF builds correctly, insert this directive into line 1 of your .tex manuscript file:
%!TEX TS-program = xelatex
- Save your .tex file using a different file name from the original and replace the uploaded .tex file with the new file. When you complete the submission and build the PDF again, EM should successfully process your XeLaTeX submission.
Scenario 9: Latex Error: File ‘jasr.sty’ not found
Cause: The jasr.sty file is not uploaded or wrongly categorised.
Solution: Upload the file under the respective submission item ‘Manuscript/Revised Manuscript’.
Scenario 10: !Package Subcaption Error
Cause: Package clash with \usepackage{subcaption}.
Resolution: Remove/comment the package \usepackage{subcaption}.
Did we answer your question?
Related answers
How to submit a LaTeX File in Editorial Manager?
Video Guide: Submitting a LaTeX file in Editorial Manager
Video Guide: How to download and complete the LaTeX template
Recently viewed answers
Functionality disabled due to your cookie preferences