Questions tagged [compilation-error]
For Questions when the compiler failed to translate the source code due to a coding error or due to an error in the compiler itself.
544
questions
25
votes
2
answers
24k
views
Package ifluatex Error: Name clash, \ifluatex is already defined
I formatted my PC and then installed MikTeX and TexStudio. Now I can't compile my code. The error that appears is:
Package ifluatex Error: Name clash, \ifluatex is already defined }
Before ...
17
votes
3
answers
2k
views
How can I write the Spanish 'lím' instead of 'lim'?
Consider:
\documentclass{article}
\begin{document}
$\displaystyle\lim_{n\to\infty}$
\end{document}
This creates the typical limit symbol when n goes to infinity. However this code no longer works ...
14
votes
1
answer
15k
views
! Extra \endgroup error
After compiling my latex file using MikTek in Windows 10 using TexMaker, I get the following error.
! Extra \endgroup.
\document ->\endgroup
\let \BeforeStartOfDocument \@firstofone \cpt@beforest......
14
votes
1
answer
504
views
How to force LaTeX to error when an \include file is missing/misspelled?
The only file which was meant to be compiled in my Main.tex was specified by the following line:
\include{transformtaion}
It was compiled without any error using the following command:
pdflatex -...
14
votes
0
answers
36k
views
Overleaf cannot render any LaTex [closed]
I'm new to overleaf and I'm trying to render a basic document and I get:
"PDF Rendering Error Something went wrong while rendering this PDF."
Does anyone know what might cause this? I have tried ...
10
votes
2
answers
13k
views
Vimtex: how to display error messages?
I'm using LaTeX in Vim with plugins vimtex from lervag (GitHub link), latexmk and neovim, and it works just fine as long as I'm making no mistakes.
I press \ll and compile by writing (:w) and the ...
9
votes
1
answer
6k
views
Compilation failing because 'fontawesome5.sty' is not found when using package 'fontawesome5
I am unable to use the package "fontawesome5" as my compilation fails with the following error:
'! LaTeX Error: File `fontawesome5.sty' not found.'
The compilation runs fine on my Windows ...
7
votes
1
answer
986
views
Unable to compile with includegraphics using jmlr.cls
I am compiling a tex document using the jmlr.cls document class. It compiles okay without a figure but does not compile when I add a figure "circle.jpg" using the \includegraphics command. Any help is ...
7
votes
1
answer
14k
views
revtex4-1.cls not found in miktex2.9 in Windows 7
I have installed Miktex latest version today in a newly formatted Windows 7. Then tried to run a .tex file in Texstudio. That file starts with:
\documentclass[12pt,preprint,superscriptaddress,floatfix,...
7
votes
1
answer
303
views
`! Bad character code (-1)` when using monospace, Spanish, and the word starts with "r"
I'm facing a weird problem when trying to compile a PDF that contains a quoted word that starts with "r" while using the babel package in Spanish and monospace fonts.
This minimal example
\...
7
votes
0
answers
855
views
Pre-built preamble with LuaLaTeX and microtype
I have been trying to get super-fast compiles with LuaLaTeX by using a pre-built preamble for my documents. However, every time I try to compile, I get this error:
No file main.aux.
[\directlua]:1: ...
6
votes
3
answers
6k
views
Getting error "Undefined control sequence" for \acmBookTitle
I'm using Overleaf and I used the ACM template provided for submission to a conference. It's my first time with LaTeX and with OverLeaf.
I'm getting an error "Undefined control sequence" for the ...
6
votes
1
answer
471
views
lualatex: slow and tex capacity exceeded on large document
My original problem statement started like this:
I'm having trouble compiling a large document (.tex file is 4.4M) with lualatex. This is just an experiment, not a document I need to produce. There ...
6
votes
1
answer
332
views
exit code from lualatex when characters are missing
When pdflatex encounters a character it cannot encode into a font, it dies and produces a non-zero exit code. By contrast, lualatex happily produces an exit code of 0 and simply prints a warning:
...
6
votes
2
answers
268
views
Why won't this compile? Argument of \h has an extra {
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\newcommand{\x}[1][1]{\ensuremath{a_{n-#1}}}
\newcommand{\e}[1][\left(1+\dfrac{1+\sqrt{5}}{2}\right)-\left(\dfrac{1-\sqrt{5}}{2}\right)^{...
6
votes
1
answer
740
views
Compile despite invisible 0x08 (Backspace) character
Working with LaTeX, I often have a compilation error when writing exponentials in mathematical expressions, even though the syntax is valid. Recently I discovered this was due to a 'Backspace' ...
5
votes
2
answers
786
views
What's wrong with the xwatermark package?
On a relatively old MacTeX distribution (2015), the following code was compiling fine without any issue. But with the latest MacTeX, it doesn't compile well anymore. I'm getting some mysterious ...
5
votes
2
answers
931
views
Setting \familydefault as \sfdefault is causing the arrow character → to throw Package textcomp Error: Symbol \textrightarrow not provided
Minimal example:
\documentclass[12pt,a4paper,english]{abntex2}
\usepackage[utf8]{inputenc}
\usepackage[full]{textcomp}
\usepackage{mathcomp}
\usepackage{helvet}
\renewcommand{\familydefault}{\...
5
votes
2
answers
227
views
Why not using curly braces with operators made with \DeclareMathOperator give problems?
The following code compiles and generates the pdf properly:
\documentclass{article}
\usepackage{amsmath}
\DeclareMathOperator{\zero}{\overline{0}}
\begin{document}
Writing $V_\alpha$ does not give ...
5
votes
2
answers
22k
views
Package inputenc Error: Unicode character ² (U+B2)(inputenc) not set up for use with LaTeX. \acro{I2C}[I²C]
Package inputenc Error: Unicode character ² (U+B2)(inputenc) not set up for use with LaTeX. \acro{I2C}[I²C]{Inter-Integrated Circuit}
So I get this error I get when I try to compile my university ...
5
votes
1
answer
786
views
Subfiles failing with custom class
I'm writing a document using the AASTeX template, and would like to use the subfiles package to manage the sections.
I'm following the ShareLatex example available here, and have modified it to use ...
5
votes
1
answer
145
views
Tabularx, csvsimple and multicol on first row lead to \omit error
I've been breaking my head over this, obviously must be missing something. I'm trying to get a table built from a csv with the first columns acting as a header as long is it stays the same, pretty ...
5
votes
2
answers
2k
views
cloze multichoice question in the latex using the package 'moodle'
I use both Moodle and latex to write all my quizzes. but, I use latex to generate formula rich questions in moodle. The latex package Moodle can do this. Then I import it as XML file to moodle. This ...
5
votes
1
answer
466
views
Is there an alternative to sgame compatible with array?
As noted in Christian Hupfer's answer, the package sgame is incompatible with array. Is there a more tolerant alternative for typesetting payoff matrices in game theory?
MNWE:
\documentclass{article}...
5
votes
2
answers
32k
views
Overleaf wont compile even though there is no error
My issue is that Overleaf won't compile my file and won't produce a PDF. Can you please help me solve this issue? This is my url https://www.overleaf.com/read/yyffrwsrdbwq
it is quite long so I won't ...
5
votes
1
answer
329
views
Conflict between diffcoeff and mhchem
I notice recently a conflict between the packages diffcoeff and mhchem.
For this file :
\documentclass[12pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{diffcoeff}
\...
5
votes
2
answers
16k
views
Package inputenc: Unicode character ≤ (U+2264) (inputenc) not set up for use with LaTeX - Error caused by unnoticed literal "≤"
When trying to build my LaTeX-file with latexmk in VS Code using Latex Workshop extension, the following error is thrown:
Package inputenc: Unicode character ≤ (U+2264) (inputenc) not set up for use ...
4
votes
3
answers
7k
views
PSTricks: Newly introduced error in package
Consider the following MWE:
\documentclass{article}
\usepackage{pstricks}
\begin{document}
A
\end{document}
It produces the error
Runaway argument?
] {pgffor.code.tex}
! Paragraph ended before \...
4
votes
3
answers
4k
views
"missing \begin{document}" when setting new command
I'm trying to get this command into my LaTeX document but it causes the compiler to fail, saying "Missing \begin{document}":
\newcommand{\C*}{\mathbb{C} \setminus \lbrace 0 \rbrace}
I have also ...
4
votes
5
answers
1k
views
Error: ! Font OT1/mathkerncmss/m/sl/10.95=mathkerncmssi10 at 10.95pt not loadable: Met ric (TFM) file not found
I am encountering the following problem with Beamer. With the following preamble:
\documentclass{beamer}
\usetheme{Madrid}
\usepackage{booktabs} % Allows the use of \
\usepackage[ngerman,...
4
votes
1
answer
444
views
Ebproof package: error on updating MikTeX v. 21.1. on Windows
With the recent version of ebproof package I have an error of compilation. How is it possible to solve this problem?
This is the MWE:
\documentclass[a4paper,12pt]{article}
\usepackage{mathtools,...
4
votes
1
answer
230
views
Error fontawesome5 on a specific preamble
Referring to my recent question, to which I would like to express my thanks, Symbol of the tennis ball, I'm having a difficult to compilate it. In my book, as in this MWE, I have an error.
How can I ...
4
votes
1
answer
74
views
Chemmacros error assigning labels
\documentclass[german=false,thesistype=master, nolistoffigures,
nolistoftables]{tubsthesis}
\usepackage{booktabs}
\usepackage{colortbl}
\usepackage[nottoc]{tocbibind}
\...
4
votes
1
answer
305
views
Lualatex crashing after compiling large document
I am using Lualatex because it has the property to dynamically extend its own memory.
Currently I am using longtabu like that
\setlength{\tabcolsep}{1mm}
\begin{longtabu} to \textwidth {|
p{30mm}|
...
4
votes
1
answer
2k
views
File ended wile scanning use of \harvardurl. \bibliography{thesis_references}
I have compilation errors in my document which seem to be very similar to this question. The error message:
"File ended wile scanning use of \harvardurl. \bibliography{thesis_references}
The ...
4
votes
1
answer
107
views
TikZ foreach loop fails when the list doesn't end with a comma
The following LaTeX document is saved in a file whose path is ~/test.tex.
\documentclass[border=1cm,tikz]{standalone}
\tikzset{ square/.pic={\draw (0,0) rectangle (1,1);} }
\begin{document}
\begin{...
4
votes
1
answer
720
views
Error with longfbox package
I defined a box to contain headers for each section in an instruction file. I have been using this personally defined box for quite a long time and it worked fine all the time. A MWE is as follows:
\...
4
votes
1
answer
1k
views
! Missing } inserted
I'm writing a report in latex for school for several months and everything was fine. But recently out of nowhere it stopped compiling and give a lot errors like the following one:
! Missing } ...
4
votes
3
answers
249
views
Strange behaviour using center, tcolorbox, listings and enumerate
I have a problem compiling the following minimal example:
\documentclass{article}
\usepackage{listings}
\usepackage{tcolorbox}
\begin{document}
\begin{center}
\begin{tcolorbox}
\begin{...
4
votes
1
answer
79
views
Interesting behavior of preview
If you compile this code (note that \begin{document} is commented):
% arara: pdflatex
\documentclass{article}
\usepackage{tikz}
\usepackage[active,tightpage]{preview}
%\begin{document}
\...
4
votes
1
answer
489
views
__latexindent_temp.tex VSCode Error
The Latex Workshop VSCode Extension has been generating a file called __latexindent_temp.ex every build.
Contrary to this message, I have ensured that MiKTeX is fully updated. I have tried ...
4
votes
1
answer
464
views
Using minted in subfiles in a subdirectory
The answer here gives a MWE that shows how to make \inputminted work in a subfile. However, the approach does not work for \begin{minted}. For the following setup
main.tex:
\documentclass{article}
\...
4
votes
2
answers
1k
views
AUCTeX not compiling: Returning "Master file already set"
I'm writing a thesis with AUCTeX. I have one main document (master.tex) and several chapter files (chapter1.tex, chapter2.tex, etc.) that are included in the master file using the \include command.
...
4
votes
1
answer
3k
views
does not compile and gives LaTeX Error: Option clash for package inputenc
I dont have inputenc written twice. at least i dont have it in my main tex file. i'm not sure what could be causing this error and could use some help in troubleshooting it.
heres everything i have ...
4
votes
1
answer
4k
views
MiKTeX broken after uninstalling and reinstalling it, "pdflatex did not succeed"
I ran into some issues with MiKTeX 2.9 so I uninstalled and reinstalled it (using net installer), in the hopes that the issues would be resolved. Instead MiKTeX seems to be completely broken now; when ...
4
votes
0
answers
2k
views
LaTeX error using LyX: Missing \begin{document}
I am using LyX as a LaTeX editor. I have a little file in my computer compiling normally in an old LyX version. Now I have a new computer and installed the latest LyX version (Lyx 2.3.4, 12 Jan 2020). ...
3
votes
2
answers
434
views
A missing address in a letter causes a "There's no line here to end." error
Consider the following LaTeX file:
\documentclass[12pt]{scrlttr2}
\begin{document}
\begin{letter}{}
\opening{}
\closing{}
\end{letter}
\end{document}
I get the error
LaTeX Error: There's no line ...
3
votes
2
answers
123
views
How to add `more text` to an error message?
For the mwe below, I was expecting:
ERROR: Package foo Error: text bar more text baz
Instead:
ERROR: Package foo Error: text bar
Why the discrepancy?
\documentclass{report}
\...
3
votes
1
answer
50
views
Can I use \substitutecolormodel{hsb}{rgb} rather than \selectcolormodel{rgb} to draw PGF/TikZ paths with a hsb-defined colour series?
Consider the following MNWE:
\documentclass{article}
% \usepackage[rgb]{xcolor}
\usepackage{tikz}
\definecolorseries{xcolor g2}{hsb}{grad}[hsb]{.575,1,1}{.987,-.234,0}
\definecolorseries{xcolor s2}{...
3
votes
1
answer
150
views
xr-hyper and cleveref unable to compile with make4ht
I'm trying to use cleveref to cross reference between documents and compile them with make4ht. The following example compiles with pdflatex but not with make4ht or htlatex.
main.tex:
\documentclass{...