[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>
%
\myTexFigure{name}{caption}<br>
%<br>
% Figures generated by xfig are assumed to have been exported<br>
% in .latex mode ('both parts'). This means both name.pstex_t=20
<br>
% (containing a latex picture environment) and name.pstex <br>
% (containing raw postscript) are written by xfig. <br>
%<br>
% When exporting figures from xfig, make sure<br>
% to reduce them to the desired size. 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>
\begin{figure}[tb]<br>
\input fig/#1.pstex_t<br>
\caption{#2}\label{fig:#1}<br>
\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>
<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>
<br><br>
Thanks - <br>
<br>
<br>
<pre>--=20
Anne CADIOU
LMFA
36, Avenue Guy de Collongue T=E9l: 33 (0)4 72 18 61
83 =20
BP 163 - 69131 ECULLY Cedex Fax: 33 (0)4 78 64 71
45</pre><br>
</blockquote></html>