Towards #13132 - Extend the default length of pdftex log lines

Pavel Sanda sanda at lyx.org
Sat May 17 23:08:24 UTC 2025


On Sat, May 17, 2025 at 11:56:35PM +0200, Jean-Marc Lasgouttes wrote:
> Le 17 mai 2025 22:07:46 GMT+02:00, Pavel Sanda <sanda at lyx.org> a écrit :
> >Hi,
> >
> >I would like to get your feedback wrt #13132.
> >
> >TeXLive > 2020 implements option for extending the default length of la/pdf/lua/xe/tex log lines
> >(e.g. pdflatex -cnf max_print_line=999) which would be helpful - our log parser would catch more
> >cases when citation/reference is missing in the latex source.
> >
> >Now, I am not sure how to go about this and see several options:
> >
> 
> Am I wrong that max_print_line can be set as an environment variable?
> <https://tex.stackexchange.com/questions/1191/reducing-the-console-output-of-latex#1193>

Yes, environment variables are possible to use. I did not see it as an easier option
compared to just adding commandline parameter, but handling pdflatex output turned out
harder than I thought.

Surprisingly to me, going the environment way turned out to be super easy.

Can someone on windows confirm the attached patch works?
(Mac would be also nice but I am reasonably confident this works there as well.)

Just compile the introduction manual, go to the Document->LaTeX log
and check that at the very end the list of paths is superlong line.

Pavel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: env.patch
Type: text/x-diff
Size: 340 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20250518/ffd4949a/attachment.bin>


More information about the lyx-devel mailing list