
パッケージでキャプション番号を非表示にするにはどうすればいいですか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}
出力: