Latex tips - for papers

From Nanoelektronikk

Revision as of 08:51, 28 April 2017 by Kristigk (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Embedding fonts using gs

When submitting manuscripts to conferences in pdf format a check is often required to ensure proper formatting and that all fonts are embedded in the pdf. When using latex and figure from MatLab embedding of font is not automatic. The following recipe is to embed all fonts.

make latex pdf

pdflatex paper.tex

embed all fonts

gs -dSAFER -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sPAPERSIZE=a4 -dPDFSETTINGS=/prepress -dCompatibilityLevel=1.4 -dMaxSubsetPct=100 -dSubsetFonts=true -dEmbedAllFonts=true -sOutputFile=paper_emb.pdf paper.pdf

to check run

pdffonts paper_emb.pdf

you shoud see yes for all fonts in the emb column

pdffonts paper.pdf
name                                 type              emb sub uni object ID
------------------------------------ ----------------- --- --- --- ---------
NCTJPT+NimbusRomNo9L-Regu            Type 1            yes yes no       4  0
YNRIGY+NimbusRomNo9L-Medi            Type 1            yes yes no      12  0
SVUTSB+CMMI12                        Type 1            yes yes no      26  0
FQQCRP+CMR12                         Type 1            yes yes no      27  0
BEQCUY+CMSY10                        Type 1            yes yes no      28  0
GAVLNO+CMMI8                         Type 1            yes yes no      42  0
UYUILD+CMMI6                         Type 1            yes yes no      43  0
TTEHLB+CMSY8                         Type 1            yes yes no      44  0
FBCSTH+CMR8                          Type 1            yes yes no      61  0
Personal tools