babel spanish causes “Missing \endcsname…” error

Bug #1243455 reported by Roberto E Ferrer Pirela on 2013-10-22
This bug affects 4 people
Affects Status Importance Assigned to Milestone

Bug Description

This error was reported at

Summary: The use of \usepackage[spanish, activeacute]{babel} along with \phone generates the following error:

! Missing \endcsname inserted. \protect l.22 \phone[mobile]{+1~(234)~567~890} The control sequence marked should not appear between \csname and \endcsname.

One tex.stackexchange user noted:

The babel module for Spanish redefines \roman to use small caps and in many places moderncv uses \roman for building indexed macros, basically by doing

\csname xyz\roman{counter}\endcsname

which won't work if \roman is redefined in that way.

The macros involved are

    1. \endcvcolumns which is defined by \newenvironment{cvcolumns}, where the occurrences of


    should become


    2. \cvcolumn, where the occurrences of


    should become


    3. \collectionadd (in moderncvcollection.sty), where the occurrences of


    should become

    \romannumeral\csname c@collection@#2@count\endcsname

Francisco Lopes (oblita) wrote :

I'm also suffering the issue with babel greek... I've applied the stackexchange command patches.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers