Skip to content
Snippets Groups Projects

Clever references

Merged John Swinbank requested to merge u/swinbank/cleveref into master
1 file
+ 18
1
Compare changes
  • Side-by-side
  • Inline
@@ -88,11 +88,28 @@
\RequirePackage{microtype}
\RequirePackage{parskip}
\RequirePackage{tabularx}
\RequirePackage{booktabs}
\RequirePackage[capitalize]{cleveref}
% Set up “clever” references.
%
% Use lower-case-p for pages references.
\crefname{page}{page}{pages}
% Abbreviations for appendix when not at the start of a sentence
\crefname{appendix}{Appx.}{Appxs.}
\Crefname{appendix}{Appendix}{Appendices}
% Use § for section references, except at the beginning of sentences.
\crefformat{section}{\S#2#1#3}
\crefrangeformat{section}{\S\S#3#1#4--#5#2#6}
\crefmultiformat{section}{\S\S#2#1#3}{ \&~#2#1#3}{, #2#1#3}{ \&~#2#1#3}
\Crefformat{section}{Section~#2#1#3}
\Crefrangeformat{section}{Sections~#3#1#4 to~#5#2#6}
\Crefmultiformat{section}{Sections~#2#1#3}{ and~#2#1#3}{, #2#1#3}{ and~#2#1#3}
% Set up glossaries
%
\input{astron-abbreviations}
\makeglossaries
% Don't expand these acronyms in the text.
\glsunset{API}
\glsunset{Apertif}
Loading