bug-texinfo
[Top][All Lists]
Advanced

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

Re: [help-texinfo] Feature Request: New <c>table options for other built


From: Gavin Smith
Subject: Re: [help-texinfo] Feature Request: New <c>table options for other built-in indices
Date: Fri, 22 Jul 2016 23:46:21 +0100

On 16 July 2016 at 15:44, Robert Weiner <address@hidden> wrote:
> It would be nice if one day you could use a macro for the markup type
> used in a table.  So, I have called the key sequence braces macro,
> bkbd, and would like to be able to say @ktable @bkbd.  Would that be
> hard or easy to implement?

Probably hard because there's no guarantee that the macro is
appropriate to use in this context; I'm thinking mainly of the case
when the macro body contains paragraph breaks. Besides, this can
probably be achieved already with a user macro, maybe like

@macro KtableItem {key}
@item @bkbd{\key\}
@end macro

then used like

@ktable @asis
@KtableItem{a}
Description of what happens if you press a.

@KtableItem{b}
Description of what happens if you press b.
@end ktable

I haven't tested this but hopefully you get the idea.

I feel that a user-defined macro as an argument to @table shouldn't be
supported specially. It's the most idiomatic to use standard Texinfo
commands as the argument here.



reply via email to

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