Tom wrote:

Package: fig2ps
Version: 1.3.2-1
Severity: normal
Tags: patch

I am using --input to include several \def commands that are used in my
figures. My first attempt failed with the error

! Undefined control sequence.
<recently read> \includegraphics

l.7 \includegraphics
                   {sim-real-switch.fig2ps.tmp.ps}%


Using keep and doing a diff between ./sim-real-switch.fig2ps.tmp.tex with and without --input I found this:


$ diff sim-real-switch.fig2ps.tmp.tex-with-input
sim-real-switch.fig2ps.tmp.tex-without-input
2c2,6
< \input{include-def.tex}
---


\usepackage[english]{babel}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{amsmath}
\usepackage{graphics}




fig2ps is using packages but expects the user to include them in the
--input=file. You should either


1) provide a template input file in /usr/share/doc (with a pointer to it
from the man page) which is good because it gives the user control over
what is included
or
2) modify fig2ps it include all needed packages which is good because if
fig2ps where to change the --input=file would not need to be modified
or
3) do something fancy such as a new option to make including these
packages in $header optional when --input is used or reading the
--input=file to decide what to do





 Hello !

Thanks for reporting this ! The use of --input comes from backward compatibility with the program this fig2ps is based on; I can't change it in the way you want, it would break this compatibility. However, if you use --add=file and that your style file is in the LaTeX path, it should work fine (try kpsewhich file.sty).

Try it and contact me, wether it works or not. I'll add then some more info in the man page.

   Vincent Fourmond



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Reply via email to