{logging} is about questions that concern information in the log file. For other files created during the compilation, use {auxiliary-files} instead.

learn more… | top users | synonyms

64
votes
1answer
2k views

A LaTeX log analyzer application (visualizing TeX expansion)

Consider the following MWE, test.tex: \documentclass[12pt]{article} \begin{document} \tracingassigns=1 \tracingmacros=1 \def\aaa{something} \def\bbb{else \aaa, else} \edef\ccc{third \bbb, level} ...
30
votes
2answers
1k views

Avoid linebreaks in LaTeX console / log output

Is it possible to tell the LaTeX command not to use line breaks in its console / log output? This would make it easier to automate the processing of the log file, e.g. extracting the names of missing ...
30
votes
7answers
3k views

Use latexmk to filter the log file

I am usually using latexmk in a split shell with my code on the left and latexmk in -pvc mode on the right. When using some packages which themselves load a lot of other packages (think beamer) the ...
26
votes
4answers
2k views

Display hyphenation options for a specific word

When TeX produces Overfull box, is puts something like this in the log: Overfull \hbox (15.47195pt too wide) in paragraph at lines 7--9 []\OT1/cmr/m/n/10 I re-ally re-ally want to get dis-played the ...
25
votes
1answer
2k views

Write to logfile

I want to write some things to the log file. What is the best practice for this? Is it \message{} or \typeout{} or what?
18
votes
2answers
1k views

Write to log without wrapping

I'd like to to generate some metadata in the log file that I can copy to another application. But the log file is wrapped to 80 columns and I end up with newlines embedded in what I'm putting there. ...
14
votes
1answer
261 views

Does LaTeX store any potentially personally revealing data from my source in some log file somewhere?

I'd like to know if I'm leaking personal data if I hop from computer to computer running my .tex file without deleting some hidden log of some kind that retains, say, an address I have in an invoice ...
12
votes
2answers
613 views

babel + hyperref: »redefining shorthand« several times per page

consider the following code: \documentclass{article} \usepackage[ngerman]{babel} \usepackage{hyperref} \usepackage{blindtext} \begin{document} \Blindtext\Blindtext\Blindtext \Blindtext\Blindtext\...
11
votes
1answer
73 views

Log all keys in a module

Using l3keys, is there any way to inspect the keys currently in a (sub)module? I'm looking for something like \clist_show, but for keys. \keys_show sounded promising, but requires that you already ...
11
votes
1answer
185 views

Accessing to .log messages from LuaTeX. Is it possible?

Reading the question How to visualize the underfull box in final ouput PDF files I thought that it could be possible to use LuaTeX to intercept the "Underfull vbox" message and draw some kind of ...
10
votes
2answers
126 views

How can I specify text to be included in the pdflatex output log during compilation.

I would like to be able to have some kind of logging command that is able to log text to the default pdflatex logfile (<input-base-filename>.log). Is this possible, and if so, how? In ...
10
votes
1answer
207 views

Print a message at the END of the log file

I there a way to print messages to the log file so that they appear in the last few line of the log file? Here is a MWE for my first attempt at doing this: \documentclass{amsart} \AtEndDocument{\...
9
votes
2answers
217 views

Suppress the log file lines written by a specific package?

The marginfix package is incredibly verbose in what it writes to the log file. For example: \documentclass{article} \usepackage{marginfix} \listfiles \begin{document} Here is some text\marginpar{This ...
9
votes
2answers
86 views

Can I redefine an environment to generate an error?

I know how to use \renewenvironment to redefine an environment, but instead of changing formatting, I'd like to have any use of the environment generate an error (log and abort). Is there a way to do ...
9
votes
1answer
519 views

Makeindex error when ! used in \index in align environment

See MWE below. The symbol ! in the \index causes an error. This is only the case in align environments (not in equation). So it seems to have to do something with amsmath. If ! is put in an \mbox ...
8
votes
1answer
165 views

When (La)TeX says “some message on input line XYZ” - where's that line?

I'm sure this is a dupe, but I'll go ahead anyway: LaTeX relates many of its messages to lines in files. For example: LaTeX Font Info: Try loading font information for OT1+lmtt on input line 81. ...
8
votes
1answer
50 views

How can I increase the number of columns (characters on each line) of Tex compilation log (text output)? [duplicate]

The question is similar, but the answer here is more general. The log output width is limited to 80 characters. For example, this output: (/usr/share/texlive/texmf-dist/tex/generic/pgfplots/sys/...
8
votes
1answer
144 views

Can I temporarily supress xparse's log messages?

I know that I can suppress all those annoying xparse logging messages about redefining commands using the log-declarations=false package option. I find that I can do this after xparse has been loaded ...
8
votes
1answer
125 views

How can I split the log file depending on the input file?

I have a large document that I have split into several separate documents. I have one main.tex file and several file_i.tex files which are included into main.tex using the \input-command. It also ...
7
votes
1answer
3k views

How to print out to “log” without affecting anything else (lua print equiv)

lua's print is very effective for my debugging purposes but I can't easily use it in TeX because of all the macro expansion issues. All it does is print the text to the window (console window or ...
7
votes
1answer
582 views

Logfile very large

Everytime I compile my file, I get a message from TeXstudio saying The logfile is very large (> 2 MB) are you sure you want to load it? This is mostly because I am updating the bibliography, ...
6
votes
2answers
656 views

Detect if all required glyphs are available

In XeTeX, a message is printed to the log file if a glyph is not available with the current font. The input \documentclass{scrartcl} \begin{document} α \end{document} leads to the following ...
6
votes
1answer
283 views

Automating Error Detection of pdflatex

Background: I have numerous individual files that need to be compiled, so am using a script to do that with the following options: set PDFLATEX_OPTIONS = "\ --file-line-error \ --shell-...
5
votes
2answers
2k views

tikzpicture “There is no … in font nullfont”, but no extraneous text

While looking at the log file of my document, I see a lot of paired error message lines that look like this (there might be slight inaccuracies, I am typing this on another computer for reasons I won'...
5
votes
1answer
290 views

How to log the value of a variable?

I am debugging a set of macros. The error seems to come from \vspace*{\dimexpr0.000000cm-\topskip plus 1fill}. How can I log the value of the length? I have tried \typeout{\dimexpr0.000000cm-\...
5
votes
1answer
689 views

pdftex and interaction=batchmode and xwatermark

I try to compile this file: \documentclass[10pt,openany,titlepage]{book}% \usepackage{lipsum}% \usepackage{xcolor}% \usepackage[printwatermark,default-first-page=10]{xwatermark}% \newwatermark[...
5
votes
1answer
84 views

How can I automatically add document sectioning information to the log file?

Is it possible to add data into the .log file? For example, I create a LaTeX file and at some point, i want to put a command that will add data into the .log file. I don't want something hardcoded ...
5
votes
1answer
542 views

Bookmark level unknown for first usage of newtheorem

The MWE below produces the following message in the log: Package hyperref Info: bookmark level for unknown thm defaults to 0 on input line 12 How can I prevent this? \documentclass{article} \...
4
votes
1answer
56 views

How can I automatically identify certain boxes in the \tracingoutput log?

I have a program that is automatically generating a tex file describing a document. I want to be able to record the position and page number where a few boxes were ultimately laid out. Is there any ...
4
votes
2answers
103 views

How to typeout dimensions in mm?

\typeout{***This vertical space will be \the\textheight} prints ***This vertical space will be 153.64488pt Is it possible to print \the\textheight in mm?
4
votes
1answer
340 views

\showbox and log file

I want to parse the output of the \showbox command externally. Is it possible to let \showbox write to another file than the .log file? If not, is it possible to temporarily change the name of the ....
4
votes
1answer
75 views

Is there a way to enforce indentation in the .log file? Or a script to post-process?

In a complex project, TeX is typically working on many different included files. In the .log file, file inclusion is indicated by (<filename> ... ). If such stanzas are long, and possibly nested,...
4
votes
1answer
39 views

Log paragraphs with more than n hyphenations

The (large) body of text I have written has a few paragraphs with an large number of hyphenated words. My goal is to examine these paragraphs, with the aim of rewording them. Is there a way I can make ...
4
votes
0answers
2k views

Error: “Log File not found! ” when running .bib file [closed]

I'm using TextMaker. This is my first time using bibtex. I tried a simple example found in forums where I created a .bib file and ofcourse a .tex file. Problem occurred when I tried to run my bib file....
3
votes
2answers
58 views

How to suppress font information from pdftex terminal output?

I would like that pdfTeX printed terminal logs in the same format as TeX. Font information (especially when a lot of fonts are used) makes the log output hard to read. In the following example how to ...
3
votes
1answer
4k views

Hyperref option clash error because unknown package requires/loads it too

I am currently hunting for errors in my template and these two I cannot solve after reading the log and researching: ! LaTeX Error: Option clash for package hyperref. See the LaTeX manual or LaTeX ...
3
votes
1answer
77 views

Synchronizing log output

In a flowchart, multiple processes can come together at a sync point, where both processes much reach it before anything can continue. When running a LaTeX file that makes decently heavy use of the ...
3
votes
1answer
191 views

Latex Log too big (>2MB)

My log is getting VERY big. This is a short except: LaTeX Font Info: Try loading font information for T1+uop on input line 7. (c:/texlive/2012/../texmf-local/tex/latex/uop/t1uop.fd File: t1uop.fd ...
3
votes
1answer
123 views

Can I silence pdfpages output?

The pdfpages package does not seem to have either a verbose or quiet option. I am compiling a big document and the include messages from pdfpages are obscuring the warnings from other places in the ...
3
votes
0answers
77 views

Latex finding underfull hboxes [closed]

I got an underfull hbox in my document which I can't find. The log tells me it's in line 3-3 which is \input{costumshortcuts} which I haven't changed in ages. So is there a way to find it? Or even ...
2
votes
3answers
206 views

Mapping source code to page numbers in output

Is there a way to find out (from Tex) the page number corresponding to a particular location in the source file? Using a macro in the file at that location is fine. My motivation is that I'd like to (...
2
votes
1answer
200 views

Strange hyperref Info in log file

What could be the source of the following message contained in my log file? Package hyperref Info: bookmark level for unknown unnumbered defaults to 0 on input line 48. I should say that input ...
2
votes
2answers
130 views

Problem with \printindex. No index created

I tried to create an index to a document I write, but when viewing the .pdf output there was no index. Also no error messages were displayed. I managed to find this in the LOG FILE: No file "Actual ...
2
votes
2answers
310 views

Ignore badness 10000 in \ttfamily

Due to zero stretch in \ttfamily the lines get Underfull \hbox (badness 10000) often. I would like to ignore these, still being informed about other badnesses in the same paragraph. See the example: \...
2
votes
1answer
192 views

Complex latex document: how to locate offending package dependency [solved: was using dirty build] [closed]

For final distribution, certain appendix includes the pdfpages package. However, appendices should be skipped for normal "draft" versions, or while working on individual chapters. I am having ...
2
votes
0answers
14 views

view dependencies within lyx file

I have a lyx file that has a bunch of child documents (tables) embedded in it. How can I generate a list of these external files that are included in my main file when I compile (pdflatex) it? This ...
2
votes
0answers
53 views

Increasing datetime resolution, to be used for log files

I have some log files with a full time stamp like this: time value 2015-10-15 13:16:48.019901 56 2015-10-15 13:16:48.066701 53 2015-10-15 13:16:48.097900 57 2015-10-15 13:16:51.126281 61 2015-...
1
vote
1answer
341 views

Sorting logs into different folders

When I run xelatex (or other compilers), I always end up with many log files in a single folder. This gets difficult to manage. I could create a script which moves them into various folders (e.g. one ...
1
vote
1answer
59 views

Is there any way for LaTeX to provide a file context for better log messages?

UPDATE: In hindsight, I realize that this question is really, "Is there any way for LaTeX to keep the file context and warning/error message on the same line?" This would be fore the purpose of ...
1
vote
1answer
721 views

How to get error messages from pdflatex tool (specially running from php)

I am executing pdflatex from php script and it gives me very long list of log entries mixed with errors e.g system('/usr/texbin/pdflatex -output-directory=./temp/tex '.$tex_output . " 1> /...