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:

1) just hardcode "-cnf max_print_line=999" into configure.py
   pros: easy, no errors from detection mechanism
   cons: we expect TL and also TL > 2020.

2) check in configure.py detected version of TeX in packages.lst
   pros: TL < 2020 still works. 
   cons: MikTeX will be still broken or any other tex distro (MikTeX has it's 
own --max-print-line=n).
         Possible errors from version detection (empty file config file or 
another boundary condition not coming to my mind).

3) run pdflatex with -cnf switch in configure.py and add this switch only if no 
error in exit code was detected.
   Someting like: printf 
'\\documentclass{article}\n\\begin{document}\nHello\n\\end{document}\n' | 
pdflatex -cnf max_print_line=999

   pros: on a first sight most robust, we rely just on latex binary being 
available
   cons: however things get complicated once you actually try to write error 
error checking.
         
         - First TL return codes are not well implemented. If you give it wrong 
parameter ("-cnff") the return code is still 0.
         If you add max_print_line=999 next to wrong parameter the error code 
becomes 1 (max_print_line=999
         is understood as a file name as -cnff was not recognized).
         It works as it is now, but it feels fragile. 
         OTOH the worst option of failure just means we don't add anything new 
to our converters.
         
         - Second it's taylored wrt TL anyway, if MikTeX or another beast 
interacts differently on commandline we might get screwed.
         
4) create our own local .cnf file and mess with environment variable where TL 
looks for the .cnf files.
   I don't want to even go here, listing just for the sake of completeness.


Also shall we add this to all latex/xetex/luatex compilers?
I generally run only pdflatex nowadays  and have little experince whether
citation/ref warnings in log are parsed well in those with lyx...


Any comments/suggestions?
Pavel
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
https://lists.lyx.org/mailman/listinfo/lyx-devel

Reply via email to