Tagged Questions
3
votes
1answer
112 views
Print macro output instead of executing
I am attempting to debug a Tikz/PGF script. I have a STY file that generates Tikz/PGF scripts, but the output graphic isn't quite what I want it to be.
In order to debug the problem, I was hoping ...
42
votes
0answers
1k 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}
...
5
votes
1answer
245 views
A \typeout (or expandable command) that can expand once - or with variable levels of expansion?
Consider the following MWE:
\documentclass[12pt]{article}
\begin{document}
\def\aaa{something}
\typeout{=1==\aaa==}
\typeout{=1==\meaning\aaa==}
\typeout{}
\def\bbb{else \aaa, else}
...
5
votes
2answers
106 views
Showing definition of macros with custom characters?
Consider the following MWE:
\documentclass{book}
\usepackage{biblatex}
\begin{document}
\typeout{1.=\meaning\usebibmacro}
\typeout{2.=\meaning\usebibmacro{name:first-last}}
\makeatletter
...
3
votes
1answer
129 views
Showing expanded `\let` command with `\typeout`
I have already seen the related page macros - What is the difference between \let and \edef?, but I'm afraid it still doesn't expain to me the following MWE:
\documentclass{minimal}
...
5
votes
2answers
224 views
On unprotecting (expanding) \protected macros (or, “the space after command name”)
I quite often come into a situation, where I need to obtain some text produced by a package macro as a string, like in say:
Expanding (edef) a lipsum command?
How do I "unprotect" an ...
23
votes
2answers
594 views
How do I debug pgfkeys?
I'm sure if you're reading this question you are already familiar with my love for pgfkeys. However, it is absolutely impossible to debug: \tracingmacros is a total mess, with every key expanding to ...