使用 PdfTeX 與 PdfLaTeX 時字體的「平滑度」差異

使用 PdfTeX 與 PdfLaTeX 時字體的「平滑度」差異

所以我一直在用 LaTeX 寫一些課堂筆記,但最近我在互聯網上發現了一些用 Plain TeX 編寫的筆記(.tex),所以當我編譯它們時,我發現字體(Computer Modern)看起來更平滑使用PdfTeX,PdfLaTeX 是否使用了錯誤的字體/做了錯誤的事情,這只發生在該字體上,並且是我想要使用的字體。我會留下一張圖片來表達我的意思: https://i.stack.imgur.com/RDHiH.png

頂部是 pdfLaTex,底部是 pdftex 頂部是 PdfLaTeX,底部是 pdfTeX,放大到 400%

第一個也有同樣的訂單。

在此輸入影像描述

微量元素:

\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}

純文字

\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

答案1

將 f 加到\showoutputMWE 表明它使用這些字體(如 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

它使用哪些實際字體檔案來取得這些字形取決於 pdftex (對於 pdftex)或 dvips (如果您使用的是 Latex)使用的映射檔案。 Pdftex 在最後將它們顯示為

</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>

顯示pfb它們都是 Type 1 字體,並且 acrobat 的字體選單確認所有字體都是 Type 1。

因此,您似乎有一些字體到原始元字體生成的點陣字體的映射。

我猜你需要安裝該cm-super軟體包。

請注意,字體形狀在任何情況下都不同,乳膠字體使用專為21pt 設計的字體,而plain TeX 使用縮放的10pt 主體字體,這通常會產生具有較粗筆劃的字符,因為筆劃與筆劃的增加成比例地縮放。

相關內容