[NTG-context] Degree sign

2012-11-23 Thread Marcin Borkowski
Hi all,

is there a canonical way to obtain a degree sign?  I'd best like it
to work in both text and math mode, and not use UTF-8 but some TeX-y
\command (like \degree or so).

Best

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Adam Mickiewicz University
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Degree sign

2012-11-23 Thread Mojca Miklavec
On Fri, Nov 23, 2012 at 3:17 PM, Marcin Borkowski wrote:
 Hi all,

 is there a canonical way to obtain a degree sign?  I'd best like it
 to work in both text and math mode, and not use UTF-8 but some TeX-y
 \command (like \degree or so).

\textdegree (see char-def.lua for example)

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Degree sign

2012-11-23 Thread Marcin Borkowski
Dnia 2012-11-23, o godz. 15:22:14
Mojca Miklavec mojca.miklavec.li...@gmail.com napisał(a):

 On Fri, Nov 23, 2012 at 3:17 PM, Marcin Borkowski wrote:
  Hi all,
 
  is there a canonical way to obtain a degree sign?  I'd best like
  it to work in both text and math mode, and not use UTF-8 but some
  TeX-y \command (like \degree or so).
 
 \textdegree (see char-def.lua for example)

Thanks!

You might want to put this here:
http://tex.stackexchange.com/questions/22086/macro-for-degree-symbol to
keep up with Aditya's tradition of providing ConTeXt answers to LaTeX
questions;).

 Mojca

Best,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Adam Mickiewicz University
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Degree sign

2012-11-23 Thread Mojca Miklavec
On Fri, Nov 23, 2012 at 3:35 PM, Marcin Borkowski wrote:
 Dnia 2012-11-23, o godz. 15:22:14 Mojca Miklavec napisał(a):
 On Fri, Nov 23, 2012 at 3:17 PM, Marcin Borkowski wrote:
  Hi all,
 
  is there a canonical way to obtain a degree sign?  I'd best like
  it to work in both text and math mode, and not use UTF-8 but some
  TeX-y \command (like \degree or so).

 \textdegree (see char-def.lua for example)

 Thanks!

 You might want to put this here:
 http://tex.stackexchange.com/questions/22086/macro-for-degree-symbol to
 keep up with Aditya's tradition of providing ConTeXt answers to LaTeX
 questions;).

With something like:
If you switch to ConTeXt, \textdegree will work in both text and
math mode.
? ;) ;) ;)

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Degree sign

2012-11-23 Thread Marcin Borkowski
Dnia 2012-11-23, o godz. 15:43:56
Mojca Miklavec mojca.miklavec.li...@gmail.com napisał(a):

 On Fri, Nov 23, 2012 at 3:35 PM, Marcin Borkowski wrote:
  Dnia 2012-11-23, o godz. 15:22:14 Mojca Miklavec napisał(a):
  On Fri, Nov 23, 2012 at 3:17 PM, Marcin Borkowski wrote:
   Hi all,
  
   is there a canonical way to obtain a degree sign?  I'd best
   like it to work in both text and math mode, and not use UTF-8
   but some TeX-y \command (like \degree or so).
 
  \textdegree (see char-def.lua for example)
 
  Thanks!
 
  You might want to put this here:
  http://tex.stackexchange.com/questions/22086/macro-for-degree-symbol
  to keep up with Aditya's tradition of providing ConTeXt answers to
  LaTeX questions;).
 
 With something like:
 If you switch to ConTeXt, \textdegree will work in both text and
 math mode.
 ? ;) ;) ;)

Well... kinda... yes. ;P

You might want to look here for inspiration:

http://tex.stackexchange.com/users/323/aditya?tab=answers

(Clarification: joking aside, I guess that Aditya's habit of giving
ConTeXt answers to LaTeX questions on TeX.SE is really great, since
it allows to spread the word about ConTeXt, and also may help ConTeXt
users.)

 Mojca

Best,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Adam Mickiewicz University
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Degree sign half-works

2004-11-23 Thread Duncan Hothersall
Hi all.
The following, when run through live.contextgarden.net (and my own 
installation), produces odd results:

%Input is utf8 (Unicode)
\enableregime[utf]
\useencoding[uc]
%MathML is processed directly
\useXMLfilter[utf]
\usemodule[mathml]
\starttext
Test normal text: 180°
Test MathML:
\startXMLdata
math display=block id=gincp74b
mrow
mn108/mnmo°/mo
/mrow
/math\stopXMLdata
\stoptext
When the degree sign appears in normal text it works fine, when it 
appears in MathML it comes out as $^$.

I have been searching in the base files but can't see the hook. Can 
anyone point me in the right direction to fix this? Thanks.

Duncan
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context