[ pdftex-Bugs-488 ] In pdfLaTeX Turkish babel won't work with graphicx package
Bugs item #488, was opened at 2006-02-24 06:42 You can respond by visiting: http://sarovar.org/tracker/?func=detail&atid=493&aid=488&group_id=106 Category: Image inclusion Group: None
Status: Closed Resolution: Rejected Priority: 2 Submitted By: Nerhun YILDIZ (nerhun) Assigned to: Martin Schröder (oneiros) Summary: In pdfLaTeX Turkish babel won't work with graphicx package
Initial Comment: I use Turkish bible in MiKTeX 2.4. When I use graphics or graphicx package and pdfLaTeX my document it crashes with about 30 errors. There is no difficulty in LaTeXing the same document and processing DVI instead of PDF. Here is the piece of minimal LaTeX code that crashes: \documentclass{report} \usepackage[turkish]{babel} \usepackage{graphicx} \begin{document} \end{document} ----------------------------------------------------------------------
Comment By: Martin Schröder (oneiros) Date: 2006-02-24 13:53
Message:
Logged In: YES
user_id=421
Closed, as this is a LaTeX/babel/pdftex.def problem.
----------------------------------------------------------------------
Comment By: Heiko Oberdiek (oberdiek)
Date: 2006-02-24 11:26
Message:
Logged In: YES
user_id=1276
Hello,
Turkish.ldf makes '=' active that will break many packages.
Graphicx loads pdftex.def and pdftex.def loads supp-pdf.tex
delayed (\AtBeginDocument) that loads supp-mis.tex that
relies on '=' with catcode 12 instead of an active one.
Babel makes '=' active \AtBeginDocument. Because babel
is loaded first, '=' is made active before supp-mis.tex
is loaded.
Solutions:
* Other order of packages:
\usepackage{graphicx}
\usepackage[turkish]{babel}
* Fixing the catcode for stuff that is loaded
\AtBeginDocument between babel and document start:
\usepackage[turkish]{babel}
\AtBeginDocument{\shorthandoff{=}}% right after babel
\usepackage{graphicx}
...
\AtBeginDocument{\shorthandon{=}}%
% right before \begin{document}
\begin{document}
* Also I have updated pdftex.def to 0.03o in order to
catch some catcode problems.
The bug is related to the choice of '=' as shorthand
character in turkish.ldf. It is definitly no matter of
pdfTeX, thus the bug can be closed here.
Yours sincerely
Heiko
participants (1)
-
noreply@sarovar.org