[PATCH 2/3] Tell 'cleveref' to respect Oxford comma

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>From cade0553582a6aa4792939fffd561424436af561 Mon Sep 17 00:00:00 2001
From: Akira Yokosawa <akiyks@xxxxxxxxx>
Date: Sun, 29 Sep 2019 00:14:13 +0900
Subject: [PATCH 2/3] Tell 'cleveref' to respect Oxford comma

Also suppress aggressive compression mode of cleveref,
which compress e.g.:

    Listings 12.18, 12.19, and 12.20

into

    Listings 12.18--12.20

by the option "nosort".

"nosort" supresses both the sorting and compression of successive
references.

Signed-off-by: Akira Yokosawa <akiyks@xxxxxxxxx>
---
 perfbook.tex | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/perfbook.tex b/perfbook.tex
index 6eae887c..06019496 100644
--- a/perfbook.tex
+++ b/perfbook.tex
@@ -175,10 +175,11 @@
 \captionsetup{hangindent=20pt}
 \captionsetup[listing]{hangindent=20pt}
 
-\usepackage[capitalise,noabbrev]{cleveref}
+\usepackage[capitalise,noabbrev,nosort]{cleveref}
 \crefname{subsubsubappendix}{Appendix}{Appendices}
 \crefname{sublisting}{Listing}{Listings}
 \newcommand{\crefrangeconjunction}{--}
+\newcommand{\creflastconjunction}{, and~}
 
 % Define \clnref{} and \Clnref{} for reference to line labels
 \newcounter{lblcount}
@@ -204,6 +205,7 @@
 \newcommand{\Clnref}[1]{\clnrefp{#1}{Line}}
 \newcommand{\clnrefrange}[2]{lines~\lnref{#1}--\lnref{#2}}
 \newcommand{\Clnrefrange}[2]{Lines~\lnref{#1}--\lnref{#2}}
+
 \begin{document}
 
 %%HTMLSKIP
-- 
2.17.1





[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux