ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* m-units and \Angstrom again
@ 2002-03-28 12:39 Eckhart Guthöhrlein
  2002-03-28 17:08 ` Hans Hagen
  0 siblings, 1 reply; 3+ messages in thread
From: Eckhart Guthöhrlein @ 2002-03-28 12:39 UTC (permalink / raw)


Some old nuisance still present in the latest beta: the use of \Angstrom.

\usemodule[units]
\starttext
	Genau 1 \Angstrom
\stoptext

causes this error message:

! Please use \mathaccent for accents in math mode.
\@default@textring ->\char
                            23
\dobuildtextaccent ...{\let \char \normalaccent #1
                                                   \let \char 
\normalchar #2}
\dimension ... \setbox 0=\hbox {\ustartmathmode #1
                                                   \ustopmathmode 
}\global \l...

\doattributes ...A \csname #1#2\endcsname \fi {#4}
                                                   \dostopattributes
\processsynonym ...!tekstletter \c!tekstkleur {#2}
                                                   \fi \endgroup
l.3    Genau 1 \Angstrom
                         .
? x

Strangely, I noticed that \Angstrom is defined without loading the unit 
module. And in this case, it behaves as expected...

Eckhart


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: m-units and \Angstrom again
  2002-03-28 12:39 m-units and \Angstrom again Eckhart Guthöhrlein
@ 2002-03-28 17:08 ` Hans Hagen
  2002-03-28 17:34   ` Eckhart Guthöhrlein
  0 siblings, 1 reply; 3+ messages in thread
From: Hans Hagen @ 2002-03-28 17:08 UTC (permalink / raw)
  Cc: ntg-context

At 01:39 PM 3/28/2002 +0100, Eckhart Guthöhrlein wrote:

>\usemodule[units]
>\starttext
>         Genau 1 \Angstrom
>\stoptext

For the moment, patch m-units with an \hbox:

...  [Angstrom] {\hbox{\Aring}} {\Aring ngstr\"om}
-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
                                   fall-back web server: 
www.pragma-ade.nl
-------------------------------------------------------------------------


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: m-units and \Angstrom again
  2002-03-28 17:08 ` Hans Hagen
@ 2002-03-28 17:34   ` Eckhart Guthöhrlein
  0 siblings, 0 replies; 3+ messages in thread
From: Eckhart Guthöhrlein @ 2002-03-28 17:34 UTC (permalink / raw)
  Cc: ntg-context

Hans Hagen wrote:
 > For the moment, patch m-units with an \hbox:
 >
 > ...  [Angstrom] {\hbox{\Aring}} {\Aring ngstr\"om}

Works for the moment. But let me remind you that using an \hbox is not a
good permanent solution: it will not adapt its size when used in 
fractions etc.
And to insist: why is \Angstrom defined without the unit module, and in 
a different way than by the module?

Eckhart


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-03-28 17:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-03-28 12:39 m-units and \Angstrom again Eckhart Guthöhrlein
2002-03-28 17:08 ` Hans Hagen
2002-03-28 17:34   ` Eckhart Guthöhrlein

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).