I want to get rid of prefixes in figure captions. I use MikTeX, XeLaTeX and tufte-latex
style class. I've tried three variants:
\caption*{Foto}
\usepackage[labelformat=empty]{caption}
\captionsetup[figure]{labelformat=empty}
but no one helped. Am I doing something wrong?
Here's MWE:
\documentclass[nofonts]{tufte-book}
\usepackage{polyglossia}
\setdefaultlanguage{russian}
\usepackage{fontspec}
\setmainfont{Palatino Linotype}
\usepackage{caption}
\begin{document}
\begin{figure}
\includegraphics[scale=0.75]{square.png}
\caption{Foto}
\end{figure}
\end{document}
Best Answer
If you want to remove only "Fig." (in Russian "Рис."), then
in the document preamble will print the caption as
If instead you want to get rid also of the number and the colon, a slightly more complicated patch is required: the whole
\@caption
command must be modified.With this code you'll get only
Here's a complete example:
The package
caption
can't be used becausetufte-book
redefines the code for captions in an incompatible way.In case you want no prefix and no number, but still want a list of figures (of course without the numbers), add also the following code before
\makeatother
:The captions in the list will be links to the actual figure.