@value
You can use the @set
command to specify a value for a flag,
which is expanded by the @value
command. The value is a string
a characters.
Write the @set
command like this:
@set foo This is a string.
This sets the value of foo
to "This is a string."
The Texinfo formatters replace an @value{flag}
command with
the string to which flag is set.
Thus, when foo
is set as shown above, the Texinfo formatters convert
@value{foo} to This is a string.
You can write an @value
command within a paragraph; but you
must write an @set
command on a line of its own.
If you write the @set
command like this:
@set foo
without specifying a string, the value of foo
is an empty string.
If you clear a previously set flag with an @clear flag
command, a subsequent @value{flag}
command is invalid and the
string is replaced with an error message that says `{No value for
"flag"}'.
For example, if you set foo
as follows:
@set how-much very, very, very
then the formatters transform
It is a @value{how-much} wet day. into It is a very, very, very wet day.
If you write
@clear how-much
then the formatters transform
It is a @value{how-much} wet day. into It is a {No value for "how-much"} wet day.