diff --git a/texmf/tex/latex/astron/astron.cls b/texmf/tex/latex/astron/astron.cls index b13534cf5630938dac6a8a959e69c1d03023a18e..cd82dfb1cb400de37ebdeaac2e4490970dd2ace4 100644 --- a/texmf/tex/latex/astron/astron.cls +++ b/texmf/tex/latex/astron/astron.cls @@ -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}