I'm in possession of a semi-broken LaTeX project. It's possible to compile it by ignoring lots of errors, producing a mainly OK result.
Now I want to fix the errors however, but the error messages don't seem to indicate file names or line numbers?
The main TeX file is called PROGI_ProjektnaDokumentacija.tex, these are the others:
Arhitektura.tex
Dnevnik_promjena_dokumentacije.tex
Dodatak.tex
Implementacija.tex
Literatura.tex
Opis_projektnog_zadatka.tex
Specifikacija_programske_potpore.tex
Zakljucak.tex
I compile it with either pdflatex PROGI_ProjektnaDokumentacija.tex or latexmk -pdf PROGI_ProjektnaDokumentacija.tex (but have to ignore many errors by pressing enter).
When I run latexmk -pdf PROGI_ProjektnaDokumentacija.tex, there's a lot of output produced, this is the end of the output up to the first error:
[6] (/usr/share/texmf-dist/tex/latex/kpfonts/ts1jkp.fd)
Package fancyhdr Warning: \headheight is too small (12.0pt):
(fancyhdr) Make it at least 14.49998pt, for example:
(fancyhdr) \setlength{\headheight}{14.49998pt}.
(fancyhdr) You might also make \topmargin smaller to compensate:
(fancyhdr) \addtolength{\topmargin}{-2.49998pt}.
[7]
! LaTeX Error: There's no line here to end.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.91
?
At the same point in time this is the end of the PROGI_ProjektnaDokumentacija.log file:
Overfull \hbox (3.47267pt too wide) in paragraph at lines 47--47
[][]\OT1/jkp/m/n/12 10.11.2022[]
[]
Overfull \hbox (3.47267pt too wide) in paragraph at lines 47--47
[][]\OT1/jkp/m/n/12 11.11.2022[]
[]
Overfull \hbox (3.47267pt too wide) in paragraph at lines 47--47
[][]\OT1/jkp/m/n/12 11.11.2022[]
[]
Overfull \hbox (3.47267pt too wide) in paragraph at lin
Yes, the last line ends abruptly.
How to diagnose?
LaTeX Error: There's no line here to endis the relevant error here and it points to line 91 in your document. Most likely there is an irrelevant\\at that point, but as you show no code we cannot say for sure. – daleif Nov 15 '22 at 12:38l.91means line 91, nice, thank you! How to know what file is that line in, though? – user2373145 Nov 15 '22 at 12:43[7]means that page 7 has been generated, so the error is somewhere on the page 8. – Michael Fraiman Nov 15 '22 at 12:49pdflatexthe-file-line-errorflag, that'll change the error messages to look like<file>:<line>:<error-message>. – Skillmon Nov 15 '22 at 12:53