next up previous contents index
Next: Conditional Text Up: Hypertext Extensions to LaTeX Previous: Hyperlinks in LaTeX

Including Arbitrary HTML Markup

  Raw HTML or HTML+ tags and text may be included using the environment rawhtml. This can be used to take advantage of new HTML+ facilities as soon as they become available.   A particularly good use of this feature is in the creation of interactive electronic forms from within a LaTeX document. When producing the paper (DVI) version of a document the rawhtml environment is ignored.

Here is an example:  

\begin{rawhtml}
<HR>
<FORM ACTION="http://cbl.leeds.ac.uk/nikos/doc/error.html">
<OL>
<LI> <INPUT TYPE="checkbox" NAME="wp" VALUE="word"> Word for
Windows.
<LI> <INPUT TYPE="checkbox" NAME="wp" VALUE="wp"> Word Perfect.
<LI> <INPUT TYPE="checkbox" NAME="wp" VALUE="latex"> LaTeX.
<LI> Plain Text Editors (Please Specify): <INPUT TYPE="text" NAME="other_ed">
</OL>
So, what do think (comments please): <BR>
<INPUT TYPE="text" SIZE=45,4 NAME="other_wp">

<INPUT TYPE="submit" VALUE="submit this form but don't expect much!">
</FORM>
<HR>
\end{rawhtml}

The result is shown below.


  1. Word for Windows.
  2. Word Perfect.
  3. LaTeX.
  4. Plain Text Editors (Please Specify):
So, what do think (comments please):

Warning: Avoid using LaTeX commands involving counters (e.g. numbered figures or equations) in conditional text because this may disrupt the values of the counters in the electronic version.



Bo Milvang-Jensen
Tue May 28 19:03:54 MET DST 1996