help-texinfo
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [help-texinfo] Inserting the degree symbol


From: Eli Zaretskii
Subject: Re: [help-texinfo] Inserting the degree symbol
Date: Fri, 25 Aug 2006 12:20:45 -0400

> Cc: address@hidden, address@hidden
> From: Kaloian Doganov <address@hidden>
> Date: Fri, 25 Aug 2006 17:40:56 +0300
> X-Spam-Status: No, score=1.4 required=5.0 tests=FORGED_RCVD_HELO,
>       RCVD_ILLEGAL_IP autolearn=no version=3.0.4
> 
> 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:
> 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]