Using a macro makes pdfetex quits and exits with bad status

Christopher Dimech <[email protected]>
Newsgroups gmane.comp.tex.texinfo.general
Message-ID <trinity-2c9b25d0-cbd4-41b6-8761-a4c0b07a3052-1624387276446@3c-app-mailcom-bs13>
That would make the use of macros very limited.  I have many working macros except for the
multi-line situation.  I am pushing the functionality requirements quite a bit, but I feel
it is for the better, using realistic scenarios.

I wonder what Gavin think about this.


> Sent: Wednesday, June 23, 2021 at 6:23 AM
> From: "Eli Zaretskii" <[email protected]>
> To: "Christopher Dimech" <[email protected]>
> Cc: [email protected], [email protected]
> Subject: Re: Using a macro makes pdfetex quits and exits with bad status
>
> > From: Christopher Dimech <[email protected]>
> > Date: Tue, 22 Jun 2021 19:52:52 +0200
> > Cc: help-texinfo gnu <[email protected]>
> >
> > @macro usubsec {label, titl}
> >
> > @set lb \label\
> > @set tl \titl\
> > @ifclear usubsec-no-label
> >    @unnumberedsubsec @value{lb} @ @value{tl}
> > @end ifclear
> >
> > @ifset usubsec-no-label
> >   @unnumberedsubsec @value{tl}
> > @end ifset
> >
> > @end macro
>
> IME, it's better to have 2 different variants of this macr instead of
> having @ifclear/@ifset inside the macro.  IOW, move the
> @ifset/@ifclear outside of the macro, and have each condition define
> the @macro differently, but without any conditionals inside it.
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.