From 802da9dd5d4bc18f46a916eedc0c5c1980a15e59 Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Sun, 17 Mar 2013 20:07:05 +0000 Subject: Imported from /home/lorry/working-area/delta_docbook-xsl/docbook-xsl-1.78.1.tar.bz2. --- webhelp/docs/ch02s05.html | 149 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 149 insertions(+) create mode 100644 webhelp/docs/ch02s05.html (limited to 'webhelp/docs/ch02s05.html') diff --git a/webhelp/docs/ch02s05.html b/webhelp/docs/ch02s05.html new file mode 100644 index 0000000..07cd0e2 --- /dev/null +++ b/webhelp/docs/ch02s05.html @@ -0,0 +1,149 @@ + + + + +Adding images - - README: Web-based Help from DocBook XML

Adding images

+

This section shows how to add images to WebHelp. For that, follow the simple procedure given.

  • Put the images in a subdirectory of your source file directory. For example + docsrc/images.

  • Then refer to those images from your docbook document.

    Following image is from webhelp/docsrs/images/sample.jpg. The docbook code is shown + below.

    +

    Figure 1. Sample Image

    Sample Image



    +

    Example 1. Example code for adding images. Note down the relative path used

    <figure>
    +  <title>Sample</title>
    +  <mediaobject>
    +    <imageobject>
    +      <imagedata fileref="images/sample.jpg" format="JPG"/>
    +    </imageobject>
    +  </mediaobject>
    +</figure>


  • The build.properties file controls what directories are copied + over from the source tree to the output + tree:

    # If your document has image directories that need to be copied
    +# to the output directory, you can list patterns here. 
    +# See the Ant documentation for fileset for documentation
    +# on patterns.
    +input-images-dirs=images/**,figures/**,graphics/**
-- cgit v1.2.1