Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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
add comment

1 Answer

up vote 8 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
2  
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
add comment

Your Answer

 
discard

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.