{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} ...
32
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 ...
31
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 ...
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 ...
26
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
630 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
186 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
219 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 ...
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
209 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
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
523 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
172 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
604 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
667 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
285 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
300 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
693 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
85 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
554 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
57 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
105 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
349 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
79 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
25 views

LuaLaTeX: Is it possible to create multiple log files/custom edit the log output

I'm trying to typeset a book, and I'd like to print some messages in the log file (or somewhere else), in order to easily read them and correct my layout or the calculations beneath it. Currently I ...
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
60 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
78 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
198 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
124 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
203 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
151 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
312 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
193 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
35 views

What is happening with my fonts?

I can't quite install the fonts properly and check the log files, nor can I identify if the font is loading properly. That is, I want to choose the typography but can't notice minor differences ...
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-...
2
votes
0answers
103 views

Command to flush log file

For the tikzDevice, I want to communicate with a LaTeX process by sending input (generated LaTeX code) to its stdin and parsing output that is written using \immediate\write. In some cases I need also ...