On Tue, Nov 12, 2024 at 07:52 (+0100), Mikael Sundqvist wrote:
Hi,
On Tue, Nov 12, 2024 at 12:20 AM Jim
wrote:
On Mon, Nov 11, 2024 at 23:36 (+0100), Wolfgang Schuster wrote:
Jim schrieb am 11.11.2024 um 22:49:
On Mon, Nov 11, 2024 at 21:30 (+0100), Wolfgang Schuster wrote:
Jim schrieb am 11.11.2024 um 19:34:
Hi,
I would expect (*cough*)
\starttext 2\inch \stoptext
to output something like
2"
with some appropriate typographic symbols following the 2. Instead, I get a 2 with a large prime symbol down lower than a prime symbol should be, and then a second prime symbol at about the correct size and at about the right distance up from the baseline.
\setupbodyfont[pagella]
\starttext
\unit{2 arcminute} \unit{2 arcsecond}
\blank
2\utfchar{0x2032} 2\utfchar{0x2033}
\blank
2′ 2″
\stoptext
Wolfgang,
thanks very much for that example.
However, while it does show me how to get the glyph I am looking for, I am left wondering whether there is any way to do it without switching my font from the default. (And whether \inch is broken, or whether there is an implicit assumption about font characteristics when using that macro.)
I hate to go to the well too often, but would you care to comment specifically about \inch and the default font?
(If there is some document whose contents would enlighten me about this, I'd be happy to get a pointer to it.)
This is a problem for the math team.
The default font "Latin Modern" fakes the symbol with primes but the output with LMTX is wrong here (old MkIV has the correct symbol) as can be seen below.
\starttext
% Latin Modern uses \def\inch{\mathematics{\prime\prime}}
2\m{\prime\prime}
% 2\m{^\doubleprime}
\stoptext
Thanks for confirming that there is a problem.
Is it safe to assume that this thread will get the attention of the math team, so that they will put the issue on their To-Do list? If not, I will cheerfully file a bug report (at least if/when I find out where such a report should be sent).
Jim
I will talk to Hans about it. The funny thing is that \m {f\prime\prime} works as expected. So, it is puting primes "on nothing" that needs to be considered. It seems to work in (many) other fonts, so, we'll have to look at modern and what is special there.
Thanks Mikael, I appreciate it. At the moment I have a work around which creates a 0-width box with the height of a digit, and then (in math mode) \prime\prime-ing that box. Jim