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

Bug#470595: (fwd) Bug#470595: geometry package doesn't work with cslatex



Dear Petr,

from http://math.feld.cvut.cz/olsak/ I'd deduce you're the actual
maintainer of cslatex.

Down here in the Debian Bug Tracking system we got a report that the
following minimal example loading the geometry package does not work
with cslatex:

\listfiles
\documentclass{article}
\usepackage{geometry}
\begin{document}
\end{document}

The error message is:

(/usr/share/texmf-texlive/tex/xelatex/xetexconfig/geometry.cfg))
(./test.aux)
! Undefined control sequence.
\Gm@checkdrivers ...fined \else \ifnum \pdfoutput
                                                  =\@ne \Gm@setdriver {pdfte...

I could get rid of the error message by removing the lines defining
\pdfoutput from cslatex.ini and rebuilding the format file, however
I'm completely unsure if this is the correct fix.

I'm pretty sure this is a problem in cslatex, but not in the geometry
package. Please be so kind to have a look at that and keep the bug
470595@bugs.debian.org in Cc, when answering.

Regards,
  Hilmar
-- 
sigmentation fault
--- Begin Message ---
Package: texlive-latex-base
Version: 2007-13
Severity: normal
Tags: patch

When trying to compile a document using geometry package with cslatex,
it fails, saying that \begin{document} wasn't def'ed. I'm attaching a
patch, proposed by Petr Olsak here -
http://usenet.jyxo.cz/cz.comp.cstex/0704/problem-s-balickem-geometry-pri-prekladu-cslatexem.html
It seems to fix the problem, but I'm not skilled enough with Latex to
tell if it doesn't break anything else.

 Anton Khirnov


######################################
 List of ls-R files

-rw-r--r-- 1 root root 1576 2008-03-10 22:37 /var/lib/texmf/ls-R
lrwxrwxrwx 1 root root 29 2007-11-26 07:10 /usr/share/texmf/ls-R ->
/var/lib/texmf/ls-R-TEXMFMAIN
lrwxrwxrwx 1 root root 27 2007-11-03 10:33
/usr/share/texmf-texlive/ls-R -> /var/lib/texmf/ls-R-TEXLIVE
lrwxrwxrwx 1 root root 27 2007-11-03 10:33
/usr/share/texmf-texlive/ls-R -> /var/lib/texmf/ls-R-TEXLIVE
######################################
 Config files
lrwxrwxrwx 1 root root 20 2007-11-26 07:10
/usr/share/texmf/web2c/texmf.cnf -> /etc/texmf/texmf.cnf
-rw-r--r-- 1 root root 12088 2008-03-10 22:36 /var/lib/texmf/web2c/fmtutil.cnf
-rw-r--r-- 1 root root 20860 2008-03-10 22:36 /var/lib/texmf/web2c/updmap.cfg
-rw-r--r-- 1 root root 14700 2008-03-10 22:36
/var/lib/texmf/tex/generic/config/language.dat
######################################
 Files in /etc/texmf/web2c/
total 4
-rw-r--r-- 1 root root 283 2007-04-14 08:57 mktex.cnf
######################################
 md5sums of texmf.d
42c20d7e8bd343542772b5a145bf8ad8  /etc/texmf/texmf.d/05TeXMF.cnf
5f7f6652cc8b8071c9e4ea6ba9e9f0a1  /etc/texmf/texmf.d/15Plain.cnf
8ed54ce13b2eed4871e03bdfdace9342  /etc/texmf/texmf.d/45TeXinputs.cnf
ea33127256c6a9f37145ae5b16fdb80c  /etc/texmf/texmf.d/55Fonts.cnf
afccf1d3f87057411166a77c58e00bd1  /etc/texmf/texmf.d/65BibTeX.cnf
9da7c1c7b1eaf06f941af91f48a23068  /etc/texmf/texmf.d/75DviPS.cnf
7ae52efac46feb97010986e57877d12e  /etc/texmf/texmf.d/80DVIPDFMx.cnf
055e06548bac99958d8ab2dd1248f2b4  /etc/texmf/texmf.d/80tex4ht.cnf
8fee79ccdd5d1f56b1563dabfd53c717  /etc/texmf/texmf.d/85Misc.cnf
a8952d594677235951d447665ec46e9c  /etc/texmf/texmf.d/90TeXDoc.cnf
30f4f13357c2761ed01a6a15f28725a5  /etc/texmf/texmf.d/95NonPath.cnf
1df66bc319cec731e202eaf39f5d85e1  /etc/texmf/texmf.d/96JadeTeX.cnf

-- System Information:
Debian Release: sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.24.3-nb.b (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages texlive-latex-base depends on:
ii  texlive-base                  2007-13    TeX Live: Essential programs and f
ii  texlive-common                2007-13    TeX Live: Base component

Versions of packages texlive-latex-base recommends:
ii  texlive-latex-base-doc        2007-13    TeX Live: Documentation files for

Versions of packages tex-common depends on:
ii  debconf                       1.5.19     Debian configuration management sy
ii  ucf                           3.005      Update Configuration File: preserv

Versions of packages texlive-latex-base is related to:
pn  tetex-base                    <none>     (no description available)
pn  tetex-bin                     <none>     (no description available)
pn  tetex-extra                   <none>     (no description available)
ii  tex-common                    1.10       common infrastructure for building

-- debconf information excluded
--- geometry/geometry.sty	2006-05-15 21:12:21.000000000 +0200
+++ /usr/share/texmf-texlive/tex/latex/geometry/geometry.sty	2008-03-12 08:03:52.000000000 +0100
@@ -560,11 +560,11 @@
   \fi}%
 \@onlypreamble\Gm@checkmp
 \def\Gm@checkdrivers{%
-  \ifx\pdfpagewidth\@undefined\else
-    \ifnum\pdfoutput=\@ne
-      \Gm@setdriver{pdftex}%
-    \fi
-  \fi
+  \ifx\pdfoutput\@undefined\else
+       \ifnum\pdfoutput>0
+         \Gm@setdriver{pdftex}%
+       \fi
+     \fi
   \ifx\VTeXversion\@undefined\else
     \ifnum\OpMode=\@ne
       \Gm@setdriver{vtex}%

--- End Message ---

Reply to: