키를 기준으로 캡션을 분할합니까?

키를 기준으로 캡션을 분할합니까?

전체 텍스트 영역뿐만 아니라 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) \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}

그림을 자르는 것은 어려울 것입니다. 이는 공유된 그림이므로 두 가지 버전을 유지해야 하며 다른 버전에서는 수행하는 작업에 대해 전체 페이지 그림이 필요합니다.

또한 자르기는 어쨌든 내 문제를 해결하지 못하는 것 같습니다. 단지 캡션을 위로 이동하기 위해 (-) 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}

관련 정보