I am trying to redefine the enumerate labels so I can use maya numerals (\mayadigit from the mathabx package, or ideally the fixed rotated ones from here). I tried simply doing \renewcommand\theenumi{\mayadigit{enumi}} as you would do with \roman. In this case I get the following error:

Missing number, treated as zero

It seems that \roman has more structure than \mayadigit. but I cannot find what I need to define the same thing for \mayadigit.

  • Welcome to TeX SX! Maybe with \mayadigit{\value{enumi}]?
    – Bernard
    Jul 2, 2019 at 15:53
  • Well, that seems to fix the problem. I still get a dot afterwards which I would want to get rid of. Thanks a lot @Bernard
    – Steve
    Jul 2, 2019 at 15:57
  • 2
    I've taken a look at the documentation of mathbax. As I understand it, the command should be \maya{...}. To remove the final dot, try using enumitem (something like [label=\maya{enumi}].
    – Bernard
    Jul 2, 2019 at 16:02
  • The thing with \maya{} is that it adds a box, which I don't like. The downside of \mayadigit{} is that it stops being correct at 21. On the other hand, while \maya{} is correct it becomes unwieldy due to the nature of the ordering (symbols stacked vertically).
    – Steve
    Jul 3, 2019 at 8:56

1 Answer 1


I managed to make this work using enumitem by looking at the moreenum package. Here is my solution, in case anyone is interested:


    \ifnum\mayacntc=0 0\else
    \loop\ifnum\mayacntc>5\advance\mayacntc by -5\repeat
    \loop\ifnum\mayacntc>5\advance\mayacntc by -5 5\repeat}%

  \expandafter\@mayalabel\csname c@#1\endcsname}

  \expandafter\@mayafull\csname c@#1\endcsname}

Using [label=\mayalabel*] gives you \mayadigit{} while [label=\mayafull*] gives you \maya{}. None of them really work beyond twenty though. The former is wrong and the latter is bulky.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .