[tex-eplain] accents problem in pdf generated by eplain

Gérald Tenenbaum gerald.ten at free.fr
Wed Jan 26 17:19:00 CET 2022


Many thanks again, Karl.

So this preamble seems to work

\input eplain
\font\tenrm = texnansi-lmr10.tfm
\font\tenit = texnansi-lmri10.tfm
\font\tenbf = texnansi-lmbx10.tfm
\def\eacute{\char"E9 }
\catcode`\é=\active\defé{\rm\eacute}
\let\optionkeymacros\null

However this new é is now \rm only, so I do not see how to code {\it 
théorie} for instance.
There is no need to redefine maths symbols.


Karl Berry a écrit le 25/01/2022 à 03:18 :
>      So how can I have it work in italics, bold etc?
>
> As long as you use the texnansi-* encoding, the character set should be
> the same.  LM provides all the fonts of CM (and more; list below for
> your convenience), so it's basically a matter of using them for whatever
> fonts you need in your document.  There is no standard way to do this in
> plain TeX.
>
> Following the conventions of plain.tex itself, it would amount to
> commands like
> \font\tenrm = texnansi-lmr10
> \font\tenit = texnansi-lmti10
> \font\tenbf = texnansi-lmbx10
>
> Then plain's \rm, as in {\rm this is now lmr}, will switch to the
> texnansi-lmr10 font, etc.
>
> Math requires more work.
>
> There have been several attempts at making a full font switching scheme
> for plain TeX, but I've never used any of them. --hope this helps, karl.
>
>
> Here's the list of LM texnansi-*.tfm files. The LM filenames follow the
> CM conventions, plus prepending the encoding. BTW, the TeX Gyre package,
> also from GUST, provides the standard 35 PostScript fonts in texnansi-*,
> if you want those. There are more.
>
> Documentation, etc., for lm: https://ctan.org/pkg/lm
> For TeX Gyre: https://ctan.org/pkg/tex-gyre
>
> texnansi-lmb10
> texnansi-lmbo10
> texnansi-lmbx10
> texnansi-lmbx12
> texnansi-lmbx5
> texnansi-lmbx6
> texnansi-lmbx7
> texnansi-lmbx8
> texnansi-lmbx9
> texnansi-lmbxi10
> texnansi-lmbxo10
> texnansi-lmcsc10
> texnansi-lmcsco10
> texnansi-lmdunh10
> texnansi-lmduno10
> texnansi-lmr10
> texnansi-lmr12
> texnansi-lmr17
> texnansi-lmr5
> texnansi-lmr6
> texnansi-lmr7
> texnansi-lmr8
> texnansi-lmr9
> texnansi-lmri10
> texnansi-lmri12
> texnansi-lmri7
> texnansi-lmri8
> texnansi-lmri9
> texnansi-lmro10
> texnansi-lmro12
> texnansi-lmro17
> texnansi-lmro8
> texnansi-lmro9
> texnansi-lmss10
> texnansi-lmss12
> texnansi-lmss17
> texnansi-lmss8
> texnansi-lmss9
> texnansi-lmssbo10
> texnansi-lmssbx10
> texnansi-lmssdc10
> texnansi-lmssdo10
> texnansi-lmsso10
> texnansi-lmsso12
> texnansi-lmsso17
> texnansi-lmsso8
> texnansi-lmsso9
> texnansi-lmssq8
> texnansi-lmssqbo8
> texnansi-lmssqbx8
> texnansi-lmssqo8
> texnansi-lmtcsc10
> texnansi-lmtcso10
> texnansi-lmtk10
> texnansi-lmtko10
> texnansi-lmtl10
> texnansi-lmtlc10
> texnansi-lmtlco10
> texnansi-lmtlo10
> texnansi-lmtt10
> texnansi-lmtt12
> texnansi-lmtt8
> texnansi-lmtt9
> texnansi-lmtti10
> texnansi-lmtto10
> texnansi-lmu10
> texnansi-lmvtk10
> texnansi-lmvtko10
> texnansi-lmvtl10
> texnansi-lmvtlo10
> texnansi-lmvtt10
> texnansi-lmvtto10
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/tex-eplain/attachments/20220126/ba7f1851/attachment.html>


More information about the tex-eplain mailing list.