babel spanish causes “Missing \endcsname…” error

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

Bug Description

This error was reported at http://tex.stackexchange.com/questions/140155/moderncv-and-babel-spanish-cause-missing-endcsname-error

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

    \roman{tmpiteratorcounter}

    should become

    \romannumeral\c@tmpiteratorcounter

    2. \cvcolumn, where the occurrences of

    \roman{cvcolumnscounter}

    should become

    \romannumeral\c@cvcolumnscounter

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

    \roman{collection@#2@count}

    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