Prev Next Index-> contents reference index search external Up-> overview get_started start_pre overview-> License why Install get_started running files titles+headings cross format spellchecking latex other browser glossary wish_list whatsNew get_started-> start_simple start_head start_image start_pre start_font start_spell start_latex start_verbatim start_src start_embed start_multiple start_cref start_index start_pre-> pre_example Headings-> pre Execute The Following Steps ---..pre_example.omh ---..Example In This Web Site Context ---..Execute OMhelp ---..Example by Itself

Preformatted Text Example

pre
The pre command can be used to specify pre-formatted text. This uses a uniformly spaced font and columns in the input correspond directly to columns in the output.

Execute The Following Steps

pre_example.omh
Use an editor of your choice to create the file  pre_example.omh in the test directory with the following contents:       $begin pre_example$$section Example Pre-Formatted Text$$$head A Paragraph Without Heading or Subheading$$This paragraph has the heading "A Paragraph Without Heading or Subheading" directly above it. pre$$ This paragraph does not have a heading or subheading directly above it. $head Indenting Text$$pre$$ The first line of the text of this paragraph is indented using the pre command and a tab character. The other lines of text are not indented.$head A Pre-Formatted Paragraph$$pre minimize f(x) with respect to x subject to g(x) <= 0$$ \$end  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 pre_example.omh part of the OMhelp help web site by selecting pre_example .

Execute OMhelp
In a command window and in the htm directory execute the following command  omhelp ../pre_example.omh -noframe 
Example by Itself
Use a web browser of your choosing to view the file test/htm/pre_example.htm .
Input File: getstarted/start_pre.omh