Browse Source

automated update from build.py

main
Colin McMillen 3 years ago
parent
commit
9b2ade160c
  1. 18
      blog/20070522-latex-tips.html
  2. 18
      feed.atom

18
blog/20070522-latex-tips.html

@ -31,22 +31,26 @@
<div class="content">
<h1 id="latex-tips">LaTeX Tips</h1>
<p><em>Posted 2007-05-22.</em></p>
<p><em>Posted 2007-05-22; updated 2021-07-01.</em></p>
<p>Note that these instructions are over a decade old. Some things may have changed since then. :)</p>
<h2 id="embedding-fonts-in-pdfs">Embedding fonts in PDFs</h2>
<p>To check whether fonts are embedded, use <code>pdffonts</code>, which is included with <code>xpdf</code>. <code>pdffonts</code> gives output that looks like this:</p>
<div class="codehilite"><pre><span></span>$ pdffonts paper.pdf
name <span class="nb">type</span> emb sub uni object ID
name type emb sub uni object ID
------------------------------------ ------------ --- --- --- ---------
FHQIOS+NimbusRomNo9L-Medi Type <span class="m">1</span> yes yes no <span class="m">6</span> <span class="m">0</span>
NEESMN+NimbusRomNo9L-Regu Type <span class="m">1</span> yes yes no <span class="m">9</span> <span class="m">0</span>
PJQNOS+CMSY10 Type <span class="m">1</span> yes yes no <span class="m">12</span> <span class="m">0</span>
FHQIOS+NimbusRomNo9L-Medi Type 1 yes yes no 6 0
NEESMN+NimbusRomNo9L-Regu Type 1 yes yes no 9 0
PJQNOS+CMSY10 Type 1 yes yes no 12 0
</pre></div>
<p>You want <code>emb</code> to be <code>yes</code> for all fonts (and possibly <code>sub</code> as well; also, all fonts should be Type 1, not Type 3). By default in Ubuntu, pdflatex should embed all fonts. Just in case, you can check <code>/etc/texmf/updmap.d/00updmap.cfg</code>, which should have a line like this:</p>
<p><code>pdftexDownloadBase14 true</code></p>
<p>If it&rsquo;s set to <code>false</code>, change it to <code>true</code>, then run <code>update-updmap</code> as root. Remake the PDF; if it still has non-embedded fonts, your figures are probably to blame. Check your PDF figures and make sure their fonts are embedded (using the <code>pdffonts</code> command). For anything that doesn&rsquo;t have embedded fonts, you can try the following magical invocation (all on one line):</p>
<div class="codehilite"><pre><span></span>gs -dSAFER -dNOPLATFONTS -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sPAPERSIZE=letter -dCompatibilityLevel=1.4 -dPDFSETTINGS=/printer -dCompatibilityLevel=1.4 -dMaxSubsetPct=100 -dSubsetFonts=true -dEmbedAllFonts=true -sOutputFile=figures/Mprime-new.pdf -f figures/Mprime.pdf
<p>If it&rsquo;s set to <code>false</code>, change it to <code>true</code>, then run <code>update-updmap</code> as root. Remake the PDF; if it still has non-embedded fonts, your figures are probably to blame. Check your PDF figures and make sure their fonts are embedded (using the <code>pdffonts</code> command). For anything that doesn&rsquo;t have embedded fonts, you can try the following magical invocation:</p>
<div class="codehilite"><pre><span></span>gs -dSAFER -dNOPLATFONTS -dNOPAUSE -dBATCH -sDEVICE=pdfwrite \
-sPAPERSIZE=letter -dCompatibilityLevel=1.4 -dPDFSETTINGS=/printer \
-dCompatibilityLevel=1.4 -dMaxSubsetPct=100 -dSubsetFonts=true \
-dEmbedAllFonts=true -sOutputFile=figures/Mprime-new.pdf -f figures/Mprime.pdf
</pre></div>

18
feed.atom

@ -18,22 +18,26 @@
<content type="html">
<![CDATA[
<h1 id="latex-tips">LaTeX Tips</h1>
<p><em>Posted 2007-05-22.</em></p>
<p><em>Posted 2007-05-22; updated 2021-07-01.</em></p>
<p>Note that these instructions are over a decade old. Some things may have changed since then. :)</p>
<h2 id="embedding-fonts-in-pdfs">Embedding fonts in PDFs</h2>
<p>To check whether fonts are embedded, use <code>pdffonts</code>, which is included with <code>xpdf</code>. <code>pdffonts</code> gives output that looks like this:</p>
<div class="codehilite"><pre><span></span>$ pdffonts paper.pdf
name <span class="nb">type</span> emb sub uni object ID
name type emb sub uni object ID
------------------------------------ ------------ --- --- --- ---------
FHQIOS+NimbusRomNo9L-Medi Type <span class="m">1</span> yes yes no <span class="m">6</span> <span class="m">0</span>
NEESMN+NimbusRomNo9L-Regu Type <span class="m">1</span> yes yes no <span class="m">9</span> <span class="m">0</span>
PJQNOS+CMSY10 Type <span class="m">1</span> yes yes no <span class="m">12</span> <span class="m">0</span>
FHQIOS+NimbusRomNo9L-Medi Type 1 yes yes no 6 0
NEESMN+NimbusRomNo9L-Regu Type 1 yes yes no 9 0
PJQNOS+CMSY10 Type 1 yes yes no 12 0
</pre></div>
<p>You want <code>emb</code> to be <code>yes</code> for all fonts (and possibly <code>sub</code> as well; also, all fonts should be Type 1, not Type 3). By default in Ubuntu, pdflatex should embed all fonts. Just in case, you can check <code>/etc/texmf/updmap.d/00updmap.cfg</code>, which should have a line like this:</p>
<p><code>pdftexDownloadBase14 true</code></p>
<p>If it&rsquo;s set to <code>false</code>, change it to <code>true</code>, then run <code>update-updmap</code> as root. Remake the PDF; if it still has non-embedded fonts, your figures are probably to blame. Check your PDF figures and make sure their fonts are embedded (using the <code>pdffonts</code> command). For anything that doesn&rsquo;t have embedded fonts, you can try the following magical invocation (all on one line):</p>
<div class="codehilite"><pre><span></span>gs -dSAFER -dNOPLATFONTS -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sPAPERSIZE=letter -dCompatibilityLevel=1.4 -dPDFSETTINGS=/printer -dCompatibilityLevel=1.4 -dMaxSubsetPct=100 -dSubsetFonts=true -dEmbedAllFonts=true -sOutputFile=figures/Mprime-new.pdf -f figures/Mprime.pdf
<p>If it&rsquo;s set to <code>false</code>, change it to <code>true</code>, then run <code>update-updmap</code> as root. Remake the PDF; if it still has non-embedded fonts, your figures are probably to blame. Check your PDF figures and make sure their fonts are embedded (using the <code>pdffonts</code> command). For anything that doesn&rsquo;t have embedded fonts, you can try the following magical invocation:</p>
<div class="codehilite"><pre><span></span>gs -dSAFER -dNOPLATFONTS -dNOPAUSE -dBATCH -sDEVICE=pdfwrite \
-sPAPERSIZE=letter -dCompatibilityLevel=1.4 -dPDFSETTINGS=/printer \
-dCompatibilityLevel=1.4 -dMaxSubsetPct=100 -dSubsetFonts=true \
-dEmbedAllFonts=true -sOutputFile=figures/Mprime-new.pdf -f figures/Mprime.pdf
</pre></div>

Loading…
Cancel
Save