![]() ![]() Instead of using dvips and ps2pdf, you may also use dvipdfm to generate a PDF directly from a DVI file: latex my_file.tex Just replace 'my_file.ps' with 'my_file.pdf' above. If you already have a file my_file.pdf with fonts not embedded, you can also use the Ghostscript command above to produce a new PDF with all fonts embedded. The ps2pdf call above is essentially the same as calling Ghostscript directly, e.g.: gs -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -dPDFSETTINGS=/prepress -dEmbedAllFonts=true -sOutputFile=my_file_embedded.pdf -f my_file.ps On my system it turned out to be sufficient to just pass -dPDFSETTINGS=/prepress. Ps2pdf -dPDFSETTINGS=/prepress -dEmbedAllFonts=true my_file.ps If some fonts are not embedded, you can instruct ps2pdf to embed all fonts by passing the options -dPDFSETTINGS=/prepress -dEmbedAllFonts=true as follows: latex my_file.tex If you use LaTeX to produce a DVI file, dvips to produce a postscript file, and ps2pdf to generate the PDF, you should check for embedded fonts just like described for PDFLaTeX above. Some figures (usually in PDF format) included in your document may, however, result in fonts not being embedded. Overall, if your document does not include externally generated figures, most likely your fonts are properly embedded when using PDFLaTeX. Here is a sample output from pdffonts for a PDF with all fonts embedded: name type emb sub uni object ID The third column says ' yes' if the font is embedded, and ' no' if the font is not embedded. The tool prints a table listing all the fonts used in the PDF. This can be achieved with either your favorite PDF viewer, or on the command line with pdffonts: pdffonts my_file.pdf If you use PDFLaTeX and do not include any figures, you may not need to do anything other than verify that all fonts are indeed embedded. There is also a small tarball available for download with all the details so that you can reproduce (and use for copy&paste) the subsequent discussion. Some tricks will even apply to PDFs in general and not be specific to LaTeX. ![]() In the following I will explain how you can make sure that all fonts are embedded in your LaTeX documents (journal papers, conference contributions, flyers, etc.). Not quite what you want from a portable document standard, is it? If a PDF does not embed all fonts, the target system may replace the respective font with the 'best' available system font, so the document is almost certain to look different on different machines. Next you can convert the man page into DVI using this command: $ man -l -Tdvi /usr/share/man/man1/mplayer.1.gz > mplayer.dvi If you have any comments or corrections please feel free to email them to me.For high quality publications it is absolutely mandatory to embed all fonts in the respective PDF. In order to do this, you need to have the groff package installed: # apt-get install groff What this command does is actually to convert the man page into PS and then pipe that into the ps2pdf program that then convert the PS file into PDF. Next you can convert the man page into PDF using this command: $ man -l -Tps /usr/share/man/man1/mplayer.1.gz | ps2pdf - mplayer.pdf On any Debian derived distribution you can installed the package using: # apt-get install ps2pdf In order to do this, you need to have the ps2pdf package installed. On Debian the mplayer man page is located in /usr/share/man/man1/ Converting the man page into PS $ man -l -Tps /usr/share/man/man1/mplayer.1.gz > mplayer.ps Converting the man page into PDF Mplayer: /usr/bin/mplayer /etc/mplayer /usr/share/mplayer /usr/share/man/man1/mplayer.1.gz It turned out to be very easy to convert man pages into other formats.įirst locate the man page that you want to convert (in this case the man page for mplayer): $ whereis mplayer The man page for mplayer is very extensive and I wanted to convert it into a PDF file so that I could print it out and read it at a later time. This how-to is about how to convert a man page into a PS or PDF document. The Unix command used to display them is `man`. Man pages (short for "manual pages") are the extensive documentation that comes preinstalled with almost all substantial Unix-like operating systems. | about | faq | resources | contact | rss How to convert a man page into PS, PDF or DVI ![]() ![]() How to convert a man page into PS, PDF or DVI ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |