迷你页面内的标题

迷你页面内的标题

我希望将图标题(说明)包含在图下方的脚注中,而不是上方。我通常使用 minipage 命令,认为在下方包含说明会破坏我的对齐。我在下面包含了我的代码:

\begin{figure}[H]
%{\caption*{Historical Output and Welfare Multipliers\label{figure:historical_mult}}}
%\caption{HISTORICAL OUTPUT AND WELFARE MULTIPLIERS\label{figure:historical_mult}}
\vspace{-5mm}
\begin{center}
\includegraphics[height=4in,width=6in]{multiplier_graph.pdf}
\end{center}
\vspace{-15mm}
\hfill\begin{minipage}[t]{140mm}
\captionof{figure}{Historical output and welfare multipliers.\label{figure:historical_mult}}

{Big long footnote text.}

\end{minipage}
\end{figure}

任何帮助将不胜感激!

答案1

使用 threeparttablex,您可以得到您想要的东西,如果我理解得没错的话:您可以在图下添加标题,然后添加与表格宽度相同的注释。为此,需要使用环境measuredfigure。由于环境中的标签似乎存在错误measuredfigure,我不得不定义一个\fakecaption命令来使其\ label工作。以下是代码:

    \documentclass[12pt]{article}
    \usepackage[utf8]{inputenc}
    \usepackage{lmodern}

    \usepackage[draft]{graphicx}
    \usepackage{caption, threeparttablex, float}%
    \captionsetup{position = below, labelfont = bf, textfont = it}
    \DeclareCaptionFormat{empty}{\relax}
    \newcommand*\fakecaption{\addtocounter{figure}{-1}\captionsetup{format=empty, skip=0pt}\caption{}}
    \usepackage{cleveref}

    \begin{document}

    Text text text text text text text text text text text text text text text text text text text text text text text text text.

    \begin{figure}[H]
    \centering
    \begin{measuredfigure}
    \includegraphics[height=3in,width=4in]{multiplier_graph.pdf}
      \caption{Historical output and welfare multipliers.}
     \bigskip
    \begin{tablenotes}[flushleft]%
    \item\hskip-\labelsep A very long footnote text. A very long footnote text. A very long footnote text. A very long footnote text.
    \end{tablenotes}
    \end{measuredfigure}
    \fakecaption\label{figure:historical_mult}
    \end{figure}

    \noindent As we can see from \cref{figure:historical_mult}, …

    \end{document} 

在此处输入图片描述

答案2

当其他一切都失败时,你总是可以写下自己的标题。

\documentclass{article}
\usepackage[margin=1in]{geometry}
%\usepackage{caption}
\usepackage{graphicx}
\usepackage{mwe}
\usepackage{hyperref}

\newif\iffigure
\newif\iftable

\newcommand{\widecaptionof}[2]% #1=figure/table, #2=text
{\refstepcounter{#1}%
\begingroup% trying not to load other packages
\def\a{#1}%
\def\b{figure}%
\ifx\a\b\global\figuretrue\else\global\figurefalse\fi%
\def\b{table}%
\ifx\a\b\global\tabletrue\else\global\tablefalse\fi%
\endgroup%
\iffigure%
  \addcontentsline{lof}{figure}{#2}%
  \textbf{Figure \thefigure: }{#2}%
\fi%
\iftable%
  \addcontentsline{lot}{table}{#2}%
  \textbf{Table \thetable: }{#2}%
\fi%
\par\medskip}

\begin{document}
\listoffigures

\bigskip
See \ref{figure:historical_mult} for details.

\begin{figure}[H]
%{\caption*{Historical Output and Welfare Multipliers\label{figure:historical_mult}}}
%\caption{HISTORICAL OUTPUT AND WELFARE MULTIPLIERS\label{figure:historical_mult}}
%\vspace{-5mm}
\begin{center}
\includegraphics[height=4in,width=6in]{example-image}
\end{center}
%\vspace{-15mm}
\hfil\begin{minipage}{140mm}
\widecaptionof{figure}{Historical output and welfare multipliers.}
\label{figure:historical_mult}
Big long footnote text.
\end{minipage}
\end{figure}

\end{document}

定制广告

相关内容