Article View: comp.text.tex
Article #12235Re: Programming Texinfo?
From: Michael I Bushnell
Date: Tue, 21 Apr 1992 16:04
Date: Tue, 21 Apr 1992 16:04
32 lines
2289 bytes
2289 bytes
In article <kv4mifINNiiv@alhena.usc.edu> ajayshah@alhena.usc.edu (Ajay Shah) writes: I just finished uploading the Texinfo manual and it seems to be pretty far from TeX in look and feel. I was surprised to see no mention in the manual of how new Texinfo commands may be written in terms of existing ones. Is one supposed to say @iftex \def??? But that would screw up things when you try to use the macro in the main text, and the info file would not reflect that definition. The manual doesn't explain it because, in general, you shouldn't do it. Makeinfo isn't a tex processor, so creating new escape sequences is "asking for it". In any case, you can do it the normal way, keeping in mind that the escape character has been changed from \ to @. So, you start with @iftex @def@foo Make sure that any usages of the macro are also put inside @iftex, and make sure that you provide an equivalent construction inside @ifinfo. -mib -- Michael I. Bushnell +--+ +1 617 625 4518 (H) +--+ +1 617 253 8568 (W) Mary Magdalene turned around and saw Jesus standing there, but she did not know that it was Jesus. Jesus said to her, ``Woman, why are you weeping? Whom are you looking for?'' Supposing him to be the gardener, she said to him, ``Sir, if you have carried him away, tell me where you have laid him, and I will take him away.'' Jesus said to her, ``Mary!'' She turned and said to him in Hebrew, ``Rabbouni!'' (which means Teacher).
Technical Details
Message-ID:
<MIB.92Apr21110450@geech.gnu.ai.mit.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!think.com!yale.edu!yale!mintaka.lcs.mit.edu!mintaka.lcs.mit.edu!mibReferences:
<kv4mifINNiiv@alhena.usc.edu>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f9e16,62a3efe9fbe94cbb X-Google-Attributes: gidf9e16,public X-Google-Thread: 1025b4,62a3efe9fbe94cbb X-Google-Attributes: gid1025b4,public X-Google-ArrivalTime: 1992-04-21 09:04:50 PST Newsgroups: comp.text.tex,gnu.misc.discuss Path: arc1-ca.pugleaf.net!sparky!uunet!think.com!yale.edu!yale!mintaka.lcs.mit.edu!mintaka.lcs.mit.edu!mib From: mib@geech.gnu.ai.mit.edu (Michael I Bushnell) Subject: Re: Programming Texinfo? In-Reply-To: ajayshah@alhena.usc.edu's message of 19 Apr 1992 22:44:47 -0700 Message-ID: <MIB.92Apr21110450@geech.gnu.ai.mit.edu> Sender: news@mintaka.lcs.mit.edu Organization: Free Software Foundation, Cambridge, MA References: <kv4mifINNiiv@alhena.usc.edu> Date: Tue, 21 Apr 1992 16:04:50 GMT Lines: 33