This is a search tool for the LaTeX bugs database.

This search tool allows you to search the LaTeX3 project team's database of all bug reports for LaTeX. If you discover what you believe to be a bug with LaTeX, you can search this database to find out if it has already been reported.

Note that you can only search for bugs which were reported after December 1994, when we made the database public.


You can search for all the bug reports about:
which are the responsibility of:
with the status of:
containing the keyword:
or having the reference
(of the form category/number):
by pressing here:  .
PR number: babel/3523
Synopsis: Latin language support causes graphicx to crash
Confidential: no
State: closed
Arrival date: Thu Apr 10 14:51:01 +0200 2003


Maarten Wisse
Thu, 10 Apr 2003 14:02:29 +0200

Description of bug:
 < When loading babel with Latin language support, an includegraphics command from the graphicx package will exit with an error: 
ERROR: Missing \endcsname inserted.

--- TeX said ---
<to be read again> 
                   \linewidth 
l.6 \includegraphics[width=\linewidth]{example1} >


Sample file which indicates the problem:
========================================
 < \documentclass{article}
\usepackage[latin,english]{babel}
\usepackage{graphicx}
\begin{document}

\includegraphics[width=\linewidth]{example1}

\end{document}
 >

The log file from running LaTeX on the sample:
==============================================
 < Running `LaTeX' on `test' with ``latex '\nonstopmode\input{test.tex}'''
This is TeX, Version 3.14159 (Web2C 7.4.5)
LaTeX2e <2001/06/01>
Babel <v3.7h> and hyphenation patterns for american, british, french, german, n
german, dutch, latin, nohyphenation, loaded.

(./test.tex (/usr/share/texmf/tex/latex/base/article.cls
Document Class: article 2001/04/21 v1.4e Standard LaTeX document class
(/usr/share/texmf/tex/latex/base/size10.clo))
(/usr/share/texmf/tex/generic/babel/babel.sty
(/usr/share/texmf/tex/generic/babel/latin.ldf
(/usr/share/texmf/tex/generic/babel/babel.def))
(/usr/share/texmf/tex/generic/babel/english.ldf))
(/usr/share/texmf/tex/latex/graphics/graphicx.sty
(/usr/share/texmf/tex/latex/graphics/keyval.sty)
(/usr/share/texmf/tex/latex/graphics/graphics.sty
(/usr/share/texmf/tex/latex/graphics/trig.sty)
(/usr/share/texmf/tex/latex/config/graphics.cfg)
(/usr/share/texmf/tex/latex/graphics/dvips.def))) (./test.aux)
! Missing \endcsname inserted.
<to be read again> 
                   \linewidth 
l.6 \includegraphics[width=\linewidth]{example1}
                                                
! Missing number, treated as zero.
<to be read again> 
                   \endcsname 
l.6 \includegraphics[width=\linewidth]{example1}
                                                
! Illegal unit of measure (pt inserted).
<to be read again> 
                   \endcsname 
l.6 \includegraphics[width=\linewidth]{example1}
                                                
! Extra \endcsname.
<recently read> \endcsname 
                           
l.6 \includegraphics[width=\linewidth]{example1}
                                                

! Package keyval Error: width=\linewidth  undefined.

See the keyval package documentation for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.6 \includegraphics[width=\linewidth]{example1}
                                                
<example1.eps>
Overfull \hbox (126.70625pt too wide) in paragraph at lines 6--7
[][] 
[1] (./test.aux) )
(see the transcript file for additional information)
Output written on test.dvi (1 page, 280 bytes).
Transcript written on test.log.

LaTeX exited abnormally with code 1 at Thu Apr 10 13:49:03
 >

============================================================

End of LaTeX2e bug report.
============================================================

>Fix:
Fixed long ago (now latin provides a couple of macros to switch on/off =).
>Release-Note:
 LaTeX2e bug report.
 Template generated by latexbug.tex on 2003/04/10
 
 Reports may be submitted by email to latex-bugs@latex-project.org
 Please use the subject line:
 Subject: Latin language support causes graphicx to crash
 
 To follow up an existing report, include the bug reference, e.g.
 "latex/1234: ", preceding the subject text.
 ============================================================
 
 *** Initex configuration files
 fonttext.cfg
 2001/06/04 v2.2z LaTeX Kernel (Uncustomised text font setup)
 fonttext.ltx
 2001/06/04 v2.2z LaTeX Kernel (Text font setup)
 omlenc.def
 2001/06/05 v1.94 Standard LaTeX file
 t1enc.def
 2001/06/05 v1.94 Standard LaTeX file
 ot1enc.def
 2001/06/05 v1.94 Standard LaTeX file
 omsenc.def
 2001/06/05 v1.94 Standard LaTeX file
 t1cmr.fd
 1999/05/25 v2.5h Standard LaTeX font definitions
 ot1cmr.fd
 1999/05/25 v2.5h Standard LaTeX font definitions
 ot1cmss.fd
 1999/05/25 v2.5h Standard LaTeX font definitions
 ot1cmtt.fd
 1999/05/25 v2.5h Standard LaTeX font definitions
 fontmath.cfg
 2001/06/04 v2.2z LaTeX Kernel (Uncustomised math font setup)
 fontmath.ltx
 2001/06/04 v2.2z LaTeX Kernel (Math font setup)
 omlcmm.fd
 1999/05/25 v2.5h Standard LaTeX font definitions
 omscmsy.fd
 1999/05/25 v2.5h Standard LaTeX font definitions
 omxcmex.fd
 1999/05/25 v2.5h Standard LaTeX font definitions
 ucmr.fd
 1999/05/25 v2.5h Standard LaTeX font definitions
 preload.cfg
 2001/06/04 v2.2z LaTeX Kernel (Uncustomised preload font setup)
 preload.ltx
 1998/08/17 v2.1g LaTeX Kernel (Font Preloading)
 hyphen.cfg
 2001/03/01 v3.7h Babel language switching mechanism
 ***

bugs reply
Thu, 10 Apr 2003 18:16:58 +0200
Maarten,

 > Description of bug:
 >  < When loading babel with Latin language support, an includegraphics command from the graphicx package will exit with an error: 
 > ERROR: Missing \endcsname inserted.
 > 
 > --- TeX said ---
 > <to be read again> 
 >                    \linewidth 
 > l.6 \includegraphics[width=\linewidth]{example1} >

well due to latin making = a shorthand character, something that is quite
uncommon and graphix doesn't like that.

workaround

\shorthandoff{=}
\includegraphics[width=\linewidth]{example1}
\shorthandon{=}  % if you need that

a real fix that needs some thought i fear

frank


"David Carlisle"
Mon, 14 Apr 2003 21:56:33 +0100
Morten,

you wrote in RE: babel/3500: Danish \glossaryname plus suggestion
>
>  Another babel-related thing: using babel with the latin-option
> and keyval results in an error due to `=' being \active, but at
> least it fixable with \shorthandoff{=}. Maybe it should be
> mentioned in the documentation. (Actually I think the keyval doc
> should warn users against this.)
>
>  Regards,
>  Morten

Is this a coincidence but this has been reported this week as

Re: babel/3523: Latin language support causes graphicx to crash

So I'm replying under that bug number.

As an alternative to using \shorthandoff or documenting the problem,
one could make the babel package redefine the affected commands
there's only two of them as shown by the following test document modified
from babel/3523
basically after having defined \KV@equalsdefs a babel option would just have
to make
sure it re-ran \KV@equalsdefs= with = having the appropriate catcode (13
when it is a shortref
and 12 when it is normal)

David



\documentclass{article}
\usepackage{graphicx}
\let\bbb\KV@do
\usepackage[latin,english]{babel}

\makeatletter

\def\KV@equalsdefs#1{%
\def\KV@do##1,{%
 \ifx\relax##1\empty\else
  \KV@split##1#1#1\relax
  \expandafter\KV@do\fi}%
\def\KV@split##1#1##2#1##3\relax{%
  \KV@@sp@def\@tempa{##1}%
  \ifx\@tempa\@empty\else
    \expandafter\let\expandafter\@tempc
      \csname\KV@prefix\@tempa\endcsname
    \ifx\@tempc\relax
      \KV@errx
       {\@tempa\space undefined}%
    \else
      \ifx\@empty##3\@empty
        \KV@default
      \else
        \KV@@sp@def\@tempb{##2}%
        \expandafter\@tempc\expandafter{\@tempb}\relax
      \fi
    \fi
  \fi}}


\catcode`\=13\relax

\addto\extrasenglish{\KV@equalsdefs=}

\makeatother
\catcode`\=12\relax

\begin{document}

\includegraphics[width=\linewidth]{example1}

\end{document}




Address information
Copyright 1994 — 2011 the LaTeX3 project and Alan Jeffrey.


The LaTeX home page