On Sun, Jan 12, 2020 at 08:25:41PM +0900, Jean-Christophe Helary wrote:
> > If you were to implement a new Texinfo command it would be in
> > texinfo.tex as well as in texi2any. I'd suggest doing something with
> > Texinfo conditionals and macros to define a macro differently for
> > different output formats, e.g.
> >
> > @iftex
> > @macro plainref{ref}
> > \ref\
> > @end macro
> > @end iftex
> >
> > and so on.
>
> Thank you. I guess that will give me a good reason to start the "TeX book" :)
Actually, what I meant was to use Texinfo macros instead of doing
anything with TeX itself. @macro and @iftex and so on are documented in
the Texinfo manual.