This post explains how to get rid of captions for all figures in tufte-book class, but I need to remove captions just for figures which don't have caption. marginfigure environment has no problem with it and when the figure has no caption, it just prints its label (e.g. Figure 1:).
Now my question is how to do with figure environment (having figure with label). A sample code is like as the following:
\documentclass{tufte-book}
\usepackage{graphicx}
\begin{document}
\begin{figure}
\begin{center}
\includegraphics[scale=1]{sine.pdf}
\caption{I have no text for this caption and need to only print the
label.} %%% When I use \caption{}, I get nothing!
%\caption{}
\label{fig:figureX}
\end{center}
\end{figure}
\end{document}
figureenvironment at all (just put\includegraphicsor\begin{tikzpicture}etc. directly at the preferred position in the document). – Marijn Oct 06 '17 at 08:22\caption{ }) which generates a label (but is not displayed itself). – Marijn Oct 06 '17 at 13:30