Skip to content
This repository has been archived by the owner on Aug 14, 2022. It is now read-only.

Log warning line numbers for included files #430

Closed
hendrikbl opened this issue Oct 19, 2017 · 6 comments
Closed

Log warning line numbers for included files #430

hendrikbl opened this issue Oct 19, 2017 · 6 comments
Assignees

Comments

@hendrikbl
Copy link

I'm using \include a lot to structure my project. When there is a warning in an included file the log only shows the position where the file is included in the root file. Is there any way of logging the actual position of the warning so i dont have to look through the entire file I included?

@yitzchak
Copy link
Collaborator

yitzchak commented Oct 19, 2017

Thanks for reporting the issue!

If a line number is reported in a warning message then it should be included in the reference from the log panel. That said, it doesn't always work because log messages produced by TeX are incredibly varied.

If you have a simple document that demonstrates the issue that would help enormously.

@hendrikbl
Copy link
Author

Thanks for the quick response!

Here's an example:

main.tex

This is the file with the include in it

\begin{document}
\frontmatter
\tableofcontents
\mainmatter
\include{include}
\end{document}

include.tex

This is the file with an underfull hbox

\begin{titlepage}
	\dotfill\\
	Prof. XYZ\\
	Department of XYZ\\
	University of whatever, \\
	City, Country\\

	Date: ............\\
\end{titlepage}

But the log says the warning is in main.tex (2-7)
warning message

I'm not sure if thats something you can fix though or if it's on TeX related.

@yitzchak
Copy link
Collaborator

Thanks for sample document. I have reproduced the issue.

It looks like TeX is putting a file reference on an earlier line (in the log) before the group of box messages. Not sure if it consistent in that yet. Fixing it will require enhancing the log parser so it will take a bit work to resolve.

@hendrikbl
Copy link
Author

Okay, I already guessed it isn't something that can be fixed easily...

Thanks for looking into it!

@yitzchak
Copy link
Collaborator

This enhancement will be be in the next version. We just merged the code for the latexmk based builder and support for DiCy is in the works.

@yitzchak
Copy link
Collaborator

Added in both builders and released in v0.49.0

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants