Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I'm fetching references from an enumeration. The problem is that I want the labels of the enumeration to be bold (hence, I've added a \textbf command) but I want the references in the text to be plain text. Can I achieve this in anyway?

Minimal (non)working example:

\documentclass[12pt]{article}
\usepackage{enumitem}
\begin{document}

\begin{enumerate}[label=(\textbf{\Roman{*}})]
\item \label{Your}Your
\item \label{Mama}Mama
\end{enumerate}

'Your' is at \ref{Your} and 'Mama' is at \ref{Mama}. 
(I'd like these references to be in plain text, not bold.)
\end{document}
share|improve this question

1 Answer 1

up vote 8 down vote accepted

enumitem provides an equivalent ref option to specify a different format for the reference than the label. So, you can use ref=(\Roman*).

enter image description here

\documentclass[12pt]{article}
\usepackage{enumitem}% http://ctan.org/pkg/enumitem
\begin{document}

\begin{enumerate}[label=(\textbf{\Roman{*}}),ref=(\Roman*)]
\item \label{Your}Your
\item \label{Mama}Mama
\end{enumerate}

`Your' is at~\ref{Your} and `Mama' is at~\ref{Mama}. 

\end{document}​
share|improve this answer
    
You, sir, are a genius! Thanks a lot! –  Speldosa Sep 26 '12 at 22:12

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.