Eckhart Guthöhrlein
2001-09-06 12:24:26 UTC
The use of \AA is problematic, in my case concerning the use of \Angstrom
with m-units. Here come the problems I noticed, and my workaround for those
who are interested.
Since \Angstrom is defined to give \AA, it can't be used in math mode
('Please use \mathaccent in math mode'). Furthermore, there is a problem
with \setupbodyfont[aer]: \AA produces nothing in the output. This is a
more general problem, not restricted to m-units.
Probably, \AA should be redefined. \def\AA{\Aring} is a possibility,
\def\AA{\hbox{\Aring}} works in math mode too. But superscripts get placed
too high, touching the characters of the above line in inline formulas. I'm
currently using
\def\AA{\text{\AA}}
with the definition of \text copied from the latest publically available
m-math.tex, enclosed by \unprotect..\protect to make private command
sequence names accessible.
In principle, I would agree that not using the unit Angstrom would be the
best solution, but since it is not up to me... And a working \AA is of
course needed for some languages.
Eckhart
with m-units. Here come the problems I noticed, and my workaround for those
who are interested.
Since \Angstrom is defined to give \AA, it can't be used in math mode
('Please use \mathaccent in math mode'). Furthermore, there is a problem
with \setupbodyfont[aer]: \AA produces nothing in the output. This is a
more general problem, not restricted to m-units.
Probably, \AA should be redefined. \def\AA{\Aring} is a possibility,
\def\AA{\hbox{\Aring}} works in math mode too. But superscripts get placed
too high, touching the characters of the above line in inline formulas. I'm
currently using
\def\AA{\text{\AA}}
with the definition of \text copied from the latest publically available
m-math.tex, enclosed by \unprotect..\protect to make private command
sequence names accessible.
In principle, I would agree that not using the unit Angstrom would be the
best solution, but since it is not up to me... And a working \AA is of
course needed for some languages.
Eckhart