bug-texinfo
[Top][All Lists]
Advanced

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

Re: @math alternative


From: Eli Zaretskii
Subject: Re: @math alternative
Date: Sun, 28 Apr 2002 23:58:04 +0300

> Date: Sun, 28 Apr 2002 20:39:45 +0200 (CEST)
> From: Werner LEMBERG <address@hidden>
> 
> > > Using the --iftex option fails, of course:
> > 
> > Of course.  Did you try to use @tex instead of @iftex?
> 
> This doesn't help.

It doesn't?  What Texinfo source did you try, and what did makeinfo
moan about?  Your example, slightly modified below, works for me.

> Hmm, I now believe what I really need is this:
> 
>   @atom{foo}
> 
> After this command, makeinfo accepts @foo{...} as if it were a
> built-in command but ignoring it completely.

If by ``ignoring'' you mean that it should leave it alone in
macro-expanded source, then try this:

  @alias angles = r

or something similarly no-op'ish, like

  @alias angles = w

Here's an example that works for me with "makeinfo --iftex":

  \input texinfo

  @setfilename yyy

  @ifnottex
  @macro angles{text}
  <\text\>
  @end macro
  @end ifnottex

  @tex
  @macro angles{text}
  \\angleleft \text\ \\angleright
  @end macro
  @end tex

  This is a @angles{test}.

  @table @asis
  @item This is a @angles{test}.
  @end table

  @bye



reply via email to

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