<div dir="ltr"><div>Hello</div><div><br></div><div>Karl's solution is clearly the best, but in case it's ever needed, I have sometimes (indeed quite often) found it useful to get TeX to decide between roman and italic thus:</div><div><br></div><div>(1) I always nest italic: {\it this is italic text\/}</div><div>(2) I have an 'if' command: \newif \ifitalic</div><div>(3) I define \it thus: \def\it{\italictrue \juniit} [or whatever font I want to use for italic]</div><div>(4) For occasionally used characters that require dipping into that font (in this case Junicode), I give:</div><div><br></div><div> \def\wyn{\leavevmode \ifitalic {\juniit \char"01BF}\else {\junirom \char"01BF}\fi}</div><div><br></div><div>If you need bolditalic and bold versions, it's just a matter of giving \wyn a more elaborate definition with extra \if and \fi commands (and defining another couple of \newif commands, e.g. \ifboldit and \ifbold), and ensuring that these are included in the definitions of \boldit \and \bold, as above for italic.<br></div><div><br></div><div>In use, I like to bracket off these characters: {\wyn}. If you don't like doing that, you would need an extra set of { } round the definition of \wyn so that your occasionally used font doesn't get invoked from that point onwards.<br></div><div><br></div><div>That's rather clumsy to describe but it works smoothly once set up. It might be of occasional use.<br></div><div><br></div><div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>Best wishes<br></div><div></div><br><div>John <b><font color="#888888">🇪🇺</font></b></div><br></div></div></div></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 25 Jan 2022 at 02:19, Karl Berry <<a href="mailto:karl@freefriends.org">karl@freefriends.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> So how can I have it work in italics, bold etc?<br>
<br>
As long as you use the texnansi-* encoding, the character set should be<br>
the same. LM provides all the fonts of CM (and more; list below for<br>
your convenience), so it's basically a matter of using them for whatever<br>
fonts you need in your document. There is no standard way to do this in<br>
plain TeX.<br>
<br>
Following the conventions of plain.tex itself, it would amount to<br>
commands like<br>
\font\tenrm = texnansi-lmr10<br>
\font\tenit = texnansi-lmti10<br>
\font\tenbf = texnansi-lmbx10<br>
<br>
Then plain's \rm, as in {\rm this is now lmr}, will switch to the<br>
texnansi-lmr10 font, etc.<br>
<br>
Math requires more work.<br>
<br>
There have been several attempts at making a full font switching scheme<br>
for plain TeX, but I've never used any of them. --hope this helps, karl.<br>
<br>
<br>
Here's the list of LM texnansi-*.tfm files. The LM filenames follow the<br>
CM conventions, plus prepending the encoding. BTW, the TeX Gyre package,<br>
also from GUST, provides the standard 35 PostScript fonts in texnansi-*,<br>
if you want those. There are more.<br>
<br>
Documentation, etc., for lm: <a href="https://ctan.org/pkg/lm" rel="noreferrer" target="_blank">https://ctan.org/pkg/lm</a><br>
For TeX Gyre: <a href="https://ctan.org/pkg/tex-gyre" rel="noreferrer" target="_blank">https://ctan.org/pkg/tex-gyre</a><br>
<br>
texnansi-lmb10<br>
texnansi-lmbo10<br>
texnansi-lmbx10<br>
texnansi-lmbx12<br>
texnansi-lmbx5<br>
texnansi-lmbx6<br>
texnansi-lmbx7<br>
texnansi-lmbx8<br>
texnansi-lmbx9<br>
texnansi-lmbxi10<br>
texnansi-lmbxo10<br>
texnansi-lmcsc10<br>
texnansi-lmcsco10<br>
texnansi-lmdunh10<br>
texnansi-lmduno10<br>
texnansi-lmr10<br>
texnansi-lmr12<br>
texnansi-lmr17<br>
texnansi-lmr5<br>
texnansi-lmr6<br>
texnansi-lmr7<br>
texnansi-lmr8<br>
texnansi-lmr9<br>
texnansi-lmri10<br>
texnansi-lmri12<br>
texnansi-lmri7<br>
texnansi-lmri8<br>
texnansi-lmri9<br>
texnansi-lmro10<br>
texnansi-lmro12<br>
texnansi-lmro17<br>
texnansi-lmro8<br>
texnansi-lmro9<br>
texnansi-lmss10<br>
texnansi-lmss12<br>
texnansi-lmss17<br>
texnansi-lmss8<br>
texnansi-lmss9<br>
texnansi-lmssbo10<br>
texnansi-lmssbx10<br>
texnansi-lmssdc10<br>
texnansi-lmssdo10<br>
texnansi-lmsso10<br>
texnansi-lmsso12<br>
texnansi-lmsso17<br>
texnansi-lmsso8<br>
texnansi-lmsso9<br>
texnansi-lmssq8<br>
texnansi-lmssqbo8<br>
texnansi-lmssqbx8<br>
texnansi-lmssqo8<br>
texnansi-lmtcsc10<br>
texnansi-lmtcso10<br>
texnansi-lmtk10<br>
texnansi-lmtko10<br>
texnansi-lmtl10<br>
texnansi-lmtlc10<br>
texnansi-lmtlco10<br>
texnansi-lmtlo10<br>
texnansi-lmtt10<br>
texnansi-lmtt12<br>
texnansi-lmtt8<br>
texnansi-lmtt9<br>
texnansi-lmtti10<br>
texnansi-lmtto10<br>
texnansi-lmu10<br>
texnansi-lmvtk10<br>
texnansi-lmvtko10<br>
texnansi-lmvtl10<br>
texnansi-lmvtlo10<br>
texnansi-lmvtt10<br>
texnansi-lmvtto10<br>
</blockquote></div>