[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [help-texinfo] Inserting the degree symbol
From: |
Kaloian Doganov |
Subject: |
Re: [help-texinfo] Inserting the degree symbol |
Date: |
Fri, 25 Aug 2006 17:40:56 +0300 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
Eli Zaretskii <address@hidden> writes:
Did you actually try doing this? Do you have a simple example
that fails? If so, please show it.
Here is the macro:
@macro gradesymbol {}
@iftex
@math{\\circ}
@end iftex
@ifnottex
°
@end ifnottex
@end macro
Which I'm trying to use like this:
It's optimum if you can keep the inside temperature of the chamber
at around 21 @gradesymbol{}C (70 @gradesymbol{}F)
But the result is rendered with an extra space between the grade
symbol end the following letter C (or F) both in TeX (DVI) and Info
formats:
It's optimum if you can keep the inside temperature of the chamber
at around 21 ° C (70 ° F)
This unwanted space does not appear when I write the macro without the
conditionals (which makes the degree symbol visible only in the TeX
format, of course):
@macro gradesymbol {}
@math{\\circ}
@end macro
The full example document follows:
\input texinfo @c -*-texinfo-*-
@c %**start of header
@setfilename degree-example.info
@settitle Example of Degree Symbol in GNU Texinfo
@documentencoding ISO-8859-1
@c %**end of header
@c macro for grade symbol
@macro gradesymbol {}
@iftex
@math{\\circ}
@end iftex
@ifnottex
°
@end ifnottex
@end macro
@titlepage
@title Example of Degree Symbol in GNU Texinfo
@author Kaloian Doganov
@page
@vskip 0pt plus 1filll
@end titlepage
@contents
@ifnottex
@node Top
@top Example of Degree Symbol in GNU Texinfo
@end ifnottex
@menu
* First Chapter::
@end menu
@node First Chapter
@chapter First Chapter
It's optimum if you can keep the inside temperature of the chamber at
around 21 @gradesymbol{}C (70 @gradesymbol{}F)
@bye
Local Variables:
compile-command: "texi2dvi degree-example.texi"
End:
Re: [help-texinfo] Inserting the degree symbol, Karl Berry, 2006/08/26