2

So I've been writing some notes from a class in LaTeX, but recently I found some notes on the internet (.tex) written in Plain TeX, so when I compiled them I found out the font (Computer Modern) looks way smoother when using PdfTeX, is PdfLaTeX using a wrong font/doing something wrong, this only happens with that font, and is the one I want to use. I'll leave a picture of what I mean: http://i.stack.imgur.com/RDHiH.png

Top is pdfLaTex, bottom is pdftex Top is on PdfLaTeX, bottom is pdfTeX, its zoomed to 400%

First one Same order for this too.

enter image description here

MWE:

\documentclass[fontsize=10pt, twoside,a4paper]{book}


\usepackage[T1]{fontenc}
\usepackage{amsthm}
\usepackage{amssymb}
\usepackage[margin=1.5in]{geometry}
\usepackage{amsmath}

\newcommand\CC{\mathbb{C}}
\newcommand\intga{\int\limits_{\gamma}}

\theoremstyle{definition}
\newtheorem{thm}{Theorem}[chapter]



\begin{document}

\chapter{Cauchy's Theorem}

\begin{thm}
Let $f \colon \Omega \to \CC$ be analytic in $\Omega$ and let $\gamma$ be a closed Jordan curve inside $\Omega$ then $\intga f = 0$.
\end{thm}
\end{document}

Plain TeX

\magnification=\magstep1
\baselineskip = 18 true pt minus 2 true pt
\parskip = 2 true pt plus 2 true pt
\vbadness=10000
\hfuzz = 2 true pt

\newif\iftitlepage  \titlepagetrue
\newtoks\chaptertitle  \chaptertitle={Complex Analysis}
\newtoks\oddpagehead
    \oddpagehead={\vbox to 1 true in{%
    \noindent\parskip=0pt\baselineskip = 12 true pt%
    \centerline{\sl\the\chaptertitle}%
    \vskip -\baselineskip%
    \line{\hfill\rlap\quad\rm\folio}
    \vfill}}


\footline={\hfil}
\def\nopagenumbers{\def\folio{\hfil}}

\input amssym.def         
\def\CC{{\Bbb C}}
\font\pf = cmcsc10
\font\tf = cmbx10 scaled \magstep 3 
\font\rf = cmr10 scaled \magstep 1

\def\intga{\int\limits_{\gamma}}


\font\smc = cmcsc10 at 10 true pt
\font\smi = cmti10 at 10 true pt
\font\smr = cmr10 at 10 true pt
\font\smb = cmbx10 at 10 true pt

\centerline{\tf Cauchy's Theorem}

\proclaim Theorem.
Let $f \colon \Omega \to \CC$ be a continuous function such that $\intga f = 0$ for every closed path $\gamma$, then $f$ is holomorphic.

\bye
14
  • Did you check you used really the same font? And not a derived font (see en.wikipedia.org/wiki/Computer_Modern#Derived_versions) – knut Oct 3 '14 at 22:15
  • look in acrobat font menu or pdffonts commandline utility at what fonts (and what type of font) is used in the two cases – David Carlisle Oct 3 '14 at 22:19
  • For pdfLaTeX, add \usepackage[T1]{fontenc}? – cfr Oct 3 '14 at 22:37
  • @David Carlisle I edited with what you asked. – aram Oct 3 '14 at 22:52
  • @cfr yes, that one. – aram Oct 3 '14 at 22:52
2

Addingf \showoutput to your MWE shows that it uses these fonts (as known to LaTeX)

\OML/cmm/m/it/10
\OMS/cmsy/m/n/10
\OMX/cmex/m/n/10
\OT1/cmr/m/n/10
\T1/cmr/bx/n/10
\T1/cmr/bx/n/20.74
\T1/cmr/bx/n/24.88
\T1/cmr/m/n/10
\U/msb/m/n/10

which actual font files it uses to get those glyphs depends on the map files used by pdftex (for pdftex) or dvips if you are using latex. Pdftex shows them at the end as

</usr/local/texlive/2014/texmf-dist/fonts/type1/public/amsfonts/cm/cmex10.pfb>
</usr/local/texlive/2014/texmf-dist/fonts/type1/public/amsfonts/cm/cmmi10.pfb>
</usr/local/texlive/2014/texmf-dist/fonts/type1/public/amsfonts/cm/cmmi7.pfb>
</usr/local/texlive/2014/texmf-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb>
</usr/local/texlive/2014/texmf-dist/fonts/type1/public/amsfonts/cm/cmsy10.pfb>
</usr/local/texlive/2014/texmf-dist/fonts/type1/public/amsfonts/symbols/msbm10.pfb>
</usr/local/texlive/2014/texmf-dist/fonts/type1/public/cm-super/sfbx1000.pfb>
</usr/local/texlive/2014/texmf-dist/fonts/type1/public/cm-super/sfbx2074.pfb>
</usr/local/texlive/2014/texmf-dist/fonts/type1/public/cm-super/sfbx2488.pfb>
</usr/local/texlive/2014/texmf-dist/fonts/type1/public/cm-super/sfrm1000.pfb>

The pfb shows they are all type 1 fonts and acrobat's font menu confirms all fonts are Type 1.

So it seems that you have a mapping for some of the fonts to the original metafont generated bitmap fonts.

I would guess you need to install the cm-super package.

Note that the font shapes are different in any case, the latex one using designed fonts designed for 21pt whereas the plain TeX is using the 10pt body font scaled, which typically produces characters with thicker strokes as the strokes are scaled in proportion to the increase in font size.

4
  • Are you sure? On my system, I get (primarily) 10pt CM with pdfLaTeX, at least. Why would it use 21pt? (I guess that's a typo but it isn't using 12pt here, either.) Or are you saying that pdfTeX is using 10pt fonts which are simply scaled versions of 21pt, whereas TeX is simply using scaled 10pt fonts? (This wasn't my understanding of LaTeX's font configuration and the CM font setup, but that doesn't mean anything, and I don't know enough about plain TeX to know what it is expected to do.) – cfr Oct 4 '14 at 10:33
  • @cfr 21 wasn't a typo for 12 (me, a typo?, surely not) but an approximation to 20.74 specifically the font sfbx2074.pfb the plain tex version was using a 10pt font at \magstep3 – David Carlisle Oct 4 '14 at 10:44
  • Apologies. But it is using 10pt type1 fonts as well, isn't it? – cfr Oct 4 '14 at 10:48
  • 1
    @cfr yes sure but they are coming out as type 1 scalable fonts in the list in the question, so (presumably, I'm having to guess a few things not shown) it is the display fonts for which the OP hasn't got scalable versions. – David Carlisle Oct 4 '14 at 10:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.