I've two documents, doc1
references lists in doc2
through package xr
.
In doc2
the lists are numbered with arabic numbers, but when referenced in doc1
using \ref{tag}
they show up as roman numbers. How can I change this? I'd like to use arabic numbers always.
Minimal example:
\documentclass[a4paper,12pt,onecolumn,final]{ProjectStyle}
\renewcommand{\labelenumi}{\arabic{enumi}.}
\renewcommand{\labelenumii}{\labelenumi\arabic{enumii} }
\begin{document}
\renewcommand{\theenumi}{\arabic{enumi}.}
\renewcommand{\p@enumii}{\theenumi.\theenumii}
\setcounter{page}{1}
\pagenumbering{arabic}
\pagestyle{plain}
\begin{enumerate}
\item \textbf{Convites para conferencias, coloquio e SOC}
\begin{enumerate}
\item {\label{inv_leiden} Comprovante para \emph{Fine Tunning Stellar Population Models} (Leiden, 2006)}
\item {\label{inv_iau} Comprovante para \emph{XII Latin American Regional IAU Meeting} (Isla Margarita, 2007)}
\end{enumerate}
\end{enumerate}
Ref: \ref{inv_leiden}
\end{document}
And this is what I get:
enumii0..
- Convites para conferencias, coloquio e SOC
1.1 Comprovante para Fine Tunning Stellar Population Models (Lei- den, 2006)
1.2 Comprovante para XII Latin American Regional IAU Meeting (Isla Margarita, 2007)
Ref: 1a
Best Answer
The external reference to a document using
xr
should be the same as you get from a reference within the document (it just reads the value from theaux
file.\ref
does not use\labelenumi
at all that just affects the label used in the list display. For the first level list it uses\theenumi
and for second level list it uses\p@enumii\theenumii
.You were missing a
\makeatletter
and and had the prefix including enumii twice, your MWE can not be run as it uses a local class but you see the same withbook
class.