Prev Next

Headings and Subheadings Example

head, subhead
head_example.omh
Example In This Web Site

head, subhead
The head and subhead commands start new paragraphs with a specified title. Each section has an tree structure in which the section title corresponds to the root, the headings titles correspond to the next level, and the subheadings titles correspond to the last level of the tree.

head_example.omh
Use the editor of your choice to create the file head_example.omh in the xam directory with the following contents:
 
     $begin head_example$$
     $section Example Headings$$
     
     $head First Heading$$
     The text "First Heading" is the heading above this paragraph.
     
     $subhead Subheading Of First Heading$$
     The text "Subheading Of First Heading" is the subheading
     above this paragraph.
     
     $head Second Heading$$
     The text "Second Heading" is the heading above this paragraph.
     
     $end
You can also just copy head_example.omh from the omh/getstarted directory . Once you have done this, you can execute omhelp with example_name equal to head_example.

Example In This Web Site
You can view the result of making head_example.omh part of the OMhelp help web site by selecting head_example .
Input File: omh/getstarted/start_head.omh