tufte パッケージを使用してキャプション内の図の番号付けを抑制するにはどうすればよいでしょうか?

tufte パッケージを使用してキャプション内の図の番号付けを抑制するにはどうすればよいでしょうか?

パッケージでキャプション番号を非表示にするにはどうすればいいですかtufte? パッケージで試してみましたがcaption、うまくいきませんでしたtufte... ありがとうございます

答え1

序文に次の行を追加します

\makeatletter
\renewcommand\fnum@figure{\figurename}
\makeatother

MWE:

\documentclass{tufte-book}

\makeatletter
\renewcommand\fnum@figure{\figurename}
\makeatother

\begin{document}

\begin{figure}
\caption{A figure}
\end{figure}

\end{document} 

出力:

ここに画像の説明を入力してください

テーブルでも同じ動作をしたい場合は、以下も追加します。

\renewcommand\fnum@table{\tablename}

MWE:

\documentclass{tufte-book}

\makeatletter
\renewcommand\fnum@figure{\figurename}
\renewcommand\fnum@table{\tablename}
\makeatother

\begin{document}

\begin{figure}
\caption{A figure}
\end{figure}

\begin{table}
\caption{A table}
\end{table}

\end{document} 

出力:

ここに画像の説明を入力してください

関連情報