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 to look at the log file, but I have noticed that it seems to be buffered: When I start pdflatex at the console and type a document, the log file texput.log doesn't seem to be written until I end the document.

Is there a way to flush the buffers for the log file, so that everything accumulated so far is written?

  • I don't think it's possible.
    – egreg
    Commented Mar 14, 2014 at 20:53
  • @egreg: That's too bad. Can I at least read the log file from within LaTeX, and perhaps copy it to somewhere else? Or perhaps close/reopen the log file? I know I can \typeout to overflow the buffer so that it's emptied eventually, but that's not exactly elegant...
    – krlmlr
    Commented Mar 14, 2014 at 22:10
  • It depends on what you want to read in the log file. Closing and reopening it is out of the question, I'm afraid; and it's not available from within TeX.
    – egreg
    Commented Mar 14, 2014 at 22:38
  • @egreg: I need to detect missing characters from fonts: tex.stackexchange.com/q/165665/8057. Currently, this is done by looking a the log file.
    – krlmlr
    Commented Mar 15, 2014 at 10:32
  • Do you know about \iffontchar?
    – egreg
    Commented Mar 15, 2014 at 10:53


You must log in to answer this question.

Browse other questions tagged .