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.

Following is a simple code to show my problem with the cleveref package. When using multiple labels it breaks on the second label...

\documentclass[11pt]{article}
\usepackage{amssymb,amsmath,amsfonts}
\usepackage{amsthm}

\usepackage{cleveref}

\newtheorem{lemma}{Lemma}

\crefname{lemma}{lemma}{lemmas}

\begin{document}
\begin{lemma} \label{lem:fast}
a
\end{lemma}

\begin{lemma} \label{lem:slow}
b
\end{lemma}

\Cref{lem:fast} \\
\Cref{lem:slow} \\
\Cref{lem:fast, lem:slow} \\

\end{document}
share|improve this question
add comment

1 Answer

Omit the space after the comma.

\documentclass[11pt]{article}
\usepackage{amssymb,amsmath,amsfonts}
\usepackage{amsthm}

\usepackage{cleveref}

\newtheorem{lemma}{Lemma}

\crefname{lemma}{lemma}{lemmas}

\begin{document}
\begin{lemma} \label{lem:fast}
a
\end{lemma}

\begin{lemma} \label{lem:slow}
b
\end{lemma}

\Cref{lem:fast} \\
\Cref{lem:slow} \\
\Cref{lem:fast,lem:slow} \\% <--- no space after the comma

\end{document}

enter image description here

share|improve this answer
add comment

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.