I would like to input some African language symbols (\B{t}, \m{y}). I tried command:
\usepackage[T4]{fontenc}
But it did not work. How can I use T4 font encoding?
I would like to input some African language symbols (\B{t}, \m{y}). I tried command:
\usepackage[T4]{fontenc}
But it did not work. How can I use T4 font encoding?
If you just want some symbols or words using the T4 encoding, you can do with
\documentclass{article}
\usepackage[T4,T1]{fontenc}
\newcommand{\AS}[1]{{\fontencoding{T4}\selectfont#1}}
\begin{document}
\AS{\B{t}} \AS{\m{y}}
\end{document}
If you need an environment form, add
\newenvironment{tfour}{\fontencoding{T4}\selectfont}{}
and do
\begin{tfour}\B{t} \m{y}\end{tfour}
Note, however, that T4 encoded fonts are only available as bitmap, so the output will be quite jagged, unless you instruct pdftex to use higher resolution than the default 600dpi.
You can choose higher resolution like in Get high resolution for bitmap fonts under 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}
Even better resolution can be obtained with
\pdfpkmode{dpdfezzz} \pdfpkresolution=8000
(but the PDF file will be huge).