Questions tagged [errors]

{errors} is for questions regarding or including compilation or similar errors.

Filter by
Sorted by
Tagged with
0 votes
1 answer
96 views

LaTeX3 Error: Command '\sc' already defined!

Please can someone explain to me why I'm getting the following compiling error LaTeX3 Error: Command '\sc' already defined! \documentclass[10pt]{book} \NewDocumentCommand{\ch}{om}{ \...
user avatar
1 vote
0 answers
35 views

Centering Command Works Fine Outside the TOC; but Inside is a Different Story

Consider the code \documentclass[openany]{book} \begin{document} \thispagestyle{empty} {\centering\Large\bfseries HERE IS A LONG SENTENCE THAT WILL NOT FIT ON ONE LINE, AND SO IT WILL BE DISPLAYED ON ...
user avatar
  • 5,285
13 votes
3 answers
954 views

LaTeX mistake doesn't throw error

I noticed today that \documentclass{article} \begin{document} \[ \Big{(a + b \Big)}^2 % yikes, note the order of the brackets! \] \end{document} compiles to How so? Shouldn't it be {\Big(a + b \...
user avatar
0 votes
1 answer
182 views

Type H <return> for immediate help does not work

I've never been able to figure out why this doesn't work. I recently tried to add the color package to use some different colors in my pdf output. I now get the following error: Error producing PDF. ! ...
user avatar
  • 121
2 votes
1 answer
45 views

Error: Extra alignment tab has been changed to \cr. in 'multline' environment

I can't see where the issue in the following script, would anyone help please? \begin{multline} a\left[ r^2 \sum_{\ell=1}^{N-1} \tilde{{d}^{(2)}_{i\ell}} \phi_{\ell jk} + s^2 \sum_{\ell=1}^{N-1} \...
user avatar
  • 23
0 votes
1 answer
335 views

How to prevent the LaTex Workshop extension from compiling when I save a file?

Observation When I press Ctrl+S in a sample.tex I get the following error: LaTeX fatal error: spawn latexmk ENOENT, . PID: undefined.. It seems to be a path related error. I assume this occurs ...
user avatar
  • 195
0 votes
2 answers
82 views

Error in the code after loading a library in an R code

I have been writing a code in RStudio and using TinyTex to compile my pdf. I wrote the following code in an RSweave file in RStudio: \documentclass[12 pt]{article} \usepackage[utf8]{inputenc} \...
user avatar
4 votes
1 answer
71 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} \...
user avatar
  • 54.2k
0 votes
1 answer
31 views

Error in package fancyvrb: Too many }'s

When I include the package fancyvrb via \usepackage{fancyvrb} or other packages that make use of that package (for example minted), I get the error Missing \endscname inserted (line 535 of fancyvrb....
user avatar
1 vote
2 answers
81 views

Dozens of errors, most of which have to do with math mode or enumerate lists, in extremely short document

I'm very new to LaTeX, and I just switched to using TeXMaker and MiKTeX. I just created this extremely short document: \documentclass{article} \usepackage[letterpaper, top=2cm,bottom=2cm,left=1cm,...
user avatar
0 votes
1 answer
152 views

Misplaced alignment tab character & (for \cases)

I'm using the \cases format to create the following equation: by using: \begin{equation} \phi(x,y)=\begin{cases} <0, & \text{for}\ \Omega_1 \text{(Phase 1)} \\ 0, & \...
user avatar
  • 3
0 votes
0 answers
42 views

How to debug and fix error: Use of \label@optarg doesn't match its definition

I've been having a very bad time lately with the errors produced by this main.tex MWE: \documentclass{report} \usepackage{ctable} \usepackage{sectsty} \usepackage[spanish]{babel} \usepackage{hyperref}...
user avatar
0 votes
0 answers
45 views

Insert an image in Texworks, problem!

I'm using TEXWORKS, pdfLatex, and I want to add a image (.pnj) in my latex. I put: \documentclass[a4paper,12pt]{book} \counterwithout{footnote}{chapter} \usepackage{amssymb} \usepackage{amsmath} \...
user avatar
  • 1
1 vote
1 answer
51 views

tikzlibrary: external not outputting usable file

Hello there Currently trying to implement the external library but cant seem to make it work \documentclass{article} % pgfplots \usepackage{pgfplots} % % Uncommenting generates error % \...
user avatar
  • 79
0 votes
1 answer
46 views

tllocalmgr reports "command install is not defined". What does it mean?

When I run the command $ tllocalmgr install nicecolors Initializing ... Error: command install is not defined Why does tllocalmgr report that the command install is not defined? The syntax is clearly ...
user avatar
  • 2,198
1 vote
1 answer
124 views

Error: LaTeX Error: Something's wrong--perhaps a missing \item for theorem like environment within the questions environment

I have used the exam document class with amsthm package. I have defined \lemma as follows - \newtheorem{theorem}{Theorem} \newtheorem{lemma}[theorem]{Lemma} And it has been used as - \begin{questions}...
user avatar
0 votes
0 answers
27 views

Getting error Missing \begin{document}. \begin{document}

\documentclass[aps,prb,preprint,groupedaddress,showkeys]{revtex4} \RequirePackage{lineno} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \newtheorem{theorem}{Theorem}[section] \...
user avatar
0 votes
0 answers
25 views

illegal parameter number biblatex [duplicate]

Hello I am having some issues with bibtex. Not sure what could be wrong. I used these parameters before and the citation is exported. I am getting the following errors / warnings: Illegal parameter ...
user avatar
1 vote
0 answers
31 views

Unclear Error Message while Typesetting on MacTeX

I have made my class notes in LaTeX. Up until now, I had not gotten any prominent errors while typesetting. Now, I seem to be getting an error on a part of the document I made no change on. I do not ...
user avatar
0 votes
1 answer
63 views

Misplaced alignment tab character with \math@cr@@@

My thesis suddenly does not compile anymore. LaTeX throws the following error : ! Misplaced alignment tab character &. \math@cr@@@ ->\ifst@rred \nonumber \fi & \relax \make@display@tag \...
user avatar
  • 326
0 votes
1 answer
83 views

File ended while scanning use of multicolumn

I am getting crazy with this code: I get a "File ended while scanning use of \multicolumn". This is one of multiple tables. They are all similar but I receive the error on this one (and the ...
user avatar
0 votes
0 answers
197 views

Undefined control sequence error - chapter

My file is compiling, but I get an error at every section start. For example, I start a new chapter: \chapter{ENERGY MARKET FORECAST} \label{chap:demand} \section{World energy outlook} I get the ...
user avatar
1 vote
1 answer
62 views

Forcing different size svg images into symmetric grid

I have a grid of 4 svg images that I am trying to force into a grid. My problem is that when I put them into LaTex the grid alignment is slightly off. I have tried: moving the \hfill to different ...
user avatar
  • 182
0 votes
0 answers
45 views

Problem \usepackage{graphicx}, doesn't work [duplicate]

I'm using TEXWORKS, and I want to add a image (.pnj) in my latex. I put: \documentclass[a4paper,12pt]{book} \counterwithout{footnote}{chapter} \usepackage{amssymb} \usepackage{amsmath} \usepackage{...
user avatar
  • 1
0 votes
0 answers
30 views

Theorems via tcolorbox + translator package gives error with CTAN-updated TeX Live

I am using TeX Live 2021 (actually MacTeX-2021), with all current updates from CTAN installed via the TeX Live Utility. The following minimal working example results in an error message (see below): \...
user avatar
0 votes
1 answer
55 views

File ended while scanning use of \@LTRfootnotetext

I use text studio to write a latex file in Persian. It worked good and produce the output pdf using xelatex. I edited the file and now when I want to compile it it produces File ended while scanning ...
user avatar
  • 953
0 votes
0 answers
58 views

Texwork, \usepackage{graphicx} is not working

I want to add a image (.pnj) in my latex. I put: \documentclass[a4paper,12pt]{book} \counterwithout{footnote}{chapter} \usepackage{amssymb} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{...
user avatar
  • 1
0 votes
1 answer
42 views

Why do I get `! LaTeX Error: Missing \begin{document}. l.2 gdef @abspage@last{1}` starting from second compilation?

I have a simple TeX file like this \documentclass{article} \begin{document} \def\printcsnameof #1{ \escapechar=-1 \string #1 } \printcsnameof \test \end{document} When I compile it the ...
user avatar
  • 2,198
0 votes
1 answer
50 views

Undefined control sequence in equation caption

\begin{equation} \centering \Large \textbf{$\lambda_{c} = \frac{18.64}{B \times E^{2} }$ } \label{eq1:Critical wavelength} \end{equation} \begin{center} \captionof {equation}{where B is the ...
user avatar
0 votes
1 answer
50 views

Error while externalize using pgfplots

I had to externalize my figures in latex but i don't know why latex don't get an output of the file. Here is the error : ./TP1.tex:194: Package tikz Error: Sorry, the system call 'pdflatex -halt-on-...
user avatar
0 votes
0 answers
217 views

Two errors when trying to do pdfteXify in WinEdt 9.1 (same error in TeXWorks) on new laptop

It seems many people have issues similar to mine, but none of the solutions I found & tried fixed my issues. I have a new (to me) laptop running Windows 10 Enterprise 2015 LTSB. I installed the ...
user avatar
  • 561
0 votes
0 answers
245 views

Package xcolor Error: Undefined color `Darkgreen'

I'm trying to copy a latex R code, but it happens that I have the following error and I don't know how to fix it: ! Package xcolor Error: Undefined color `Darkgreen'. I tried also with \ usepackage [...
user avatar
  • 25
0 votes
1 answer
56 views

Errors in math line when I use Beamer with pdf viewer error Doc[Open("%bm.pdf")][Fileopen(

See the code (for a presentation): When I only skip the math symbol $\overrightarrow$ then everything is fine and the pdf output file is generated without errors. This code works fine also when I ...
user avatar
3 votes
1 answer
167 views

Hidden highlighting error

I have no idea why the following MWE should have errors. I would really appreciate it if you could help. \documentclass{article} \usepackage{color,soul} \begin{document} \hl{used the Monte Carlo ...
user avatar
  • 447
3 votes
0 answers
59 views

Musixtex: Guitar tab bending notation error, slur not visible

I'm trying to add a bending slur to a musixtex tablature. The end result should look something like this (the upwards one would be enough, though): I tried a promising script I found on github (...
user avatar
1 vote
2 answers
79 views

Problem with Computational Linguistic Template - COLI - CLV3.cls

I am trying to use the Computational Linguistic journal's latex template. In compiling their manual example "COLI-manual3.tex" I get the following: ! Extra \endgroup. \document ->\...
user avatar
1 vote
2 answers
104 views

Compilation errors when babel and cleveref are included. and other errors when \frontmatter is present

Overview I'm currently re-writing some of my lecture notes in LaTeX. My first language is Spanish, so I'm using the babel package. I also wanted to add some utility to the resulting document, like ...
user avatar
0 votes
2 answers
77 views

'Missing \endcsname inserted' error from a for loop of images

I have a for loop that goes over a list of defined names associated with images: \def \names{{3088452\_cutouts.png},{3088553\_cutouts.png},{3089892\_cutouts.png},{3090579\_cutouts.png},{3090786\...
user avatar
0 votes
1 answer
67 views

Error Caused by The \makebox Command When Used Inside an Exam Document Header

I am using the exam package for the first time. I wanted to edit the header as mentioned on page 117 of the documentation. The \makebox command is causing an error of the type: Missing \begin{document}...
user avatar
0 votes
0 answers
39 views

Show "more help" on errors in non-interactive run

When a build encounters an error, pdflatex defaults to asking for user input (errorstopmode). If STDIN doesn't give it anything (e.g. it's been closed, is at EOF, etc.) then it just exits. So far so ...
user avatar
  • 157
0 votes
0 answers
53 views

Latex error appearing from nowhere

When compiling my latex file I'm getting the following error message: ./main.aux|1 error| Text line contains an invalid character. ^^@ ./main.aux|1 error| Text line contains an invalid character. ^^@^^...
user avatar
  • 101
3 votes
1 answer
35 views

Can I use \MakeOuterQuote{"} in combination with tikzpicture?

I use the command \MakeOuterQuote{"} in my preamble, which seems to raise an error when using quotation marks inside a tikzpicture. How can I solve this problem? Zarko's solution is over here: ...
user avatar
  • 619
1 vote
1 answer
22 views

Customize Color1 in moderncv

I tried to look at some suggested solutions from previous answers to redefine color1 with the command: \definecolor{color1}{rgb}{0.67, 0.76, 0.152}% Dark Blue The color I want is (Hex: #434C98 , RGB: ...
user avatar
0 votes
1 answer
103 views

Error in Overleaf do not have right line number

Here is always some errors in the overleaf, but the line is not the right one. Where is the right line, and what exactly is the problem? I do not get it, since the document compiles the right way.What ...
user avatar
  • 3
4 votes
2 answers
256 views

missing $ inserted (in a table)

I am using this code to generate a table in the document. It keeps giving me the error, Missing $ inserted. I am unable to figure out this error. \begin{table}[htbp] \centering \begin{tabular}{...
user avatar
0 votes
1 answer
38 views

vhistory in report resulting in compiling error

I'm trying to add a history in a report file of mine. No matter how I try to implement the vhistory package into the file it runs several compiling errors, usually starting with a Error Line 6 ! ...
user avatar
  • 1
1 vote
1 answer
105 views

How can I reduce the "Underfull \vbox badness" warning if I have a tcolorbox box that almost takes up an entire page?

I want to create a box using the tcolorbox package that almost takes up an entire page and here's my MWE of a document that I compiled using LuaLaTeX in a scrbook class. % !TeX program = lualatex % ...
user avatar
0 votes
0 answers
91 views

TexShop will not compile after upgrade to Mac OS Monterey

I just upgraded to Mac OS Monterey and when I attempt to LaTeX I get the following error This is pdfTeX, Version 3.141592653-2.6-1.40.22 (TeX Live 2021) (preloaded format=pdflatex) restricted \write18 ...
user avatar
2 votes
2 answers
79 views

Error in generating pdf from .tex file [closed]

I am first time user of Latex. I have some .tex files which I need to read in pdf version. They have equations and figures attached in them. I was readin the first document of "about" but it ...
user avatar
0 votes
1 answer
248 views

"Undefined control sequence" when using footnote-to-endnote MWE

Note: This posting has been augmented to reflect a corollary issue. Please refer to the UPDATE below: I'm seeing the following error "Undefined control sequence" when using MWE below ... ./...
user avatar
  • 47