Change reference capitalization and prefix recommendation

This commit is contained in:
Knoch 2024-04-01 11:15:48 +02:00
parent 386c56903c
commit 23aa0c8ddc
5 changed files with 376 additions and 390 deletions

View File

@ -50,10 +50,10 @@ Mit dem Befehl `\ref`:
\begin{figure}[H]
\includegraphics % …
\caption{Unser Maskottchen Fooboar}
\label{img:fooboar}
\label{fig:fooboar}
\end{figure}
Wie man in Abbildung \ref{img:fooboar} …
Wie man in Abbildung \ref{fig:fooboar} …
```
@preview
@ -72,11 +72,11 @@ Mit dem Paket `cleveref` (mit *einem* r!):
\begin{figure}[H]
\includegraphics % …
\caption{Unser Maskottchen Fooboar}
\label{img:fooboar}
\label{fig:fooboar}
\end{figure}
Fooboar ist ein sehr engagierter
Jungeber (siehe \Cref{img:fooboar}).
Jungeber (siehe \Cref{fig:fooboar}).
```
Der Befehl `\cref` fügt selbstständig die passende Abkürzung ein.

View File

@ -53,11 +53,11 @@ Using the `\ref` command:
\begin{figure}[H]
\includegraphics % …
\caption{Our mascot Fooboar}
\label{img:fooboar}
\label{fig:fooboar}
\end{figure}
As you can see in figure
\ref{img:fooboar}, …
As you can see in Figure
\ref{fig:fooboar}, …
```
@preview
@ -105,11 +105,11 @@ Using the `cleveref` package (with *one* r!):
\begin{figure}[H]
\includegraphics % …
\caption{Our mascot Fooboar}
\label{img:fooboar}
\label{fig:fooboar}
\end{figure}
Fooboar is a young and highly engaged
boar (see \Cref{img:fooboar}).
boar (see \Cref{fig:fooboar}).
```
The `\cref` command automatically inserts suitable prefixes.

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 130 KiB

After

Width:  |  Height:  |  Size: 128 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 130 KiB

After

Width:  |  Height:  |  Size: 128 KiB

View File

@ -15,6 +15,6 @@
\label{img:fooboar}
\end{figure}
As you can see in figure \ref{img:fooboar}, fooboar is a young and very engaged boar.
As you can see in Figure \ref{img:fooboar}, fooboar is a young and very engaged boar.
\end{document}