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.

  • 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
    Commented Nov 3, 2021 at 1:55

1 Answer 1


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

You could just expand it as normal


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

  • my bad---I thought makeat could be used only in the preamble. thx.
    – ivo Welch
    Commented Nov 3, 2021 at 16:33
  • Minor remark: there is a typo in the second example. It should be \makeatletter (with an e)
    – Icarus
    Commented Aug 23, 2022 at 6:10
  • @Icarus I made the edit—this is a community wiki answer, by the way, so anyone can edit it.
    – Don Hosek
    Commented Aug 23, 2022 at 14:43

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .