高さに基づいてキャプションを分割しますか?

高さに基づいてキャプションを分割しますか?

完全なテキスト領域だけでなく、8.5x11 のようなフル ページ図があります。

次の手順で図を追加します。

\begin{figure}[p]
    \vspace*{-1.0in}

    \makebox[\textwidth]{\includegraphics{../02_Figures/IntroductionChapter/Fig01.pdf}}
    \vspace*{-2.0in}
    \caption{Long long caption here. }

\end{figure}

図は問題なく表示され、必要に応じてページの中央に配置されます。

キャプションは上に移動されましたが、非常に長いため、次のページに分割する必要があります。キャプションパッケージと\ContinuedFloatを使用してみました。

\begin{figure}[b]\ContinuedFloat
    \caption{More of long caption here}
\end{figure}

1) キャプションを手動で分割する必要がありますが、図が 100 個近くあるので少し面倒です。指定したパラメータに基づいて最初のキャプションと続くキャプションを自動的に分割するように「キャプションの高さ」を設定する方法はありますか? たとえば、3 行後に分割しますか? または、0.75 インチ後に次の継続フロートに分割しますか?

2) 継続フロートの 2 番目のキャプションに、\footnote{} を使用したときのように、上に小さな線を付けることはできますか?

編集

何が起こっているかを示す MWE があると思います。

\documentclass[12pt]{report}
\usepackage{blindtext}
\usepackage{graphicx}

%   Page Captioning
    \usepackage[font=footnotesize]{caption}
    \DeclareCaptionLabelFormat{continued}{#1 ˜#2 (cont.)} % Define a 'continued' label. Then what the label should look like
    \captionsetup[ContinuedFloat]{labelformat=continued} % Now use that label format for captions of continued floats

%
%   Page Margins and Page Layout
%
    \usepackage[letterpaper]{geometry}

    % Make new variables for what the margins will be.
    \newcommand{\pageMargin}{1.0in}
    \newcommand{\pageMarginLeft}{1.5in}

    %For now, figure vertical offsets just match \pageMargin. And each figure needs to make it's own margin. This could be adjusted to something else though
    \newcommand{\fullFigVOffset}{\pageMargin} 

    % Define page geometry
    \geometry{margin=\pageMargin}

%   Page Spacing
    \usepackage{setspace}
    \doublespacing

\begin{document}

\chapter{Introduction}  

\blindtext[5]
        \begin{figure}[p]
    \vspace*{-\fullFigVOffset} % Note the negative

    \makebox[\textwidth]{\includegraphics[height=11in]{example-image}}

    \vspace*{-\fullFigVOffset} % 
    \vspace*{-\fullFigVOffset} % 

    \caption{\blindtext[3]}

    \label{GInt_01} % Label must come after figure Caption to reference correctly

\end{figure}

\begin{figure}[b]\ContinuedFloat
    \caption{I want the caption above to split at the 'regular' page margins to here.}
\end{figure}

\blindtext[6]

\end{document}

図を切り取るのは困難です。これらは共有の図であり、他の人が自分の作業のために全ページの図を必要とするため、2 つのバージョンを保持する必要があります。

また、切り取りでは問題は解決しないようです。切り取ると、(-) vspace を削除してキャプションを上に移動できるだけです。キャプションはページに対してまだ長すぎるため、分割する必要があります。

答え1

キャプション自体は分割できないので、代わりに内容を分割します。つまり、図1.1そして図1.1(続き)内容とは別の行に配置する必要があります。この行と が含まれるように長さを調整しました\abovecaptionskip

\documentclass[12pt]{report}
\usepackage{blindtext}
\usepackage{graphicx}

%   Page Captioning
    \usepackage[font=footnotesize,labelsep=newline]{caption}
    \DeclareCaptionLabelFormat{continued}{#1 ˜#2 (cont.)} % Define a 'continued' label. Then what the label should look like
    \captionsetup[ContinuedFloat]{labelformat=continued} % Now use that label format for captions of continued floats

\renewcommand{\bottomfraction}{0.7}% for VERY large bottom floats

\newsavebox{\splitbox}
\newsavebox{\contbox}

\newcommand{\splitcaption}[3][\empty]% #1 = short caption (optional), #2 = caption, #3 = length before split
{\bgroup
  \footnotesize 
  \setbox0=\vbox{#2}%
  \dimen0=#3\relax
  \advance\dimen0 by -\baselineskip
  \advance\dimen0 by -\abovecaptionskip
  \setbox1=\vsplit0 to \dimen0
  \global\setbox\splitbox=\box1
  \global\setbox\contbox=\box0
\egroup
\ifx\empty#1\relax
  \caption[#2]{\usebox\splitbox}%
\else 
  \caption[#1]{\usebox\splitbox}%
\fi}

\newcommand{\contcaption}{\ifdim\ht\contbox>0pt
  \begin{figure}[b]\ContinuedFloat
    \footnoterule
    \caption[]{\usebox\contbox}% no entry in LOF
  \end{figure}
\fi}

%
%   Page Margins and Page Layout
%
    \usepackage[letterpaper]{geometry}

    % Make new variables for what the margins will be.
    \newcommand{\pageMargin}{1.0in}
    \newcommand{\pageMarginLeft}{1.5in}

    %For now, figure vertical offsets just match \pageMargin. And each figure needs to make it's own margin. This could be adjusted to something else though
    \newcommand{\fullFigVOffset}{\pageMargin} 

    % Define page geometry
    \geometry{margin=\pageMargin}

%   Page Spacing
    \usepackage{setspace}
    \doublespacing

\begin{document}
\listoffigures

\ref{GInt_01}

\chapter{Introduction}  

\blindtext[5]
        \begin{figure}[p]
    \vspace*{-\fullFigVOffset} % Note the negative

    \makebox[\textwidth]{\includegraphics[height=11in]{example-image}}

    \vspace*{-\fullFigVOffset} % 
    \vspace*{-\fullFigVOffset} % 

    \splitcaption[short caption]{\blindtext[3]}{1in}
    \label{GInt_01}% Label must come after figure Caption to reference correctly
\end{figure}
\contcaption

\blindtext[6]

\end{document}

関連情報