Prev Next

Headings and Subheadings Example

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.

Execute The Following Steps

Use an editor of your choice to create the file head_example.omh in the test directory with the following contents:
     $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.
Note that you can copy and paste the commands above to your editor window. You may just copy the file with the same name from the getting started directory .

Example In This Web Site Context
You can view the result of making head_example.omh part of the OMhelp help web site by selecting head_example .

Execute OMhelp
In a command window and in the htm directory execute the following command
     omhelp ../head_example.omh -noframe

Example by Itself
Use a web browser of your choosing to view the file test/htm/head_example.htm .
Input File: getstarted/start_head.omh