[l2h] xfig and latex2html

Julius Smith jos@w3k.org
Fri, 14 Dec 2001 08:05:29 -0800


<html>
Here is my macro for handling xfig figures, which seems to work fine. -
jos<br><br>
% Usage: <br>
%&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
\myTexFigure{name}{caption}<br>
%<br>
% Figures generated by xfig are assumed to have been exported<br>
% in .latex mode ('both parts').&nbsp; This means both name.pstex_t=20
<br>
% (containing a latex picture environment) and name.pstex <br>
% (containing raw postscript) are written by xfig.&nbsp; <br>
%<br>
% When exporting figures from xfig, make sure<br>
% to reduce them to the desired size.&nbsp; There are no resizing<br>
% facilities here, and there can't be because, while postscript<br>
% can be arbitrarily resized, the 'manual' annotations in the<br>
% .pstex_t file cannot.<br><br>
\usepackage{color} % xfig figures exporting pstex_t files need
this<br><br>
\newcommand{\myTexFigure}[2]{<br>
&nbsp;&nbsp;&nbsp; \begin{figure}[tb]<br>
&nbsp;&nbsp;&nbsp; \input fig/#1.pstex_t<br>
&nbsp;&nbsp;&nbsp; \caption{#2}\label{fig:#1}<br>
&nbsp;&nbsp;&nbsp; \end{figure}<br>
}<br><br>
At 04:46 PM 12/14/2001 +0100, Anne CADIOU wrote:<br>
<blockquote type=3Dcite class=3Dcite cite>Hello, <br><br>
Xfig has generated an image composed of a postscript file and a latex
description file <br>
based on the picture environnement. <br><br>
In the latex file, if is compiled as : <br>
&nbsp; <br><br>
\begin{figure}[h!] <br>
\begin{center} <br>
\input{figures/acces.pstex_t} <br>
\caption{Acces a la base CVS} <br>
\end{center} <br>
\end{figure} <br><br>
When latex2html is used, the web page generated shows the two files
appart. <br>
The ps file is correctly taken into account while the picture
environnement one <br>
is not. <br><br>
Does anybody have a suggestion to make it work correctly ? <br>
&nbsp; <br><br>
Thanks - <br>
&nbsp; <br>
&nbsp; <br>
<pre>--=20
Anne CADIOU
LMFA
36, Avenue Guy de Collongue&nbsp;&nbsp;&nbsp;&nbsp; T=E9l: 33 (0)4 72 18 61
83&nbsp;=20
BP 163 - 69131 ECULLY Cedex&nbsp;&nbsp;&nbsp;&nbsp; Fax: 33 (0)4 78 64 71
45</pre><br>
&nbsp; </blockquote></html>