In my memoir
document, I have several tables looking something like:
\begin{table}[htbp]
\centering
\caption{This is a caption.}
\label{tab:some_table}
\begin{tabular}{l p{10cm}}
\toprule
some text & some more text \\
\midrule
some text & even more text, it's crazy! \\
\bottomrule
\end{tabular}
\end{table}
This results in the caption: "Table 3.1: This is a caption."
I would like this caption to be: "Use case 1: This is a caption."
That is, I would like to choose the prefix myself (not necessarily "Use case 1") but only locally, since my document includes other tables which should use the "standard" caption. And I want to be able to reference the tables/use cases using cleveref
(or just \ref
if that makes the reference "Use case 1").
Best Answer
You can easily define new float types.
If you want the use cases to be numbered, like tables, within chapters, change into
Adding support for
cleveref
is as easy as adding a\crefname
instruction.I'll show only the relevant extract from the image: