Skip to content
Snippets Groups Projects
Commit d94cfc08 authored by John Swinbank's avatar John Swinbank
Browse files

Set up clever references

parent 0d0b2ae5
Branches
No related tags found
1 merge request!22Clever references
...@@ -89,11 +89,27 @@ ...@@ -89,11 +89,27 @@
\RequirePackage{parskip} \RequirePackage{parskip}
\RequirePackage{tabularx} \RequirePackage{tabularx}
\RequirePackage{booktabs} \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 % Set up glossaries
%
\input{astron-abbreviations} \input{astron-abbreviations}
\makeglossaries \makeglossaries
% Don't expand these acronyms in the text. % Don't expand these acronyms in the text.
\glsunset{API} \glsunset{API}
\glsunset{Apertif} \glsunset{Apertif}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment