0

This question already has an answer here:

I always use the Oxford comma — the comma between the penultimate item and the last item in a list of three or more items — as in:

The sailors were Wynken, Blynken, and Nod

How can I get cleveref to include the Oxford comma in the output from a command of the form

\cref{item1,item2,item2}

or similarly when there are more than three items?

For example:

\documentclass{article}
\usepackage{amsthm}
\newtheorem{thm}{Theorem}

\usepackage[pdftex]{hyperref} 
\hypersetup{colorlinks,citecolor=red}
\usepackage[noabbrev,nameinlink]{cleveref}

\crefname{thm}{Theorem}{Theorems}

\begin{document}

See \cref{thm:two,thm:four}: OK.

See \crefrange{thm:two}{thm:four}: OK

See \cref{thm:two,thm:four,thm:one}: missing Oxford comma!

\begin{thm}\label{thm:one}
$1+1 = 2$.
\end{thm}

\begin{thm}\label{thm:two}
$2+2 = 4$.
\end{thm}

\begin{thm}\label{thm:three}
$3+3 = 6$.
\end{thm}

\begin{thm}\label{thm:four}
$4+4 - 8$.
\end{thm}

\end{document}

Missing Oxford comma in cleveref list

marked as duplicate by Alan Munn, Community Aug 3 at 21:42

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Browse other questions tagged or ask your own question.