Adding raw XML Designing it yourselfMaking menusRulers and imagesContentsIndex

Rulers and images

The command \htmlrule creates a horizontal rule spanning the full screen width at the current position in the HTML-document.

The command \htmlimg{URL}{Alt} makes an inline bitmap with the given URL. If the image cannot be rendered, the alternative text Alt is used. Both URL and Alt arguments are evaluated arguments, so that you can define macros for common URL's (such as your home page). That means that if you need to use a special character (~ is quite common), you have to escape it (as \~{} for the ~).

This is what I use for figures in the Ipe Manual that appear in both the printed document and the HTML-document:

   \begin{figure}
     \caption{The Ipe window}
     \begin{center}
       \texorhtml{\Ipe{window.ipe}}{\htmlimg{window.png}}
     \end{center}
   \end{figure}

(\Ipe is the command to include "Ipe" figures.)


July 13, 2005

Adding raw XML Designing it yourselfMaking menusRulers and imagesContentsIndex