Featured Post

We've moved to tex.my!

It’s been great writing on Blogger.com, but we’ve decided to move to a new platform, thanks to some valuable help from a great, great friend...

Showing posts with label printing. Show all posts
Showing posts with label printing. Show all posts

Friday, February 19, 2016

USMThesis Updated

USMThesis has been updated to v1.6.2, following feedback from IPS that the page numbering of appendices should be turned off in the table of contents.

If you already have the template (v1.6.1) from September 2015 and don’t want to re-download the template again now, just add these lines before \appendix in your thesis.tex:

\addtocontents{toc}{\protect\cftpagenumbersoff{part}}
\addtocontents{toc}{\protect\cftpagenumbersoff{chapter}}

Also, from recent feedback, it looks like Main Campus-IPS requires the List of Publications before the abstracts; while the Engineering Campus IPS requires the List of Publications after the appendices. So do check with IPS of your respective campuses before you print your entire thesis!

Another thing — when printing out the PDF, do remember to set paper size to A4, and Scaling to 100% or None in the Print dialog. Many PDF viewer applications would set it to 92% or Fit on page by default, and then the font sizes would come out too small and the page margins too wide!

Sunday, January 8, 2012

Text-to-Path Conversion with Ghostscript

So you’ve prepared some PDF material with LaTeX, which you’re going to send to the printing company.

If they’ using the PDF as it is, fine and dandy. But if they need to import the PDF into, say, Illustrator for some further processing, you might be in some kind of a fix if the fonts you used (in LaTeX) aren’t easily obtainable as TTF OTF forms.

One solution is to convert all texts into paths before submitting the PDF to the printers. I don’t have Illustrator, so I tried Inkscape instead. Now Inkscape does have a convert-text-to-path function, but for the texts to display properly in Inkscape in the first place, I’d still need the TTF OTF files. Inkscape cannot make use of fonts embedded in the PDF to import the text as paths directly. Not very helpful, then.

Fortunately, suv gave this workaround using Ghostscript:

As a workaround, you can use Ghostscript to convert text in a PDF (or EPS/PS) file to outlines. It requires to convert the PDF to an intermediary PS file, and then back to PDF (thus losing PDF features not supported by PostScript, like transparency).
E.g. use a shell script, containing a command similar to this one:

$ gs -sDEVICE=pswrite -dNOCACHE \
-sOutputFile=- -q -dbatch -dNOPAUSE \
-dQUIET "$1" -c quit | ps2pdf - \
"`echo $1 | cut -f1 -d'.'`"-nofont.pdf


So long as your file does not contain any transparency, the script works just fine, and you can submit the file*-nofont.pdf to your printer. And of course, expect some increase in file size.