Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Problem with animate and babel-french ?

24 views
Skip to first unread message

LF Mittag

unread,
Feb 14, 2018, 12:37:28 PM2/14/18
to
Hi,

This simple document:

\documentclass[french]{article}
\usepackage{animate}
\usepackage{babel}

\begin{document}
Test
\end{document}

gives this error:
Invalid code (8217), should be in the range 0..255.
\extrasfrench ...ode `\'="2019\lccode "2019="2019
\else \lccode `\'=`\'
\fi ...
l.12 \babel@aux{french}{}

LF

Denis Bitouzé

unread,
Feb 14, 2018, 12:44:04 PM2/14/18
to
Le 14/02/18 à 18h37, LF Mittag a écrit :

> Hi,
You should report this to Daniel Flipo, the author of `babel-french'.
--
Denis

Ulrike Fischer

unread,
Feb 14, 2018, 1:08:02 PM2/14/18
to
animate sets \XeTeXrevision to relax and then the following tests in
french.ldf thinks that xetex is used. This here gives the same
error:

\documentclass[french]{article}

\let\XeTeXrevision\relax
\usepackage{babel}

\begin{document}
Test
\end{document}


\ifdefined as test is not enough ...
--
Ulrike Fischer
http://www.troubleshooting-tex.de/

Axel Berger

unread,
Feb 14, 2018, 2:03:38 PM2/14/18
to
Ulrike Fischer wrote:
> animate sets \XeTeXrevision to relax and then the following tests in
> french.ldf thinks that xetex is used. This here gives the same
> error:
> \ifdefined as test is not enough ...

Would inverting the order help? I have more or less internalized to
always load babel fairly near the top of my packages. Can't remember the
original reason for that any more, but babel up front and hyperref down
near the bottom works for me.

--
/¯\ No | Dipl.-Ing. F. Axel Berger Tel: +49/ 221/ 7771 8067
\ / HTML | Roald-Amundsen-Straße 2a Fax: +49/ 221/ 7771 8069
 X in | D-50829 Köln-Ossendorf http://berger-odenthal.de
/ \ Mail | -- No unannounced, large, binary attachments, please! --

Ulrike Fischer

unread,
Feb 14, 2018, 4:25:45 PM2/14/18
to
Am Wed, 14 Feb 2018 20:02:53 +0100 schrieb Axel Berger:

>> animate sets \XeTeXrevision to relax and then the following tests in
>> french.ldf thinks that xetex is used. This here gives the same
>> error:
>> \ifdefined as test is not enough ...
>
> Would inverting the order help?

Yes. But the test is nevertheless wrong. In such important cases one
should always also test if the command is equal to \relax.

Daniel Flipo

unread,
Feb 15, 2018, 4:20:38 AM2/15/18
to
Le 14/02/2018 à 19:07, Ulrike Fischer a écrit :
> Am Wed, 14 Feb 2018 18:37:22 +0100 schrieb LF Mittag:
>
>> Hi,
>>
>> This simple document:
>>
>> \documentclass[french]{article}
>> \usepackage{animate}
>> \usepackage{babel}
>>
>> \begin{document}
>> Test
>> \end{document}
>>
>> gives this error:
>> Invalid code (8217), should be in the range 0..255.
>> \extrasfrench ...ode `\'="2019\lccode "2019="2019
>> \else \lccode `\'=`\'
>> \fi ...
>> l.12 \babel@aux{french}{}
>>
>> LF
>
> animate sets \XeTeXrevision to relax and then the following tests in
> french.ldf thinks that xetex is used.

Exactly. Nothing to complain about animate not testing \XeTeXrevision
inside a group as f.i. ifxetex does? If so, yes I should better protect
my code…

> \ifdefined as test is not enough ...

In an ideal world it should be ;-)

--
Daniel Flipo

Ulrike Fischer

unread,
Feb 16, 2018, 4:14:13 AM2/16/18
to
Am Thu, 15 Feb 2018 10:21:12 +0100 schrieb Daniel Flipo:


>> \ifdefined as test is not enough ...

> In an ideal world it should be ;-)

There are so many examples of tests failing because someone used
\csname somecommand\endcsname in some test without taking care of
the side effect that it is clear the world is not ideal ;-)

But naturally one should notify the animate author that he should
improve the test to make the world a bit better.
0 new messages