Next: @set @clear @value, Previous: Raw Formatter Commands, Up: Conditionals [Contents][Index]
@inline
, @inlineraw
Texinfo provides two conditional commands with arguments given within braces:
@inlinefmt{format, text}
Process the Texinfo text if format output is being generated.
@inlineraw{format, text}
Similar, but for raw text (see Raw Formatter Commands).
For example,
@inlinefmt{html, @emph{HTML-only text}}
is nearly equivalent to
@ifhtml @emph{HTML-only text} @end ifhtml
except that no whitespace is added, as happens in the latter (environment) case.
In these commands, whitespace is ignored after the comma separating the two arguments, as usual, but is not ignored at the end of text.
In the case of @inlineraw
, to insert a literal at sign, left
brace, or right brace, you must use the alphabetic commands
@atchar{}
(see Inserting an Atsign), and
@lbracechar{}
or @rbracechar{}
(see Inserting Braces), or the parsing will become confused. (By the way, it is not
necessary to use @comma{}
, since these commands always have
exactly two arguments, so a ‘,’ cannot be mistaken for an
argument separator.)