Info Node: (texinfo)Inline Conditionals

CFHT HOME texinfo: Inline Conditionals


up: Conditionals next: @set @clear @value prev: Raw Formatter Commands Back to Software Index

18.4 Inline Conditionals: '@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 (Note: 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{}' (Note:
Inserting an Atsign), and '@lbracechar{}' or '@rbracechar{}' (Note:
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.)


automatically generated by info2www version 1.2