
私はcaption
パッケージを使って、図の上に図のタイトルを、図の下に注釈を記載しています。この提案適切な設定でコマンドを呼び出す新しいコマンドを定義しますcaption*
。しかし、図と注釈(別のキャプション)の間のスペースが大きすぎます。どうすれば小さくできますか?設定はskip
スペースのみを変更します後メモ。abovecaptionskip
直接指定しようとしましたが、「ファミリ `caption' では未定義です」。
以下は私が使用する関連コード チャンクです。また、減らしたいスペースを強調表示した場所に生成されたスクリーンショットも下にあります。
# preamble
\usepackage[bf, justification=centering]{caption}
\newcommand\fnote[1]{\captionsetup{font=small,justification=justified}\caption*{#1}}
# figure
\begin{figure}[htb]
\caption{Comparison of the retirement effect estimate by gender}
\begin{center}
\includegraphics[width=\textwidth]{figure}
\end{center}
\fnote{{\it Notes:} The dots ...}
\end{figure}
答え1
環境を使用せずcenter
、グラフィックの下の凡例には使用せず、キャプションと図の間の距離を短くするように\caption*
指示します。\captionsetup{skip=0.333\baselineskip}
\documentclass{article}
\usepackage[demo]{graphicx} % omit 'demo' option in real document
\usepackage[justification=centering,
labelfont=bf,
skip=0.333\baselineskip]{caption}
\begin{document}
\begin{figure}[htb]
\caption{Comparison of the retirement effect estimate by gender}
\includegraphics[width=\textwidth]{figfile}
\smallskip\small
\textit{Notes}: The dots represent $\hat{\beta}$, the lines \dots
\end{figure}
\end{document}