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 <sa...@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
diff --git a/src/LyX.cpp b/src/LyX.cpp index 8c15ff9891..d6b5b04449 100644 --- a/src/LyX.cpp +++ b/src/LyX.cpp @@ -323,6 +323,8 @@ int LyX::exec(int & argc, char * argv[]) // something interesting about the locale directory. setLocale(); + setEnv("max_print_line","999"); + if (!use_gui) { LyXConsoleApp app(this, argc, argv);
-- lyx-devel mailing list lyx-devel@lists.lyx.org https://lists.lyx.org/mailman/listinfo/lyx-devel