zref-clever
Querverweise, die automatisch die richtige Bezeichnung (Abbildung, Abschnitt, …) voranstellen und Bereiche zusammenfassen – kompatibel mit getaggten (barrierefreien) PDFs.
- Example
- Preamble
\Zcref{fig:ex:cref} shows a simple fact, although \zcref{fig:ex:cref} could also show something else.
\Zcref{tab:ex:cref} shows a simple fact, although \zcref{tab:ex:cref} could also show something else.
\Zcref{sec:ex:cref} shows a simple fact, although \zcref{sec:ex:cref} could also show something else.
% Extensions for references inside the document (\zcref{fig:sample}, ...)
% Use \zcref{...} (and \Zcref{...} at the beginning of a sentence) instead of \ref: Type of reference included in the link
% That means, "Figure 5" is a full link instead of just "5".
% The names follow the document language (babel); zref-clever is compatible with tagged PDFs.
% Each \label also sets a zref label, so \zcref works with standard \label.
\usepackage{zref-clever}
\zcsetup{cap, nameinlink=true}
% \Zcref{...} is short for \zcref[S]{...}: capitalized, unabbreviated name at the beginning of a sentence
\NewDocumentCommand{\Zcref}{s O{} m}{\IfBooleanTF{#1}{\zcref*[S,#2]{#3}}{\zcref[S,#2]{#3}}}