[Top][All Lists]

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

[help-texinfo] Determine if an argument was supplied to a macro

From: Pantxo Diribarne
Subject: [help-texinfo] Determine if an argument was supplied to a macro
Date: Tue, 24 Sep 2019 15:24:24 +0200


I'd like to define my own wrappers around @*ref macros so that they display differently for plaintext outputs (don't want to see "Note..." in a static text string).
My problem is to determine if a specific argument, among the 5 possible ones, has been supplied or not.

If I assume the first arg is always supplied and only want to display this one, this would be

@macro  myxref{arg1, arg2, arg3, arg4, arg5} 
@end ifplaintext
xref{\arg1\, \arg2\, \arg3\, \arg4\, \arg5\}
@end ifnotplaintext
@end macro

Now how would I go if I want to display the third argument in case it's supplied and the first in case arg3 is empty?



reply via email to

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