Introduction; Using dvips; Using enscript; Using psduplex; Examples The enscript command feeds to the standard output, psrev or psselect. enscript -o – | ps2pdf – Then run enscript on your file with the -P switch and the printer description PDF in this case. get_sign.c. /* * First KLEE tutorial: testing a small function */ int get_sign(int x) { if ( x == 0) return 0; if (x < 0) return -1; else return 1; } int main() { int a;.

Author: Vudolar Shat
Country: Serbia
Language: English (Spanish)
Genre: Travel
Published (Last): 22 July 2012
Pages: 182
PDF File Size: 6.16 Mb
ePub File Size: 20.90 Mb
ISBN: 872-4-91936-633-6
Downloads: 96629
Price: Free* [*Free Regsitration Required]
Uploader: Nigor

Install ap2s with sudo apt-get install a2ps. Replace textfilename with the name of the file you want to convert and print.

Steel is replaced by IU’s newest supercomputer, Quarry. Not what OP asked for.

The best solution for me was to use wkthmltopdf. The psduplex command in Unix makes a file print on both sides of the paper.


Otherwise you will get a following error: Resources linked outpput this page may no longer be available or reliable. Abel Tom 2 For example, why is paps a better alternative?

In all examples, replace printername with the defined name of the printer. A single switch, -tumblecauses files printed in landscape mode to be rotated along the short side of the paper to keep the text upright. Because psduplex is actually enscrript an executable Perl script, you can easily install it on your own system by copying the text in between the lines into a file:. Pandoc is a must have swiss knife tool when it comes to conversion between various markup languages.


Please note that you need texlive-latex-base package to be installed first, before you outpu convert to PDF format. Two Unix commands, psselect and psrevcan reverse the output of a PostScript file.

For more information about enscriptread its man page by entering:. To get you started first install pandoc converter: This content has been archivedand is no longer maintained by Indiana University.

enscript(1) – Linux man page

Post as a guest Name. Last modified on For example, to convert the DVI file myfile. There are more options to enscripte.

By using our site, you acknowledge that you have read and understand our Cookie PolicyPrivacy Policyand our Terms of Service. Zanna 50k 13 You can always edit your answer by clicking on edit right underneath the body of the answer. Normally, the rotation is done along the long side of the page. You can combine the -2 and -r options to produce 2up style documents, with two pages per sheet in landscape orientation. For more information about enscriptread its man page by entering the following:.

Email Required, but never shown. Welcome to Ask Ubuntu hwc!

As posted above, enscript is a popular way to enzcript text to postscript, which can then be further converted to PDF. This will convert myfile. The [switches] are optional settings, as follows:. To make a PostScript file of the text file myfile.

This would convert myfile. About the Steel retirement. In the directory where your file is located run: By clicking “Post Your Answer”, you acknowledge that you have read our updated terms of serviceprivacy policy and cookie policyand that your continued use of the website is subject to these policies. Otherwise you will get a following error:.


The enscript command feeds to the standard output, psrev or psselect reverses the order of the PostScript file, and then this is fed to the printer via lpr or lp. This is document afyk in the Knowledge Base. You can combine the -2 and -r nescript to produce 2up style documents, with two pages per sheet in landscape orientation. You can send the output of the dvips command to a file using the -o switch. Sign up using Email and Password.

Oitput more packages are needed, pulling in texlive, texlive-fonts-recommended, ruby, etc. It seems to be not documented, but you can easily convert text files into PDF files by using this syntax: The [switches] are optional settings, as follows:. In the following examples, replace printer with the network-connected PostScript printer of your choice e. And if paps is not installed by default, what is the command to install it?

ouyput How can I do the same thing from the command line? The only answer here that handled my UTF8 text files without problems: Sign up or log in Sign up using Google. Home Questions Tags Users Unanswered.

For example, on a system using BSD -compatible printing, to take the output of the enscript command converting a text file named myfile. The enscript command in Unix changes a text file to PostScript format and then sends it to the printer.