On Thu, Oct 22, 2026 at 15:55 (+0200), Hans Hagen wrote:
> On 10/22/2026 2:42 PM, Jim Diamond wrote:
>> ?! Sorry, are you saying that the example I sent works on your system?
>> If so, do you have the New CM fonts in one of the directories that your
>> setup has already cached?
> i only tested the simple example i sent not something with fresh bodyfont
> switches in a box etc
> i put the fonts in
> tex/texmf-fonts/fonts/data/testonly/cmnew
> among the other thousands of fonts i am supposed to check and then ran
> "mtxrun --generate"
So many fonts...
>>> just make sure the order is right, don't mess with content before
>>> \starttext unless you're sure a font is loaded (context does not preload
>>> (!), only loads lm w@ starttext when no font is loaded yet
>> OK. I didn't *think* I was messing with content before \starttext, but
>> without understanding the full effects of \usefontpath and \usebodyfont I
>> can't be certain of that.
> anyway, don't assume any font to be present before \starttext unless some
> bodyfont has been setup .. otherwise you get some fallback monospace or just
> nothing
> try this:
> Hi Jim \starttext test \stoptext
> and closely watch the console, log and pdf
The problem with looking closely is more questions form in my mind:
mkxl run stats > loaded fonts: 3 files: latinmodernmathcompanion-regular.otf,
latinmodern-math.otf, lmroman10-regular.otf
Specifically, I ask myself "Why did it load the math fonts?".
>> Background: someone wanted ANSS-CE to have small caps working in SS text
>> (when the document font is LM). Since LM does not have a small caps
>> variant ("style"?) for SS, someone else suggested using New CM for SS,
>> since New CM SS *does* have small caps.
> oh, just use pseudocaps then ... no one will notice at that size
Yes, but...
Our friend Pablo prefers Pagella, and so I added a mode switch to ANSS-CE
(English version) so that all the Pablos of the world could see ANSS-CE in
Pagellic majesty. And, to avoid ruining their aesthetic pleasure (this is
all about nice looking documents, right?), I didn't want to corrupt the
Pagellite's small caps. It was suggested (I'm not mentioning any names
here) to use NCM to solve this problem. As they say, "it seemed like a
good idea at the time".
>> Now, for my own system, it would be expeditious to just install New CM in
>> one of the usual places and run those commands, as you suggest. However,
>> it would be nice it someone downloading the source for ANSS-CE was able to
>> just untar/unzip/clone it, and then enter the directory of interest and type
>> context introCTX_eng.tex
> Could work but there's always a danger of a clash with fonts in another
> place then.
That's true, although since (experiments show) that if someone has NCM in
their cached fonts, their context will pick those up. And if they have a
font claiming to be NCM which is different enough to cause problems, I
think that is a problem for another time.
>> or even
>> make
> whatever that does
Max wrote a Makefile for ANSS-CE so that incanting
make
will create (or update as neccesary) all of the different languages and (if
desired) all of the different versions (screen, paper) of the documents.
>> We could add directions telling the person who wants to process ANSS-CE
>> him/herself to install New CM somewhere and then run those commands, but it
>> would be a lot nicer if things Just Worked™ without asking some (probable)
>> newish ConTeXt user to know where the files should be put before running
>> those commands.
> \cap{xxx}
What I could have used was a macro that said
if using some font for which there is no \sc variant,
use \cap
else
use \sc
But then I would need to either set some flags (or equivalent) earlier, or
learn how to interrogate the SS style of the global font and ask it how it
feels about the small caps issue.
>>>> Today I tried my test with TL2026 (2026.09.10) and things are OK there.
>>>> While I suspect it is working with that version of ConTeXt because TL2026
>>>> ships with the New CM fonts installed, I can't be 100% sure of that.
>>> then \setupbodyfont should do the job when the "type-imp-foo" file is there
>>> with a font setup for "foo" , otherwise \usetypescriptfile + whatever you
>>> name it (there are several cm clones now and i suppose with ai present more
>>> will show up)
>> When *I* use \setupbodyfont[newcomputermodern] (with or without
>> \usetypescriptfile[newcomputermodern] and \usebodyfont[newcomputermodern])
>> the Schola table remains messed up.
> \usebodyfont[schola]
> \usebodyfont[newcomputermodern]
> \usebodyfont[pennstander]
> \setupbodyfont[dejavu]
> \starttext
> {\switchtobodyfont[schola]Back to school!}
> {\switchtobodyfont[newcomputermodern]Back to old school!}
> {\switchtobodyfont[pennstander]Looks nice!}
> {Now I get a \unknown}
> \stoptext
This gets back to knowing all of the fonts that are going to be used in the
document and listing them in the environment file. Doable, but possibly
error-prone.
>> In particular, the suggested structure from your previous message did not
>> work (for me).
>>> the more creative you are with placing fonts in various paths, the more
>>> likely it can clash (you can always enable trackers to see where / what /
>>> why / how)
>> Please trust me, I am not trying to be creative here! Like R.J. Drofnats,
>> I just want to typeset a beautiful document.
> well, that guy is accustoed to be baffled
Increasingly, so am I. Perhaps there is some support group he and I can
join.
Jim
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : [email protected] /
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________