
我想輸入一些非洲語言符號(\B{t}
, \m{y}
)。我嘗試了命令:
\usepackage[T4]{fontenc}
但這沒有用。如何使用T4字體編碼?
答案1
如果你只想要一些使用 T4 編碼的符號或單詞,你可以這樣做
\documentclass{article}
\usepackage[T4,T1]{fontenc}
\newcommand{\AS}[1]{{\fontencoding{T4}\selectfont#1}}
\begin{document}
\AS{\B{t}} \AS{\m{y}}
\end{document}
如果您需要環境表單,請新增
\newenvironment{tfour}{\fontencoding{T4}\selectfont}{}
並做
\begin{tfour}\B{t} \m{y}\end{tfour}
但請注意,T4 編碼字體僅可用作點陣圖,因此輸出將非常鋸齒狀,除非您指示pdftex
使用高於預設 600dpi 的解析度。
您可以選擇更高的分辨率,例如在pdflatex下獲得高解析度的點陣字體?
\pdfpkmode{supre} \pdfpkresolution=2400
\documentclass{article}
\usepackage[T4,T1]{fontenc}
\newcommand{\AS}[1]{{\fontencoding{T4}\selectfont#1}}
\begin{document}
\AS{\B{t}} \AS{\m{y}}
\end{document}
可以獲得更好的分辨率
\pdfpkmode{dpdfezzz} \pdfpkresolution=8000
(但是PDF文件會很大)。