Prev Next

An Example Using Images

image, icon
image_example.omh
w3c_home.gif
Execute Example
Example In This Web Site

image, icon
The image and icon commands are used to display images.

image_example.omh
Use the editor of your choice to create the file image_example.omh in the xam directory with the following contents:
 
     $begin image_example$$
     
     $section An Image Example$$
     
     $image omh/getstarted/w3c_home.gif$$
     
     $head Discussion$$
     As you can see above, the $code image$$ command
     displays an image centered and by itself.
     As you can see in this sentence,
     the $code icon$$ command
     $icon omh/getstarted/w3c_home.gif$$
     displays an image in line with the nearby text.
     
     $end
You can also just copy image_example.omh from the omh/getstarted directory .

w3c_home.gif
Copy omh/getstarted/w3c_home.gif from the omh/getstarted Directory to the xam directory . In the copy of image_example.omh, change omh/getstarted/w3c_home.gif to w3c_home.gif.

Execute Example
Once you have copied the files mentioned above, you can execute omhelp with example_name equal to image_example.

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