The name of the headline is not "correct" but I cannot find a more precise term, sorry!
Assume there is a reference, say, \label{beaver} in the middle of the document. How do I control the output name of the reference? I.e., I would like to get something like this:
It is not exactly what I am looking for but it is close.
Example:
Assume that the label \label{beaver} is inside the section \section{Fish}. Then I do not want the output name to be "Fish" when refering to the label but I want to be able to choose my own output name, say "water". I.e., I am looking for something like:
\documentclass{article}
\usepackage{cleveref}
\crefname{section}{water}{waters}
\Crefname{section}{Water}{Waters}
\begin{document}
\section{Fish\label{beaver}} Research has shown that many fish live in \cref{beaver}. That is now a well-known fact.
\end{document}
You definitely understood my question well enough! This is (almost) exactly what I am searching for but if the section number can be removed it will be great!
The "perfect" output for me would be:
Fish
Research has shown that many fish live in water. That is now a well-known fact.
instead of
1 Fish
Research has shown that many fish live in water 1. That is now a well-known fact.
I.e., without the section number in both the header and in the text.
Thanks in advance!
``In the game of chess, you can never let your adversary see your pieces.''
-- Zapp Brannigan, Futurama (season 1, episode 4)
Now you can use the titlesec package to get rid of the section number in the titles and the command \creflabelformat (from cleveref) to get rid of the number in the reference.
\documentclass{article}
\usepackage{cleveref}
\usepackage{titlesec}
\crefname{section}{water}{waters}
\Crefname{section}{Water}{Waters}
\creflabelformat{section}{#2#3}
\titleformat{\section}
{\normalfont\Large\bfseries}{}{0em}{}
\titlespacing*{\section}
{0pt}{3.5ex plus 1ex minus .2ex}{2.3ex plus .2ex}
\begin{document}
\setcounter{section}{100}
\section{Fish\label{beaver}} Research has shown that many fish live in \cref{beaver}. That is now a well-known fact.
\end{document}
However, now an unwanted space appears after the reference, and I only could think of a not elegant way of suppressing this additional space:
\documentclass{article}
\usepackage{cleveref}
\usepackage{titlesec}
\crefname{section}{water}{waters}
\Crefname{section}{Water}{Waters}
\creflabelformat{section}{#2#3\hspace*{-.4em}}
\titleformat{\section}
{\normalfont\Large\bfseries}{}{0em}{}
\titlespacing*{\section}
{0pt}{3.5ex plus 1ex minus .2ex}{2.3ex plus .2ex}
\begin{document}
\setcounter{section}{100}
\section{Fish\label{beaver}} Research has shown that many fish live in \cref{beaver}. That is now a well-known fact.
\end{document}
Perhaps someone else can provide a better way of treating this additional space that appears in the first code of this post.