<div dir="ltr"><div>Will,</div><div dir="ltr"><br></div><div dir="ltr">I ran the file on a machine I am using for testing.  It has a clean install of Ubuntu 20, with the apt-installed TeX LIve.  The command "xelatex try" worked and generated these files.<div><br></div><div>    <a href="http://joshua.smcvt.edu/wr/try.pdf">http://joshua.smcvt.edu/wr/try.pdf</a></div><div>    <a href="http://joshua.smcvt.edu/wr/try.log">http://joshua.smcvt.edu/wr/try.log</a></div><div>    <a href="http://joshua.smcvt.edu/wr/try.aux">http://joshua.smcvt.edu/wr/try.aux</a></div><div><br></div><div>Thanks,</div><div>Jim </div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Sep 20, 2021 at 8:28 PM Will Robertson <<a href="mailto:will@wspr.io">will@wspr.io</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">Hi Boris,<br>
<br>
I don’t have an up-to-date installation to test with on this machine and I can see there may be some interactions between newer LaTeX2e code and fontspec that I need to take into account. I can also see I need to add an interface to change the default encoding for different font families. With that being said, does the example document below appear to work for you?<br>
<br>
It’s a bit fragile in terms of loading order and needing that initial \rmfamily. Once we have an example that I can work towards I can try to improve the fontspec behaviour...<br>
<br>
Many thanks,<br>
Will<br>
<br>
<br>
\documentclass{article}<br>
<br>
\usepackage{concmath}<br>
\usepackage{fontspec}<br>
<br>
\renewcommand\rmdefault{ccr}<br>
\ExplSyntaxOn<br>
\tl_set:Nn \l__fontspec_rmfamily_encoding_tl {OT1}<br>
\tl_set:Nn \l__fontspec_sffamily_encoding_tl {TU}<br>
\ExplSyntaxOff<br>
\setsansfont{texgyreheros-regular.otf}<br>
<br>
\begin{document}<br>
\rmfamily hello world<br>
<br>
\sffamily sans font<br>
<br>
\rmfamily main font<br>
\end{document}<br>
<br>
<br>
> On 21 Sep 2021, at 1:58 am, Boris Veytsman <<a href="mailto:borisv@lk.net" target="_blank">borisv@lk.net</a>> wrote:<br>
> <br>
> WR> From: Will Robertson <<a href="mailto:will@wspr.io" target="_blank">will@wspr.io</a>><br>
> WR> Date: Sun, 19 Sep 2021 11:36:18 +0930<br>
> <br>
> <br>
> WR> Nothing has changed recently (I am quite sad that I haven’t been<br>
> WR> able to do new releases on my latex packages for some years<br>
> WR> now). You just need to load fontenc first with the necessary<br>
> WR> encodings and be careful about explicitly setting the encoding you<br>
> WR> want for each font you select. Note that fontspec patches commands<br>
> WR> like \rmfamily to include the encoding selection and it’s possible<br>
> WR> that I have neglected to add a command to change/customise this…<br>
> <br>
> I might be a change in the fontenc package:  looks like now loading it<br>
> before fontspec does not change the behaviour.<br>
> <br>
> <br>
> -- <br>
> Good luck<br>
> <br>
> -Boris<br>
> <br>
> Not that I have anything much against redundancy.  But I said that already.<br>
>               -- Larry Wall in <<a href="mailto:199702271735.JAA04048@wall.org" target="_blank">199702271735.JAA04048@wall.org</a>><br>
<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr">"Does not the Captain seek your advice sir?"<div>"Not always," said Stephen.</div></div></div></div>