Questions tagged [errors]
{errors} is for questions regarding or including compilation or similar errors.
5,007
questions
0
votes
0
answers
50
views
Float [H] not working // Two-column problem // Various errors
I am currently writing my PhD thesis, and have been looking for a solution of the two stated problem below for hours, when I finally decided to ask the question in front of the "pros". :)
...
1
vote
1
answer
55
views
Custom environment for tcolorbox not working with certain option
I have trouble defining a custom environment for a tcolorbox equation environment. When I define an environment for my tcolorbox with ams align Option I get the error:
LaTeX Error: \begin{tcolorbox} ...
0
votes
0
answers
31
views
Converting an overleaf text into Latex [duplicate]
I have written a paper in Overleaf. I can't convert it into a LaTeX file. Is there any special way to do that.
For example the document class is \documentclass[graybox]{svmult} but in LaTeX it has not ...
0
votes
0
answers
27
views
Random errors show up when I insert a bibliography
When I include at the bottom of my latex file the code
\bibliographystyle{plain}
\bibliography{Bibliography}
I get the following errors in my Log file (note my Latex compiles with no errors when I ...
0
votes
0
answers
47
views
Missing number, treated as zero - what did I read
OK, guys I wanted to compile a simple thing that usually works and on the line:
[\sum\sub{\gamma \in \Delta}c\sub{\gamma}h\sub{\gamma}, x\sub{\alpha\sub{1}}] \equals 0
LaTeX says "missing number,...
0
votes
0
answers
152
views
pdflatex: Command for pdflatex gave return code 1, but not error in log file
When I build my project using a Makefile I get this:
(see the transcript file for additional information)
Output written on build/report.pdf (51 pages).
SyncTeX written on build/report.synctex.gz.
...
2
votes
1
answer
51
views
\tl_gput_right:Nx with argument containing \par causing error after a list
I accidentally ran into this issue and don't understand why this happens. Consider the following code:
\documentclass{article}
\begin{document}
%% OK
Text
\ExplSyntaxOn
\tl_gput_right:Nx \l_tmpa_tl {...
1
vote
1
answer
44
views
Patch \input in tabular if on a recent LaTeX
I am trying to implement a workaround for the error I get when inputting a table as external file in a file using \input. The code snippet below works for this purpose:
\IfFileExists{filename}
\...
4
votes
2
answers
179
views
"Illegal parameter number in definition of \reserved@a" following \IfFileExists
I tried to use a switch \IfFileExists to define a command differently, but I get the illegal parameter error. I am running LaTeX from TeX Live 2021.
A minimal example is:
\documentclass[12pt,fleqn]{...
0
votes
1
answer
35
views
`Missing = inserted for \ifnum` Error During Compilation
I know this question has been asked many times before. There are many similar questions but I failed to solve mine. During compilation, I'm getting the following error message:
./thesis.tex:41: ...
2
votes
2
answers
101
views
`\newenvironment` throwing errors
I defined an environment:
% Custom environment
% \begin{subeqns}[eq:label]
% ...
% \end{subeqns}
\newenvironment{subeqns}[1][]
{
\begin{subequations} \ifthenelse{\isempty{#1}}{}{\label{#...
0
votes
1
answer
60
views
Overleaf error messages when compiling with \begin{align*} and \end{align*} and using \bm{\varphi}
I'm getting error messages in overleaf such as "Missing } inserted.", "Extra }, or forgotten \endgroup.", "Misplaced alignment tab character &.", "Misplaced ...
2
votes
1
answer
214
views
hyperref stopped working abruptly
An avid user of hyperref package here. I had been using it for almost all of my documents, and it had been working just fine, until today, when all of a sudden, all my files that have
\usepackage{...
0
votes
0
answers
67
views
Chemformula giving Missing number, treated as zero error
I've recently installed TeXstudio and MiKteX on a new Windows 11 machine and have been trying to compile some of my old .tex files which uses chemformula:
\documentclass[answers, 12pt]{exam}
\...
1
vote
0
answers
71
views
Failure to include pdf files in a Windows 11 computer using LuaLaTex MikTex, but ok in Windows 10
I am a reasonably apt LaTeX user, being a local reference to solve problems. However, this baffles me and I could use some help. I already did a lot of checking on both installations, and reinstalled ...
2
votes
1
answer
146
views
Is there a \return command to end the current macro?
Is there a \return statement in Latex to end the current macro from being processed?
\if some condition
\PackageError{mypackage}{main text}{help text}
\return
\fi
I just think it would be more ...
0
votes
1
answer
63
views
How to fix Undefined control sequence \caption@setlabelseparator with TexLive 2022?
I am trying to use again the answer from this question of mine from 2019 (Misplaced \noalign. \captionsetup ->\noalign when using \captionsetup inside memoir \legend command) with Tex Live 2022, ...
1
vote
1
answer
83
views
Image.png suddenly not found [closed]
Latex compiled fine for me until a second ago, I don't know if I did something (I think not), but suddenly it threw me this error: no image ending in "png" loads. The folder with images is ...
0
votes
1
answer
78
views
Error with ctable package after updating MikTex
I had a tex file that was compiling fine until I updated MikTex a few nights ago (I updated in both admin and user modes). I now keep getting the following error when I try to compile:
! LaTeX Error: ...
1
vote
1
answer
95
views
Cannot paste a large chunk of LaTeX to Overleaf
When I try to copy a large chunk of LaTeX to Overleaf (especially tables), nothing happens. Overleaf does not paste my LaTeX to its editor.
I have to manually copy each line in order for Overleaf to ...
1
vote
0
answers
45
views
Can Lua access the traceback/surrounding tokens on error?
Let's say if I have...
\documentclass{article}
\errorcontextlines=10000
\def\c{1 \errorerror 2}
\def\b{3 \c 4}
\def\a{5 \b 6}
7 \a 8
I can
see the traceback on the console...
! Undefined control ...
0
votes
1
answer
51
views
Missing number error in pgfplot [closed]
I got a weird error when I use add yshift=-1mm to my plot. The error does not appear when I use positive value. The shift works, but looking at the red error is really annoying.
Can anyone suggest a ...
0
votes
0
answers
47
views
Latex No Files found
I do not know what happened. I tried everything I found on line.
The problem is as follows: If I include \addbibresource{example.bib}, Latex stops recognizing any files. It doesn't matter what is in ...
0
votes
0
answers
34
views
luatex doesn't stop on error on Windows, but does on ubuntu
I use TeXworks on Win7 (Version 0.6.5, MikTex 21.1) and TeXworks on Ubuntu (Version 0.6.5, "launchpad").
And I have a tex file with an error (undeclared control sequence).
Running luatex (1....
1
vote
1
answer
38
views
Aligns: missing $ inserted and other severe errors
I got some fatal error from my code:
\begin{align}
a_{n+1}-a_{n} &= \frac{1}{n+2}\left(1+\frac{1}{2} + \cdots + \frac{1}{n+1} \right) - \frac{1}{n+1} \left(1+\frac{1}{2} + \cdots + \frac{1}{n} \...
0
votes
0
answers
45
views
No Output PDF Produced
I'm using TeXShop to produce a PDF file of a .tex file, and my professor can produce an output, but I cannot. I assume it has something to do with garamondx, but I believe I installed it correctly.
To ...
0
votes
0
answers
34
views
Include fails but input succeeds for the same file?
The issue
I'm learning about including multiple files into a latex document to have a more organised flow, and right off the bat I've come across a situation where the include command fails where the ...
0
votes
0
answers
58
views
tex studio giving compile errors
I'm pretty new to using LaTex and currently I'm trying to use longtable in my document.
This is the code from @Zarko in this article :
\documentclass{article}
\usepackage[a5paper, margin=10mm]{...
-1
votes
1
answer
32
views
Package pgf error overleaf
I don't understand why I have this error can you help me?
\documentclass[mathtools,amsmath,frenchb,12pt,oneside,a4paper]{article}
\usepackage{listings,amssymb,babel,tikz,tkz-tab,fontenc,fancyhdr,...
1
vote
1
answer
59
views
LaTeX Warnings: `' multiply defined and `@cref' multiply defined
By compiling a LaTeX file, I get the following messages:
`' multiply defined
And
`@cref' multiply defined
What could be generating this and how to fix it? Here is (a sample of) my code:
\...
0
votes
1
answer
78
views
biblatex: \nocite{*} causes TeX capacity exceeded
I am using \nocite{*} to create a typeset bibliography of the complete contents of all my .bib files. Under Ubuntu 18 (TexLive 2017), this worked perfectly and gave a 200 page document. Now Ubuntu ...
0
votes
1
answer
60
views
Math macro with \left can only be used in math mode error
I use \eq{} and \eq*{} instead of \begin and \end equation.
\def\eq{\@ifstar\@eq\@eeq}
\def\@eq#1{\begin{equation*}\begin{split}#1\end{split}\end{equation*}}
\def\@eeq#1{\begin{equation}\begin{split}#...
1
vote
0
answers
35
views
Runaway argument? ! Paragraph ended before \inf@@get was complete with texshade
I am trying to visualise the sample alignment file distributed with texshade but keep getting this error:
Runaway argument?
! Paragraph ended before \inf@@get was complete.
I am running it with the ...
0
votes
0
answers
35
views
I get an undefined control sequence with end{titlepage} and end{center}
Whenever I run my titlepage code in my dissertation, I get that both the second \end{center} and \end{titlepage} give me an undefined control sequence error. I have no idea what is causing this error ...
0
votes
1
answer
40
views
Missing { inserted. [...mathrel{\stackon[-5pt]{$\in$}{$\widetilde$}] on a question
For this question How to set more separation for certain latex symbols I have given this code:
\documentclass[a4paper,12pt]{article}
\usepackage{amsmath}
\usepackage{stackengine}
\begin{document}
\[
...
0
votes
0
answers
57
views
Error when inserting figure in latex (Thesis)
I am writing a thesis on the latex file provided by the university. And I cannot insert the figure, there are 3 errors when compiling. Here is the short version of the latex file:
\documentclass[12pt,...
0
votes
0
answers
50
views
Missing $ inserted error in overleaf
I tried a lot but was not able to solve these 14 errors, but only once was the message sowing missing $inserted. I was not able to source it to the main document, so it just directed me to the main....
0
votes
1
answer
28
views
Reference list is indented in first line
so I manually did my bibliography/references page and I'm coming across a slight problem.
\begin{thebibliography}{10}
\bibitem{1}Azih, Chioma Austin-Mona. “Analysis of Factors Contributing to ...
2
votes
1
answer
79
views
Plain TeX input Tikz package not found
I ran
\input tikz.tex
\bye
and the Tikz package is not found
This is pdfTeX, Version 3.141592653-2.6-1.40.22 (TeX Live 2021/MacPorts 2021.58693_2) (preloaded format=pdftex)
restricted \write18 ...
0
votes
0
answers
72
views
How to install missing fonts?
I am using the basic TeX install on MacOS to compile a document and obtained this error
mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; ; nonstopmode; input arial' failed to make arial.tfm.
...
0
votes
2
answers
101
views
Overleaf: Line break gives overfull/underfull warning
I am inserting line breaks as follows.
Lorem ipsum dolor sit amet \\
New paragraph \\
Another new paragraph
For every new paragraph, Overleaf gives a warning. This is either of the two, sometimes ...
7
votes
2
answers
244
views
How can I create this environment
I really want to have my environment to look like this:
Also, I saw these environments from the book linear algebra done right, which @Jinwen informed me about. I was wondering how would I create ...
3
votes
1
answer
42
views
Error while using DeclarePairedDelimiter
I encounter an error while using my \norm command in conjunction with my \LpOmega command as an optional argument:
\documentclass{minimal}
\usepackage{mathtools}
\DeclarePairedDelimiter{\Norm}{\lVert}...
0
votes
1
answer
32
views
Frame ended while scanning use of \frame
Why does this work...?
\documentclass{beamer}
\usetheme{Madrid}
\title{Title}
\subtitle{Subtitle}
\author{Me}
\begin{document}
\frame{\titlepage}
\section{References}
\begin{thebibliography}{plain}...
0
votes
0
answers
7
views
Defining the correct file path for previews
I am using Texworks. I have read several answers here, but none of them specifically help. In short, due to my work's IP, I have to save everything I create on an external server. This seems ...
0
votes
1
answer
155
views
How to fix LaTeX errors with "I found no \bibdata command---while reading file Manuscript.aux"?
When I run LaTeX on my file "manuscript.tex", where I don't call any bibliography file like "manuscript.bib" but rather include bibliography items within the source document itself ...
6
votes
1
answer
88
views
\bool_set:Nn setting variable to itself gives error
I have a (recursive) function that accepts a bool as an argument and first copies this to some local boolean variable (using grouping so the value is restored after the function call). When making the ...
1
vote
3
answers
96
views
unicode-math: How to include multiple font styles and Unicode symbols in a font range?
I need to include multiple Unicode symbols and font styles to be written in the Redacted Script font. However, this code
\documentclass{article}
\tracinglostchars=3 % Make it an error if a glyph is ...
1
vote
1
answer
39
views
! Missing delimiter (. inserted). <to be read again> error
\documentclass[sn-mathphys]{sn-jnl} %\documentclass{article}
\begin{document}
\begin{equation*}
|u|_{p(x)}=\inf\left \{\tau>0;\int_{\Omega}\left|\frac{u}{\tau}\right|^{p(x)}\,dx\leq 1\right\}.
\...
0
votes
0
answers
14
views
Square brackets throw an error while parentheses don't [duplicate]
Why does the following work
\documentclass[answers]{exam}
\begin{document}
\begin{center}
\Large\textbf{
\shortstack{
Assignment 1
\...