
나는 caption
패키지를 사용하여 위의 그림 제목과 그림 아래의 참고 사항을 표시합니다. 나는 팔로우한다이 제안caption*
적절한 설정으로 명령을 호출하는 새 명령을 정의합니다 . 그런데 그림과 메모(다른 캡션) 사이의 공간이 너무 넓습니다. 어떻게 하면 더 작게 만들 수 있나요? 설정 skip
은 공간만을 바꾼다~ 후에메모. 직접 지정하려고 했지만 abovecaptionskip
"캡션' 계열에 정의되지 않았습니다."
다음은 제가 사용하는 관련 코드 덩어리이며, 아래 스크린샷은 제가 줄이고 싶은 공간을 강조 표시한 부분입니다.
# 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}