Go to the first, previous, next, last section, table of contents.


@set and @value

You can use the @set command to specify a value for a flag, which is expanded by the @value command. A flag is an identifier; for best results, use only letters and numerals in a flag name, not `-' or `_'---they will work in some contexts, but not all, due to limitations in TeX. The value is just a string of characters, the remainder of the input line.

Write the @set command like this:

@set foo This is a string.

This sets the value of the flag foo to "This is a string.".

The Texinfo formatters then 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 @clear flag, 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.


Go to the first, previous, next, last section, table of contents.