Hello I am having some big problems with superscripts. When I type: -20$^\circ$C I get the expected 20 degrees Celcius (-20oC) However if I put the same sequence in a macro \def\celcius{$^\circ$C} -20\celsius\ Dewpoint -20\celsius Dewpoint I get as result: -20 oCDewpoint -20DoCewpoint Where o symbolizes the degree symbol. What is going on, and more importantly how to solve it. Best Regards, Frank
At 14:52 17.11.2003, Frank wrote: Hi, the solution is to use the \usemodule[units] command in the beginning of your document. When zou need to typset a unit you can say things like \Degrees Celsius, \Square\Meter or \Milli\Meter Regards Willi
Hello
I am having some big problems with superscripts. When I type:
-20$^\circ$C
I get the expected 20 degrees Celcius (-20oC)
However if I put the same sequence in a macro
\def\celcius{$^\circ$C} -20\celsius\ Dewpoint -20\celsius Dewpoint
I get as result:
-20 oCDewpoint -20DoCewpoint
Where o symbolizes the degree symbol.
What is going on, and more importantly how to solve it.
Best Regards,
Frank
_______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Hi, I actually dropped the use of the units module because it uses a roman font where my text is in Helvetica. There is a trick to make the units module use a sans-serif font, but in that case the \mu greek character comes out as m, which is not what I wanted. Thanks for the feedback though. Regards, Frank On 2003, Nov 17, , at 15:21, Willi Egger wrote:
At 14:52 17.11.2003, Frank wrote:
Hi,
the solution is to use the \usemodule[units] command in the beginning of your document.
When zou need to typset a unit you can say things like \Degrees Celsius, \Square\Meter or \Milli\Meter
Regards Willi
Hello
I am having some big problems with superscripts. When I type:
-20$^\circ$C
I get the expected 20 degrees Celcius (-20oC)
However if I put the same sequence in a macro
\def\celcius{$^\circ$C} -20\celsius\ Dewpoint -20\celsius Dewpoint
I get as result:
-20 oCDewpoint -20DoCewpoint
Where o symbolizes the degree symbol.
What is going on, and more importantly how to solve it.
Best Regards,
Frank
_______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
_______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Hi Frank, Yes that is true, the module switches to roman or math respectiely UNLESS you state the following at the beginning of your document: \textdimensionstrue Hereafter the units are typeset in the current bodyfont. - Sorry, but I do not know, what happens to the "mü" .. Willi At 15:58 17.11.2003, you wrote:
Hi,
I actually dropped the use of the units module because it uses a roman font where my text is in Helvetica. There is a trick to make the units module use a sans-serif font, but in that case the \mu greek character comes out as m, which is not what I wanted.
Thanks for the feedback though.
Regards,
Frank On 2003, Nov 17, , at 15:21, Willi Egger wrote:
At 14:52 17.11.2003, Frank wrote:
Hi,
the solution is to use the \usemodule[units] command in the beginning of your document.
When zou need to typset a unit you can say things like \Degrees Celsius, \Square\Meter or \Milli\Meter
Regards Willi
Hello
I am having some big problems with superscripts. When I type:
-20$^\circ$C
I get the expected 20 degrees Celcius (-20oC)
However if I put the same sequence in a macro
\def\celcius{$^\circ$C} -20\celsius\ Dewpoint -20\celsius Dewpoint
I get as result:
-20 oCDewpoint -20DoCewpoint
Where o symbolizes the degree symbol.
What is going on, and more importantly how to solve it.
Best Regards,
Frank
_______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
_______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
_______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Hello Frank, it took me a while to find the error, because it is really hidden:
However if I put the same sequence in a macro
\def\celcius{$^\circ$C} -20\celsius\ Dewpoint -20\celsius Dewpoint
What is going on,
you defined \celcius but used \celsius (s/c). \celsius is a predefined macro in ConTeXt. Use \celsius{-20} Dewpoint in your case. The macro \celsius is smart about math mode: see the difference in \celsius{-20} Dewpoint \par $\celsius{-20}$ Dewpoint \par \celsius{$-20$} Dewpoint
and more importantly how to solve it.
drop your macro or use it ;-) Patrick -- You are your own rainbow!
Patrick, Thanks a lot, this was one nasty typo. My text looks a lot better using the correct macro. Regards, Frank On 2003, Nov 17, , at 15:33, Patrick Gundlach wrote:
Hello Frank,
it took me a while to find the error, because it is really hidden:
However if I put the same sequence in a macro
\def\celcius{$^\circ$C} -20\celsius\ Dewpoint -20\celsius Dewpoint
What is going on,
you defined \celcius but used \celsius (s/c). \celsius is a predefined macro in ConTeXt. Use \celsius{-20} Dewpoint in your case.
The macro \celsius is smart about math mode: see the difference in
\celsius{-20} Dewpoint \par $\celsius{-20}$ Dewpoint \par \celsius{$-20$} Dewpoint
and more importantly how to solve it.
drop your macro or use it ;-)
Patrick -- You are your own rainbow! _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
participants (3)
-
Frank
-
Patrick Gundlach
-
Willi Egger