Generalbabel and algorithm2e don't work together in recent versions

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
derBert
Posts: 1
Joined: Thu Jun 13, 2013 10:40 am

babel and algorithm2e don't work together in recent versions

Post by derBert »

Hi,

I've been using LaTeX for many years now without problems, I couldn't solve using a web search engine. So, this is my first post ever and, I apologize, I don't exactly know, where to post the following problem correctly. I've read http://www.latex-community.org/forum/vi ... f=5&t=3483 and chose this place ;)

After updating to TexLive 2013, documents using packages babel and algorithm2e together don't compile anymore.

MWE

Code: Select all

%\documentclass{scrartcl}
\documentclass{article}

%%\usepackage[german]{babel}
\usepackage[english]{babel}

\usepackage{algorithm2e}



\begin{document}

  Text

\end{document}
This is the output:
~/tmp$ pdflatex pdflatex-fails.tex
This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013/Debian)
restricted \write18 enabled.
entering extended mode
(./pdflatex-fails.tex
LaTeX2e <2011/06/27>
Babel <3.9f> and hyphenation patterns for 78 languages loaded.
(/usr/share/texlive/texmf-dist/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/usr/share/texlive/texmf-dist/tex/latex/base/size10.clo))
(/var/lib/texmf/tex/generic/babel/babel.sty
(/usr/share/texlive/texmf-dist/tex/generic/babel-english/english.ldf
(/usr/share/texlive/texmf-dist/tex/generic/babel/babel.def)))
(/usr/share/texlive/texmf-dist/tex/latex/algorithm2e/algorithm2e.sty
(/usr/share/texlive/texmf-dist/tex/latex/base/ifthen.sty)
(/usr/share/texlive/texmf-dist/tex/latex/tools/xspace.sty)
(/usr/share/texlive/texmf-dist/tex/latex/relsize/relsize.sty)
********************************************************
Package `algorithm2e' Release 5.0 -- january 06 2013 --
- algorithm2e-announce@lirmm.fr mailing list for announcement about releases
- algorithm2e-discussion@lirmm.fr mailing list for discussion about package
subscribe by emailing sympa@lirmm.fr with 'subscribe <list> <firstname name>'
- Author: Christophe Fiorio (cfiorio@um2.fr)
********************************************************
) (./pdflatex-fails.aux)^C
! Interruption.
\document ...ent \@firstofone \@begindocumenthook
\ifdim \topskip <1sp\globa...
l.11 \begin{document}

? x
No pages of output.
Transcript written on pdflatex-fails.log.
It gets stuck after output of
(./pdflatex-fails.aux)
with CPU usage of 100% on one core.

If babel or algorithms2e is removed, it compiles without any problems.

Package versions are
\ProvidesPackage{babel}
[2013/05/16 v3.9f %
The Babel package]
and
% $Id: algorithm2e.sty,v 5.0 2013/01/06 14:40:35 cfiorio Exp $
...
\ProvidesPackage{algorithm2e}[2013/01/06 v5.00 algorithms environments]

Using class beamer, it also gets stuck, but output is different:
...
********************************************************
Package `algorithm2e' Release 5.0 -- january 06 2013 --
- algorithm2e-announce@lirmm.fr mailing list for announcement about releases
- algorithm2e-discussion@lirmm.fr mailing list for discussion about package
subscribe by emailing sympa@lirmm.fr with 'subscribe <list> <firstname name>'
- Author: Christophe Fiorio (cfiorio@um2.fr)
********************************************************
) (./pdflatex-beamer-fails.aux)
*geometry* detected driver: pdftex
(/usr/share/texlive/texmf-dist/tex/context/base/supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
) (/usr/share/texlive/texmf-dist/tex/latex/oberdiek/epstopdf-base.sty
(/usr/share/texlive/texmf-dist/tex/latex/oberdiek/grfext.sty)
(/usr/share/texlive/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg))
ABD: EveryShipout initializing macros
(/usr/share/texlive/texmf-dist/tex/latex/hyperref/nameref.sty
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/gettitlestring.sty))
(./pdflatex-beamer-fails.out) (./pdflatex-beamer-fails.out)
(/usr/share/texmf/tex/latex/beamer/base/translator/dicts/translator-basic-dicti
onary/translator-basic-dictionary-English.dict)
(/usr/share/texmf/tex/latex/beamer/base/translator/dicts/translator-bibliograph
y-dictionary/translator-bibliography-dictionary-English.dict)
(/usr/share/texmf/tex/latex/beamer/base/translator/dicts/translator-environment
-dictionary/translator-environment-dictionary-English.dict)
(/usr/share/texmf/tex/latex/beamer/base/translator/dicts/translator-months-dict
ionary/translator-months-dictionary-English.dict)
(/usr/share/texmf/tex/latex/beamer/base/translator/dicts/translator-numbers-dic
tionary/translator-numbers-dictionary-English.dict)
(/usr/share/texmf/tex/latex/beamer/base/translator/dicts/translator-theorem-dic
tionary/translator-theorem-dictionary-English.dict)^C
! Interruption.
\org@ifthenelse ...bl@tempb \@safe@activesfalse #2
}{\let \pageref \bbl@tempa...
l.10 \begin{document}

? x
No pages of output.
Transcript written on pdflatex-beamer-fails.log.
MWE:

Code: Select all

\documentclass[pdftex]{beamer}

%%\usepackage[german]{babel}
\usepackage[english]{babel}

\usepackage{algorithm2e}



\begin{document}

\begin{frame}
  \frametitle{Title}

  Text
\end{frame}

\end{document}

There is no problem when I'm using the old versions coming with TexLive 2012, namely "algorithm2e.sty,v 4.1 2009/12/15 08:54:08" and "{babel} [2008/07/08 v3.8m".

derBert

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

babel and algorithm2e don't work together in recent versions

Post by cgnieder »

derBert wrote:After updating to TexLive 2013, documents using packages babel and algorithm2e together don't compile anymore.
Hi derBert,

Welcome to the LaTeX community!

TeX Live 2013 has not been officially published yet, release is planned for July 1st. Hence I haven't installed it yet and can't test. What I know is that TL2013 will contain a long due update of babel.

You should probably contact the maintainer of algorithm2e with the problem.

Regards
site moderator & package author
Post Reply