help-texinfo
[Top][All Lists]
Advanced

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

Re: Using a macro makes pdfetex quits and exits with bad status


From: Eli Zaretskii
Subject: Re: Using a macro makes pdfetex quits and exits with bad status
Date: Tue, 22 Jun 2021 21:23:07 +0300

> From: Christopher Dimech <dimech@gmx.com>
> Date: Tue, 22 Jun 2021 19:52:52 +0200
> Cc: help-texinfo gnu <help-texinfo@gnu.org>
> 
> @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.



reply via email to

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