編輯

編輯

當我在上標中有減號時,它們在列印 pdflatex 產生的 pdf 時消失,但僅在使用 documentclassscrartcl而不是article.例如,

\documentclass{article}

\begin{document}
\(x^{-1}\)
\end{document}

\documentclass{scrartcl}

\begin{document}
\(x^{-1}\)
\end{document}

兩者都會產生一個 pdf 文件,如下所示:

x 上標減一

但是,當我列印第一個產生的 pdf 時,我得到

列印 x 並帶有上標 -1

而列印出從第二個產生的 pdf 給出

列印 x 並帶有上標 1

我怎樣才能解決這個問題?

編輯

article你們都認為這是由和中不同的預設字體大小引起的,這是正確的scrartcl。這重現了問題:

\documentclass[11pt]{article}

\begin{document}
\(x^{-1}\)
\end{document}

雖然不會:

\documentclass[10pt]{scrartcl}

\begin{document}
\(x^{-1}\)
\end{document}

這是 11pt 案例的日誌檔article

This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016/Arch Linux) (preloaded format=pdflatex 2017.3.15)  16 APR 2017 10:29
entering extended mode
 restricted \write18 enabled.
 file:line:error style messages enabled.
 %&-line parsing enabled.
**\input mcve.ltx
(./mcve.ltx (/usr/share/texmf-dist/tex/latex/base/article.cls
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
(/usr/share/texmf-dist/tex/latex/base/size11.clo
File: size11.clo 2014/09/29 v1.4h Standard LaTeX file (size option)
)
\c@part=\count79
\c@section=\count80
\c@subsection=\count81
\c@subsubsection=\count82
\c@paragraph=\count83
\c@subparagraph=\count84
\c@figure=\count85
\c@table=\count86
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
) (./mcve.aux)
\openout1 = `mcve.aux'.

LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 3.
LaTeX Font Info:    ... okay on input line 3.
LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 3.
LaTeX Font Info:    ... okay on input line 3.
LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 3.
LaTeX Font Info:    ... okay on input line 3.
LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 3.
LaTeX Font Info:    ... okay on input line 3.
LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 3.
LaTeX Font Info:    ... okay on input line 3.
LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 3.
LaTeX Font Info:    ... okay on input line 3.
LaTeX Font Info:    External font `cmex10' loaded for size
(Font)              <10.95> on input line 4.
LaTeX Font Info:    External font `cmex10' loaded for size
(Font)              <8> on input line 4.
LaTeX Font Info:    External font `cmex10' loaded for size
(Font)              <6> on input line 4.
 [1

{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}] (./mcve.aux) ) 
Here is how much of TeX's memory you used:
 220 strings out of 493013
 2322 string characters out of 6139317
 53632 words of memory out of 5000000
 3844 multiletter control sequences out of 15000+600000
 6379 words of font info for 23 fonts, out of 8000000 for 9000
 1141 hyphenation exceptions out of 8191
 21i,4n,19p,117b,107s stack positions out of 5000i,500n,10000p,200000b,80000s
 </home/will
/.texlive/texmf-var/fonts/pk/ljfour/public/cm/cmr10.657pk> </usr/share/texmf-di
st/fonts/pk/ljfour/public/cm/dpi600/cmr8.pk> </home/will/.texlive/texmf-var/fon
ts/pk/ljfour/public/cm/cmsy8.600pk> </home/will/.texlive/texmf-var/fonts/pk/ljf
our/public/cm/cmmi10.657pk>
Output written on mcve.pdf (1 page, 2342 bytes).
PDF statistics:
 28 PDF objects out of 1000 (max. 8388607)
 20 compressed objects within 1 object stream
 0 named destinations out of 1000 (max. 500000)
 1 words of extra memory for PDF output out of 10000 (max. 10000000)

至於我的系統和印表機本身,我運行 Arch Linux 並透過 CUPS 進行列印。印表機是HP OfficeJet Pro 8600 HP Officejet Pro 8600 hpijs, 3.16.11 (color, 2-sided printing)hplip列印對話方塊或 CUPS 中似乎沒有任何字型呈現選項。

答案1

日誌檔案的這一部分是最重要的:

 </home/will
/.texlive/texmf-var/fonts/pk/ljfour/public/cm/cmr10.657pk> </usr/share/texmf-di
st/fonts/pk/ljfour/public/cm/dpi600/cmr8.pk> </home/will/.texlive/texmf-var/fon
ts/pk/ljfour/public/cm/cmsy8.600pk> </home/will/.texlive/texmf-var/fonts/pk/ljf
our/public/cm/cmmi10.657pk>

這基本上意味著您在 PDF 輸出中使用點陣字體。根據 PDF 檢視器的不同,這可能會導致在不同放大倍率下顯示的符號出現明顯差異。

安裝完整的 TeX Live,因此將使用 Type1(輪廓)字體,該字體具有以各種放大倍率/解析度顯示的提示。

相關內容