4

Related to Is there a way to typeout the contents of \graphicspath .

However, I want to print the contents of Ginput@path to my document rather than search my log file for the contents in order to better trace out a weird bug I must have introduced somewhere. (\showthe or the even macro-ized in the prelude didn't do it.) probably trivially easy.

ivo Welch
  • 3,766
  • It is just the same as the answer you linked to. Just leave \typeout out, and it will go the the stream instead of the log. – gusbrs Nov 03 '21 at 01:55

1 Answers1

6

So that there's not an unanswered question lingering, making gusbr's answer explicit:

You could just expand it as normal

\makeatletter\Ginput@path\makeatother

but then you would not see the {} groups and any underscores in path names would cause problems. But it is just a standard TeX macro and so \meaning will show essentially the same string in the as \show would show in the log, so

\makeatletter
\texttt{\meaning\Ginput@path}
\makeatother
Don Hosek
  • 14,078