next up previous contents index
Next: Document Classes and Options Up: No Title Previous: Quality of Printed Images

   
Figures, Tables and Arbitrary Images

  
This section is to explain how the translator handles figures, tables and other environments. Compare the paper with the online version.

When the common version of HTML was only 2.0, then almost all complicated environments were represented using images. However with HTML 3.2, there is scope for sensible layout of tables, and proper facilities for associating a caption with a figure or table. To take advantage of this, the figure environment now has its contents placed within <TABLE> tags; any caption is placed as its <CAPTION>.

For consistency with former practice, the contents of the figure environment are usually represented by generating an image. This is frequently exactly what is required; but not always. In another section it is described how to use the makeimage environment, defined in the html.sty package, to determine just which parts (if any) of a figure environment's contents should be made into images, the remainder being treated as ordinary text, etc.


   

table and tabular environments.

Similarly the makeimage environment can be used within a table, though usually this is used with a tabular or other table-making environment, such as tabbing or longtable or supertabular. Here is a simple example, from the LATEX `blue book'.

 
Table: A sample table taken from []    
gnats gram $13.65
  each .01
gnu stuffed 92.50
emur   33.33
armadillo frozen 8.99
 

When using -html_version 2.0 to get code compatible with the HTML 2.0 standard, an image is made of the table, as follows:

 
Table: Alternate view of the table from []


   

minipage environments.

The special feature of minipage environments is in the way \footnote and \footnotemark commands are handled. These are numbered separately from the rest of the footnotes throughout the document, and the notes themselves are collected together to be displayed at the end of the minipage's contents.




Variable Meaning
none none
Jacobi m-step Jacobi iteration1
SSOR m-step SSOR iteration1
IC Incomplete Cholesky factorization2
ILU Incomplete LU factorization2


1 one footnote
2 another footnote



The code used for this example was as follows36

\begin{minipage}{.9\textwidth}
\renewcommand{\thempfootnote}{\alph{mpfootnote}}
\begin{tabular}{|l|l|} \hline
\textbf{Variable} & \textbf{Meaning} \\ \hline
none      & none                   \\
Jacobi    & $m$-step Jacobi iteration\footnote[1]{one footnote} \\
SSOR      & $m$-step SSOR iteration\footnotemark[1] \\
IC        & Incomplete Cholesky factorization\footnote[2]{another footnote} \\
ILU       & Incomplete LU factorization\footnotemark[2] \\ \hline
\end{tabular}
\end{minipage}



Footnotes

... follows36
Thanks to John Turner <turner@lanl.gov> for this example, which was used in developing code to handle minipage environments correctly.


 
next up previous contents index
Next: Document Classes and Options Up: No Title Previous: Quality of Printed Images
root
1998-02-23