GeneralRepeating Errors

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
dmr
Posts: 2
Joined: Mon Jan 02, 2012 3:22 am

Repeating Errors

Post by dmr »

Hi all: I am new to Latex and have a quick question for you. When I receive an error in Latex, although I correct it and rerun the whole document I get the same or similar error. Only way I can solve this is I delete all accompanying files to .tex document I am working on. After doing this and rerun the .tex document, I do not get the same error and everything works fine. Can anybody help me out this as it is extremely annoying?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

Re: Repeating Errors

Post by Stefan Kottwitz »

Hi dmr,

welcome to the board!

This problem could be caused by an error in captions or headings, for example, because of commands written to external files causing an error in a second run. If you remove the external files, it can be compilable, while those commands are written to the external files (.aux, .toc, .lof, lot, ...), but in the following run, when those external files are read in, the problem occurs again.

If you would like to know more details, perhaps tell us your error messages, show a log file or a minimal example which produces the error.

Stefan
LaTeX.org admin
dmr
Posts: 2
Joined: Mon Jan 02, 2012 3:22 am

Repeating Errors

Post by dmr »

Thanks a lot for the response Stefan!

Here is what happens: The file is working well at the beginning. Then, I re-run the file by, purposefully, omitting a "\" in before an & sign. It gives me the error below:

[51 <D:/Documents/Belgeler/Courses_Fall2011/Appl_Macro_Econ824/term_paper/latex
/chol2.png (PNG copy)>]
! Misplaced alignment tab character &.
l.1555 ...ms. As both Current Account and Capital&
Financial Account being I(...

?

which is what is expected. Then, I correct it and save the file once more. Then rerun it for the second time. Here is what I got this time (I copy everything here):

Code: Select all

This is pdfTeX, Version 3.1415926-1.40.10 (MiKTeX 2.8)
entering extended mode

(D:\Documents\Belgeler\Courses_Fall2011\Appl_Macro_Econ824\term_paper\Appl_Macr
o_Term_Paper.tex
LaTeX2e <2009/09/24>
Babel <v3.8l> and hyphenation patterns for english, dumylang, nohyphenation, ge
rman, ngerman, german-x-2009-06-19, ngerman-x-2009-06-19, french, loaded.
("C:\Program Files (x86)\MiKTeX 2.8\tex\latex\base\article.cls"
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
("C:\Program Files (x86)\MiKTeX 2.8\tex\latex\base\size11.clo"))
("C:\Program Files (x86)\MiKTeX 2.8\tex\latex\rotating\rotating.sty"
("C:\Program Files (x86)\MiKTeX 2.8\tex\latex\graphics\graphicx.sty"
("C:\Program Files (x86)\MiKTeX 2.8\tex\latex\graphics\keyval.sty")
("C:\Program Files (x86)\MiKTeX 2.8\tex\latex\graphics\graphics.sty"
("C:\Program Files (x86)\MiKTeX 2.8\tex\latex\graphics\trig.sty")
("C:\Program Files (x86)\MiKTeX 2.8\tex\latex\00miktex\graphics.cfg")
("C:\Program Files (x86)\MiKTeX 2.8\tex\latex\pdftex-def\pdftex.def")))
("C:\Program Files (x86)\MiKTeX 2.8\tex\latex\base\ifthen.sty"))
("C:\Program Files (x86)\MiKTeX 2.8\tex\latex\subfiles\subfiles.sty"
("C:\Program Files (x86)\MiKTeX 2.8\tex\latex\tools\verbatim.sty"))
("C:\Program Files (x86)\MiKTeX 2.8\tex\latex\base\fixltx2e.sty")
("C:\Program Files (x86)\MiKTeX 2.8\tex\latex\base\inputenc.sty"
("C:\Program Files (x86)\MiKTeX 2.8\tex\latex\base\utf8.def"
("C:\Program Files (x86)\MiKTeX 2.8\tex\latex\base\t1enc.dfu")
("C:\Program Files (x86)\MiKTeX 2.8\tex\latex\base\ot1enc.dfu")
("C:\Program Files (x86)\MiKTeX 2.8\tex\latex\base\omsenc.dfu")))
("C:\Program Files (x86)\MiKTeX 2.8\tex\latex\ltxmisc\url.sty")
("C:\Program Files (x86)\MiKTeX 2.8\tex\latex\float\float.sty")
("C:\Program Files (x86)\MiKTeX 2.8\tex\latex\geometry\geometry.sty"
("C:\Program Files (x86)\MiKTeX 2.8\tex\generic\oberdiek\ifpdf.sty")
("C:\Program Files (x86)\MiKTeX 2.8\tex\generic\oberdiek\ifvtex.sty")
("C:\Program Files (x86)\MiKTeX 2.8\tex\latex\geometry\geometry.cfg"))
("C:\Program Files (x86)\MiKTeX 2.8\tex\latex\subfig\subfig.sty"
("C:\Program Files (x86)\MiKTeX 2.8\tex\latex\caption\caption.sty"
("C:\Program Files (x86)\MiKTeX 2.8\tex\latex\caption\caption3.sty")))
("C:\Program Files (x86)\MiKTeX 2.8\tex\latex\booktabs\booktabs.sty")
("C:\Program Files (x86)\MiKTeX 2.8\tex\latex\tools\array.sty")
("C:\Program Files (x86)\MiKTeX 2.8\tex\latex\paralist\paralist.sty")
("C:\Program Files (x86)\MiKTeX 2.8\tex\latex\fancyhdr\fancyhdr.sty")
("C:\Program Files (x86)\MiKTeX 2.8\tex\latex\sectsty\sectsty.sty")
("C:\Program Files (x86)\MiKTeX 2.8\tex\latex\tocbibind\tocbibind.sty"

Package tocbibind Note: The document has section divisions.


Package tocbibind Note: Using section or other style headings.

) ("C:\Program Files (x86)\MiKTeX 2.8\tex\latex\tocloft\tocloft.sty"

Package tocloft Note: The document has section divisions.

) ("C:\Program Files (x86)\MiKTeX 2.8\tex\latex\setspace\setspace.sty"
Package: `setspace' 6.7 <2000/12/01>
)
(D:\Documents\Belgeler\Courses_Fall2011\Appl_Macro_Econ824\term_paper\Appl_Macr
o_Term_Paper.aux

LaTeX Warning: Label `first' multiply defined.


LaTeX Warning: Label `first' multiply defined.


LaTeX Warning: Label `first' multiply defined.


LaTeX Warning: Label `first' multiply defined.


LaTeX Warning: Label `first' multiply defined.


LaTeX Warning: Label `pp' multiply defined.

)
Runaway argument?
{f 
! File ended while scanning use of \@newl@bel.
<inserted text> 
                \par 
l.65 \begin{document}
                     
? 
As you can see, although I corrected for the error that I created on purpose, it still gives a different error. Any help would be greatly appreciated. I really got tired of deleting the extra files and rerunning the file again and again for every error I got.
Last edited by Stefan Kottwitz on Tue Jan 03, 2012 12:59 am, edited 1 time in total.
Post Reply