Texmaker and TeXstudioTexMaker limiting log file line length (how to change)

Information and discussion about Texmaker, an integrated LaTeX environment for several platforms, and the related TeXstudio
Post Reply
wagner
Posts: 2
Joined: Mon Mar 06, 2023 6:37 pm

TexMaker limiting log file line length (how to change)

Post by wagner »

I am wanting to get TexMaker (in Windows) to generate log messages with longer line lengths. Currently I am getting the lines to be wrapped at 80 characters. Loading the log file into a text editor is showing the same issue, so TexMaker or one of its tools is apparently causing this.

What specifically is causing the line wrapping and is there an option to not wrap the lines at 80 characters in the generated log file or to at least set the wrapping column to be much greater than 80 characters?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX books
User avatar
MjK
Posts: 89
Joined: Fri Jan 28, 2022 6:09 pm

TexMaker limiting log file line length (how to change)

Post by MjK »

The line length in the log-files of the LaTeX run are not limited by the editor—in your case TeXmaker—but are a hard coded limitation of the TeX engines. AFAIK it cannot be changed. This is indeed also a problem of several programs (e.g. most LaTeX editors), that try to analyze the log or the terminal output.
My main topics are KOMA-Script and other questions related to my packages. If I reply to any other topic or if you've not yet added a minimal working example, please do not expect any further response. And please don't forget to tag examples as code.
wagner
Posts: 2
Joined: Mon Mar 06, 2023 6:37 pm

TexMaker limiting log file line length (how to change)

Post by wagner »

I did discover that I could add the following commandline argument to "pdflatex" in Texmaker, the environment I am using.

In Texmaker, under the "Options/Texmaker" menu selection, within the popup "Configure Texmaker" window, in the field for the PdfLaTeX command line, one can add the following option "-max-print-line=10000" (10000 value was arbitrarily chosen) to increase the line length before wrapping greater than the default 79 characters.
Screenshot of TExmaker configuration window with highlighted max-print-line option
Screenshot of TExmaker configuration window with highlighted max-print-line option
Texmaker_max-print-line_option.jpg (117.98 KiB) Viewed 74605 times
Janeer
Posts: 1
Joined: Mon Oct 02, 2023 5:29 pm

TexMaker limiting log file line length (how to change)

Post by Janeer »

It seems you've found a solution to your issue with TexMaker limiting the log file line length. Adding the command line argument "-max-print-line=10000" to "pdflatex" in Texmaker's configuration is a clever workaround to increase the line length before wrapping in the generated log file. This should be helpful for your needs and prevent the lines from being wrapped at the default 79 characters. Thank you for sharing this solution!
Post Reply