2

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 Mar 14 '14 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 Mar 14 '14 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 Mar 14 '14 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 Mar 15 '14 at 10:32
  • Do you know about \iffontchar? – egreg Mar 15 '14 at 10:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.