Discussion:
[tex-k] Writing output to standard output rather than to a file
Jay F Shachter
2012-03-11 18:32:38 UTC
Permalink
Is there a pdfetex option (or another program) that reads TeX input
and sends pdf or PostScript output to the standard output rather than
to a file? Or an etex option (or another program) that reads TeX
input and sends dvi output to the standard output rather than to a
file (at which point I can run "dvips -o -" or "dvips -o /dev/fd/1" to
read the dvi stream and send PostScript to standard output)? I am
trying to construct print filters that will enable me to invoke, e.g.,
"lp file.tex" and which will, upon recognizing a TeX input file,
automatically run the appropriate filters and print the output. Thank
you in advance for your replies.


Jay F. Shachter
6424 N Whipple St
Chicago IL 60645-4111
(1-773)7613784
jay at m5.chicago.il.us
http://m5.chicago.il.us

"Quidquid latine dictum sit, altum videtur"
Heiko Oberdiek
2012-03-11 18:16:09 UTC
Permalink
Post by Jay F Shachter
Is there a pdfetex option (or another program) that reads TeX input
and sends pdf or PostScript output to the standard output rather than
to a file?
No, except for "dvips -o" I don't know such option.
Post by Jay F Shachter
I am
trying to construct print filters that will enable me to invoke, e.g.,
"lp file.tex" and which will, upon recognizing a TeX input file,
automatically run the appropriate filters and print the output.
A TeX file could be anything, e.g. LaTeX usually writes
.aux files and need two or more runs to get the references right.
Also other tools might be involved (makeindex, bibtex, ...).

For a filter you could use a scratch directory (see also
pdfTeX's option -output-directory), doing the compile
runs and cat the final PDF page and cleanup afterwards.

Yours sincerely
Heiko Oberdiek
--

Loading...