By setting max_print_line=1000 in texmf.cnf or the environment, the logfile becomes more readable.
How should we set the environment in .latexmk?
I want to set the variable per project. Not global.
By setting max_print_line=1000 in texmf.cnf or the environment, the logfile becomes more readable.
How should we set the environment in .latexmk?
I want to set the variable per project. Not global.
Just put
$ENV{max_print_line} = $log_wrap = 1000;
in the project's .latexmkrc file. The Perl variable $ENV{max_print_line} is equivalent to the corresponding environment variable for the OS, and it is passed to all the programs that latexmk invokes. The corresponding internal variable for latexmk is $log_wrap, and is used in its analysis of log files.
(Notes to myself as latexmk maintainer: Latexmk should be changed so that it uses $ENV{max_print_line} instead of $log_wrap whenever it is found that the environment variable is set. Also $log_wrap should be documented although it currently isn't.)
.latexmkand not simply intexmf.cnf? – samcarter_is_at_topanswers.xyz Jul 31 '17 at 13:22alias mylatexmk='export max_print_line=1000; latexmk(if you are not using bash, the commands need to be adjusted accordingly) – samcarter_is_at_topanswers.xyz Jul 31 '17 at 13:35run.shbut there is latexmk already which should manage this. – Jonas Stein Jul 31 '17 at 13:52