On 11/13/2024 11:03 AM, Marco Patzer wrote:
On Mon, 11 Nov 2024 21:30:15 +0100 Wolfgang Schuster
wrote: \unit{2 arcsecond}
Arcseconds might print the correct glyph, but would be semantically wrong. I believe the correct approach would be:
\unit{2 inch}
The question then remains how to configure \unit{2 inch} to produce (depending on the requirements):
2 in or 2"
After 25 hours of discussion and 18 attempts the math team (whoever that is) has decided that this is good enough: \permanent\protected\def\fakeminute {\dontleavehmode \begingroup \doifelseitalic {\scratchwidth\fontcharwd\font\singlequoteasciicode \hpack \s!to 1.2\scratchwidth \bgroup \glyphslant\plustwohundred \glyph \s!xoffset -0.6\scratchwidth\singlequoteasciicode \egroup}% {\scratchwidth\fontcharwd\font\singlequoteasciicode \hpack \s!to 1.1\scratchwidth \bgroup \glyphslant\plusfivehundred \glyph \s!xoffset -\scratchwidth\singlequoteasciicode \egroup}% \endgroup} \permanent\protected\def\fakesecond {\dontleavehmode \begingroup \doifelseitalic {\scratchwidth\fontcharwd\font\singlequoteasciicode \hpack \s!to 1.7\scratchwidth \bgroup \glyphslant\plustwohundred \glyph \s!xoffset -0.6\scratchwidth\singlequoteasciicode \glyph \s!xoffset -1.1\scratchwidth\singlequoteasciicode \egroup}% {\scratchwidth\fontcharwd\font\singlequoteasciicode \hpack \s!to 1.6\scratchwidth \bgroup \glyphslant\plusfivehundred \glyph \s!xoffset -\scratchwidth\singlequoteasciicode \glyph \s!xoffset -1.5\scratchwidth\singlequoteasciicode \egroup}% \endgroup} \permanent\protected\def\minute{\iffontchar\font\textminute\textminute\else\fakeminute\fi} \permanent\protected\def\second{\iffontchar\font\textsecond\textsecond\else\fakesecond\fi} \aliased\let\inch\second ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------