TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When creating LaTeX-driven reports, I would like to skip writing LaTeX sources to the disk prior to compilation and cleaning up afterwards. Can a stream be sent to pdflatex somehow?

share|improve this question
up vote 10 down vote accepted

without specifing an output name you get with

cat test.tex | pdflatex &>/dev/null && rm texput.log texput.aux

the output file texput.pdf

share|improve this answer
Perhaps I am missing something, but it seems to me that test.tex is written to a filesystem; it is not a stream. – ipavlic Feb 17 '12 at 14:43
that is a demonstration how a stream can go to pdflatex. In this case it comes from cat and in your case "I don't know ..." – Herbert Feb 17 '12 at 16:31
I see. Thank you. – ipavlic Feb 17 '12 at 16:35

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.