I'm using proportional numbers in my document. But in gb4e's example numbers, I would like to have monospaced numbers, so that the width of the example parenthesis remains the same throughout my document.
In the MWE below, I would in other words like to have the example numbers (1) and (2) monospaced, so that their width is the same, but the number sequences 021345 should use proportional numbers.
\documentclass{article}
\usepackage{fontspec}
\setmainfont[Numbers = {OldStyle, Proportional}]{Linux Libertine O}
\usepackage{gb4e}
\exewidth{(9)} % change the default (999) to one digit (9)
\begin{document}
\begin{exe}
\ex 012345
\ex 012345
\end{exe}
\end{document}



(9)because that will left align the numbers rather than right align them (noticeable when the numbers have more than one digit). – Alan Munn Mar 15 '15 at 23:55Command \@ already definedbecause I have defined commands such as\@confnameelsewhere (see this question). Is there an easy fix to this? – Sverre Mar 17 '15 at 16:21\@confnameshould be defined between\makeatletterand\makeatother– egreg Mar 17 '15 at 16:26\exewidth{(9)}when my document has $<10$\excommands and\exewidth{(99)}when it has $<100 >9$. – Sverre Mar 17 '15 at 16:35