[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#512254: [texlive-pictures] Patch for texdraw package to allow using it with pdflatex



Package: texlive-pictures
Version: 2007.dfsg.1-5
Severity: wishlist

--- Please enter the report below this line. ---

I'm using texdraw package with latex and that works well.
However using pdflatex usually fails as it could not deal with eps figures produced by texdraw.
It is possible hide this using eps2pdf package and invoking pdflatex -shell-escape thanks to the attached patch
Could you please apply this patch?

Cheers,
Mazen

--- System information. ---
Architecture: i386
Kernel:       Linux 2.6.26-1-686

Debian Release: 5.0
  500 unstable        ftp.fr.debian.org 

--- Package information. ---
Depends               (Version) | Installed
===============================-+-=============
tex-common            (>= 1.11) | 1.11.3
texlive-base       (>= 2007-11) | 2007.dfsg.1-5
texlive-common        (>= 2007) | 2007.dfsg.1-5

--- Output from package bug script ---

--- /usr/share/texmf-texlive/tex/generic/texdraw/texdraw.sty	2006-01-13 00:46:03.000000000 +0100
+++ texdraw.sty	2007-06-17 22:12:49.000000000 +0200
@@ -28,7 +28,8 @@
 \ProcessOptions
 
 % Load the graphics package if not already loaded
-\RequirePackage{graphics}
+\RequirePackage{graphicx}
+\RequirePackage{epstopdf}
 
 % Define the error routine
 \def\t@xderror #1{%

--- /usr/share/texmf-texlive/tex/generic/texdraw/texdraw.tex	2006-01-13 00:46:03.000000000 +0100
+++ texdraw.tex	2007-06-17 22:31:24.000000000 +0200
@@ -50,7 +50,8 @@
 \pixtobp \xminpix \l@lxbp  \pixtobp \yminpix \l@lybp
 \pixtobp \xmaxpix \u@rxbp  \pixtobp \ymaxpix \u@rybp
 \hbox{\t@xdinclude 
-[{\l@lxbp},{\l@lybp}][{\u@rxbp},{\u@rybp}]{\p@sfile}}%
+%[{\l@lxbp},{\l@lybp}][{\u@rxbp},{\u@rybp}]{\p@sfile}}%
+{\p@sfile}}%
 \pixtodim \xminpix \t@xpos  \pixtodim \yminpix \t@ypos
 \kern \t@ypos
 \hbox {\kern -\t@xpos
@@ -511,11 +512,7 @@
 \def\w@rps #1{\immediate\write\drawfile {#1}}
 \def\t@xdpsfn #1{%
 \global\advance \t@xdnum by 1
-\ifnum \t@xdnum<10
-\xdef #1{\jobname.ps\the\t@xdnum}
-\else
-\xdef #1{\jobname.p\the\t@xdnum}
-\fi
+\xdef #1{\jobname-\the\t@xdnum.eps}
 }
 \def\t@dropen #1{%
 \immediate\openout\drawfile=#1%

Attachment: signature.asc
Description: Ceci est une partie de message =?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?=


Reply to: