# Roman numeration in an xlist environment

How do I set an xlist environment inside an exe environment to use lowercase roman numeration? It always defaults to lowercase letters.

• Welcome to TeX.SX! Where are the xlist and exe environment defined? – egreg Oct 28 '18 at 21:46
• Are you using gb4e? – egreg Oct 28 '18 at 22:16
• Yes I'm using gb4e – user242292 Oct 29 '18 at 1:25
• @ydnfmew: You'll have to be more forthcoming. Please provide code that starts with \documentclass and ends with \end{document} that we can copy-and-paste-and-compile and see exactly what you're seeing. – Werner Oct 29 '18 at 1:57
• You got two excellent answers here. What prevents you from accepting one of them? – user121799 Mar 10 '19 at 4:14

Without seeing a minimal working example it is difficult to be sure, but I think that you just need to redefine \thexnumii, which you can do with:

 \renewcommand\thexnumii{\roman{xnumii}}


Of course, if you are going to nest these further then you should also redefine \thexnumiii etc. Doing this you get the output

from the MWE (which is adapted from the gb4e manual):

\documentclass{article}
\usepackage{gb4e}
\renewcommand\thexnumii{\roman{xnumii}}

\begin{document}

\begin{exe}                   % sets up the top-level example environment
\ex\label{here} Here is one.  % example with running number
\ex[*]{Here another is.}      % judged ex. with running number
\ex Here are some with judgements.
\begin{xlist}                % first embedding (alphabetical numbering)
\ex[]{A grammatical sentence am I.}
\ex[*]{An ungrammatical sentence is you.}
\ex[??]{A dubious sentence is she.}
\ex                          % just the number
\ex Dare to judge me!
\end{xlist}                  % end first embedding
\ex This concludes our demonstration.
\end{exe}

\end{document}


The gb4e package comes with variants of the xlist lists:

So there's no need to change the format of the xnumii counter manually.

\documentclass{article}
\usepackage{gb4e}
\begin{document}
\begin{exe}
\ex
\begin{xlisti}
\ex An example.
\ex Another example.
\end{xlisti}
\end{exe}
\end{document}


If you want to do this globally for all instances of xlist, and you are only using one level of xlist in the document, you could simply add

\let\xlist\xlisti