Prev Next dollar

Displaying the $ Character

Syntax
See Also
Description
Example
Reference

Syntax
$dollar character$$

See Also
cmark , rmark , newlinech

Description
All subsequent occurrences of the first character in character are converted to the dollar sign character; i.e., $. There can be no $ characters in character . In addition, leading trailing white space in character is ignored.

Example
The text that you see in the frame above this one was generated by the following commands:
 
     $begin dollar$$
     $escape #$$
     $spell
          mindex
          cend
          mref
          cmark
          rmark
     $$
     $dollar @$$

     $index @$$
     $mindex display dollar #sign character$$

     $section Displaying the @ Character$$

     $table
     $bold Syntax$$
     $cend $codei/@dollar /character/@@/$$ $rend
     $cend $mref/cmark/rmark/newlinech/$$
     $tend

Reference
Characters in the index and other commands are also converted. For example,
 
     $index @$$
in the example above, is an index command corresponding to the $ character.

The dollar command has effect till the next such command is executed or the end of the current section (which ever comes first). The command
 
     $dollar $$
removes the effect of the current dollar command without providing a new character that is converted to the dollar sign.
Input File: omh/dollar.omh