나는 그림 내에서 여러 가지 기술에 대한 설문조사를 하고 싶습니다. 많은 기술이 있다는 것이 밝혀졌기 때문에 문제를 설명하기 위해 하위 참조가 있는 하위 캡션을 사용했습니다. 그러나 레이블이 너무 많기 때문에 \\\hspace{textwidth}
줄 바꿈 해결 방법을 사용하여 각 설명을 한 줄에 넣는 것이 편리하다는 것을 알았습니다. 이미지 아래 하위 캡션에 정보를 넣고 싶지 않습니다. 마음에 들지 않고 전체 문서의 형식이 깨질 수 있기 때문입니다. 하위 캡션이 있는 경우 \subref
그림 캡션 내에서 해당 레이블( ) 을 참조하겠습니다. . 하위 참조 레이블은 다른 너비를 사용하므로 캡션의 왼쪽이 상당히 들쭉날쭉하고 각진 것처럼 보입니다. MWE:
\documentclass[oneside,DIV=17]{scrbook}
\usepackage[font={scriptsize,sf},labelfont={scriptsize,sf,bf}]{caption}
\usepackage[subrefformat=parens,labelfont={normalfont,scriptsize,sf},labelsep=space]{subcaption}
\setcapindent{0pt}
\begin{document}
\begin{figure}
\subcaptionbox{\label{fig:a}}{\rule{0.3\textwidth}{0.25\textwidth}}\hfill
\subcaptionbox{\label{fig:b}}{\rule{0.3\textwidth}{0.25\textwidth}}\hfill
\subcaptionbox{\label{fig:c}}{\rule{0.3\textwidth}{0.25\textwidth}}\par
\subcaptionbox{\label{fig:d}}{\rule{0.3\textwidth}{0.25\textwidth}}\hfill
\subcaptionbox{\label{fig:e}}{\rule{0.3\textwidth}{0.25\textwidth}}\hfill
\subcaptionbox{\label{fig:f}}{\rule{0.3\textwidth}{0.25\textwidth}}\par
\subcaptionbox{\label{fig:g}}{\rule{0.3\textwidth}{0.25\textwidth}}\hfill
\subcaptionbox{\label{fig:h}}{\rule{0.3\textwidth}{0.25\textwidth}}\hfill
\subcaptionbox{\label{fig:i}}{\rule{0.3\textwidth}{0.25\textwidth}}\par
\subcaptionbox{\label{fig:j}}{\rule{0.3\textwidth}{0.25\textwidth}}\hfill
\subcaptionbox{\label{fig:k}}{\rule{0.3\textwidth}{0.25\textwidth}}\hfill
\hspace{0.3\textwidth}
\caption{Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut purus elit, vestibulum ut, placerat ac, adipiscing vitae, felis.
Curabitur dictum gravida mauris. Nam arcu libero, nonummy eget, consectetuer id, vulputate a, magna. Donec vehicula augue eu neque.
Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Mauris ut leo. Cras viverra metus rhoncus
sem. Nulla et lectus vestibulum urna fringilla ultrices.\\\hspace{\textwidth}
\subref{fig:a} Short text fit in one line\\\hspace{\textwidth}
\subref{fig:b} Short text fit in one line\\\hspace{\textwidth}
\subref{fig:c} Short text fit in one line\\\hspace{\textwidth}
\subref{fig:d} Short text fit in one line\\\hspace{\textwidth}
\subref{fig:e} Short text fit in one line\\\hspace{\textwidth}
\subref{fig:f} Short text fit in one line\\\hspace{\textwidth}
\subref{fig:g} Short text fit in one line\\\hspace{\textwidth}
\subref{fig:h} Short text fit in one line\\\hspace{\textwidth}
\subref{fig:i} Short text fit in one line\\\hspace{\textwidth}
\subref{fig:j} Short text fit in one line\\\hspace{\textwidth}
\subref{fig:k} Short text fit in one line
}
\end{figure}
\end{document}
이는 다음과 같이 렌더링됩니다(빨간색 선은 문제를 강조함).
캡션 텍스트를 줄바꿈하지 않으면 모든 것이 괜찮을 것입니다. 그러나 나는 독자가 열에서 설명을 선택한 다음 텍스트 내의 레이블 항목을 검색하는 것이 더 쉬울 것이라고 주장합니다. 어떤 제안이라도 보내주셔서 감사합니다.
답변1
그러한 캡션이 포함된 문서의 그림 목록을 인쇄할 필요가 없기를 바랍니다... 그런 경우에는 다음의 선택적 인수를 사용하는 것을 기억하십시오 \caption
.
\caption[short caption]{long caption}
여기에 세 가지 대안이 있습니다.
첫 번째 대안:
\documentclass[oneside,DIV=17]{scrbook}
\usepackage[font={scriptsize,sf},labelfont={scriptsize,sf,bf}]{caption}
\usepackage[subrefformat=parens,labelfont={normalfont,scriptsize,sf},labelsep=space]{subcaption}
\setcapindent{0pt}
\begin{document}
\begin{figure}
\subcaptionbox{\label{fig:a}}{\rule{0.3\textwidth}{0.25\textwidth}}\hfill
\subcaptionbox{\label{fig:b}}{\rule{0.3\textwidth}{0.25\textwidth}}\hfill
\subcaptionbox{\label{fig:c}}{\rule{0.3\textwidth}{0.25\textwidth}}\par
\subcaptionbox{\label{fig:d}}{\rule{0.3\textwidth}{0.25\textwidth}}\hfill
\subcaptionbox{\label{fig:e}}{\rule{0.3\textwidth}{0.25\textwidth}}\hfill
\subcaptionbox{\label{fig:f}}{\rule{0.3\textwidth}{0.25\textwidth}}\par
\subcaptionbox{\label{fig:g}}{\rule{0.3\textwidth}{0.25\textwidth}}\hfill
\subcaptionbox{\label{fig:h}}{\rule{0.3\textwidth}{0.25\textwidth}}\hfill
\subcaptionbox{\label{fig:i}}{\rule{0.3\textwidth}{0.25\textwidth}}\par
\subcaptionbox{\label{fig:j}}{\rule{0.3\textwidth}{0.25\textwidth}}\hfill
\subcaptionbox{\label{fig:k}}{\rule{0.3\textwidth}{0.25\textwidth}}\hfill
\hspace{0.3\textwidth}
\caption{Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut purus elit, vestibulum ut, placerat ac, adipiscing vitae, felis.
Curabitur dictum gravida mauris. Nam arcu libero, nonummy eget, consectetuer id, vulputate a, magna. Donec vehicula augue eu neque.
Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Mauris ut leo. Cras viverra metus rhoncus
sem. Nulla et lectus vestibulum urna fringilla ultrices.\\
\llap{\subref{fig:a}} Short text fit in one line\\
\llap{\subref{fig:b}} Short text fit in one line\\
\llap{\subref{fig:c}} Short text fit in one line\\
\llap{\subref{fig:d}} Short text fit in one line\\
\llap{\subref{fig:e}} Short text fit in one line\\
\llap{\subref{fig:f}} Short text fit in one line\\
\llap{\subref{fig:g}} Short text fit in one line\\
\llap{\subref{fig:h}} Short text fit in one line\\
\llap{\subref{fig:i}} Short text fit in one line\\
\llap{\subref{fig:j}} Short text fit in one line\\
\llap{\subref{fig:k}} Short text fit in one line
}
\end{figure}
\end{document}
두 번째 대안:
\documentclass[oneside,DIV=17]{scrbook}
\usepackage[font={scriptsize,sf},labelfont={scriptsize,sf,bf}]{caption}
\usepackage[subrefformat=parens,labelfont={normalfont,scriptsize,sf},labelsep=space]{subcaption}
\setcapindent{0pt}
\begin{document}
\begin{figure}
\subcaptionbox{\label{fig:a}}{\rule{0.3\textwidth}{0.25\textwidth}}\hfill
\subcaptionbox{\label{fig:b}}{\rule{0.3\textwidth}{0.25\textwidth}}\hfill
\subcaptionbox{\label{fig:c}}{\rule{0.3\textwidth}{0.25\textwidth}}\par
\subcaptionbox{\label{fig:d}}{\rule{0.3\textwidth}{0.25\textwidth}}\hfill
\subcaptionbox{\label{fig:e}}{\rule{0.3\textwidth}{0.25\textwidth}}\hfill
\subcaptionbox{\label{fig:f}}{\rule{0.3\textwidth}{0.25\textwidth}}\par
\subcaptionbox{\label{fig:g}}{\rule{0.3\textwidth}{0.25\textwidth}}\hfill
\subcaptionbox{\label{fig:h}}{\rule{0.3\textwidth}{0.25\textwidth}}\hfill
\subcaptionbox{\label{fig:i}}{\rule{0.3\textwidth}{0.25\textwidth}}\par
\subcaptionbox{\label{fig:j}}{\rule{0.3\textwidth}{0.25\textwidth}}\hfill
\subcaptionbox{\label{fig:k}}{\rule{0.3\textwidth}{0.25\textwidth}}\hfill
\hspace{0.3\textwidth}
\caption{Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut purus elit, vestibulum ut, placerat ac, adipiscing vitae, felis.
Curabitur dictum gravida mauris. Nam arcu libero, nonummy eget, consectetuer id, vulputate a, magna. Donec vehicula augue eu neque.
Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Mauris ut leo. Cras viverra metus rhoncus
sem. Nulla et lectus vestibulum urna fringilla ultrices.\\
\protect\makebox[.5cm]{\subref{fig:a}} Short text fit in one line\\
\protect\makebox[.5cm]{\subref{fig:b}} Short text fit in one line\\
\protect\makebox[.5cm]{\subref{fig:c}} Short text fit in one line\\
\protect\makebox[.5cm]{\subref{fig:d}} Short text fit in one line\\
\protect\makebox[.5cm]{\subref{fig:e}} Short text fit in one line\\
\protect\makebox[.5cm]{\subref{fig:f}} Short text fit in one line\\
\protect\makebox[.5cm]{\subref{fig:g}} Short text fit in one line\\
\protect\makebox[.5cm]{\subref{fig:h}} Short text fit in one line\\
\protect\makebox[.5cm]{\subref{fig:i}} Short text fit in one line\\
\protect\makebox[.5cm]{\subref{fig:j}} Short text fit in one line\\
\protect\makebox[.5cm]{\subref{fig:k}} Short text fit in one line
}
\end{figure}
\end{document}
세 번째 대안:
\documentclass[oneside,DIV=17]{scrbook}
\usepackage[font={scriptsize,sf},labelfont={scriptsize,sf,bf}]{caption}
\usepackage[subrefformat=parens,labelfont={normalfont,scriptsize,sf},labelsep=space]{subcaption}
\setcapindent{0pt}
\begin{document}
\begin{figure}
\subcaptionbox{\label{fig:a}}{\rule{0.3\textwidth}{0.25\textwidth}}\hfill
\subcaptionbox{\label{fig:b}}{\rule{0.3\textwidth}{0.25\textwidth}}\hfill
\subcaptionbox{\label{fig:c}}{\rule{0.3\textwidth}{0.25\textwidth}}\par
\subcaptionbox{\label{fig:d}}{\rule{0.3\textwidth}{0.25\textwidth}}\hfill
\subcaptionbox{\label{fig:e}}{\rule{0.3\textwidth}{0.25\textwidth}}\hfill
\subcaptionbox{\label{fig:f}}{\rule{0.3\textwidth}{0.25\textwidth}}\par
\subcaptionbox{\label{fig:g}}{\rule{0.3\textwidth}{0.25\textwidth}}\hfill
\subcaptionbox{\label{fig:h}}{\rule{0.3\textwidth}{0.25\textwidth}}\hfill
\subcaptionbox{\label{fig:i}}{\rule{0.3\textwidth}{0.25\textwidth}}\par
\subcaptionbox{\label{fig:j}}{\rule{0.3\textwidth}{0.25\textwidth}}\hfill
\subcaptionbox{\label{fig:k}}{\rule{0.3\textwidth}{0.25\textwidth}}\hfill
\hspace{0.3\textwidth}
\caption{Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut purus elit, vestibulum ut, placerat ac, adipiscing vitae, felis.
Curabitur dictum gravida mauris. Nam arcu libero, nonummy eget, consectetuer id, vulputate a, magna. Donec vehicula augue eu neque.
Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Mauris ut leo. Cras viverra metus rhoncus
sem. Nulla et lectus vestibulum urna fringilla ultrices.\\
\protect\makebox[.5cm][l]{\subref{fig:a}} Short text fit in one line\\
\protect\makebox[.5cm][l]{\subref{fig:b}} Short text fit in one line\\
\protect\makebox[.5cm][l]{\subref{fig:c}} Short text fit in one line\\
\protect\makebox[.5cm][l]{\subref{fig:d}} Short text fit in one line\\
\protect\makebox[.5cm][l]{\subref{fig:e}} Short text fit in one line\\
\protect\makebox[.5cm][l]{\subref{fig:f}} Short text fit in one line\\
\protect\makebox[.5cm][l]{\subref{fig:g}} Short text fit in one line\\
\protect\makebox[.5cm][l]{\subref{fig:h}} Short text fit in one line\\
\protect\makebox[.5cm][l]{\subref{fig:i}} Short text fit in one line\\
\protect\makebox[.5cm][l]{\subref{fig:j}} Short text fit in one line\\
\protect\makebox[.5cm][l]{\subref{fig:k}} Short text fit in one line
}
\end{figure}
\end{document}
답변2
표 형식을 사용하세요.
\documentclass{article}
\usepackage{lipsum}
\usepackage[font={scriptsize,sf},labelfont={scriptsize,sf,bf}]{caption}
\usepackage[subrefformat=parens,labelfont={normalfont,scriptsize,sf},labelsep=space]{subcaption}
\begin{document}
\begin{figure}
\subcaptionbox{\label{fig:a}}{}\hspace{1cm}~
\subcaptionbox{\label{fig:b}}{}\hspace{1cm}~
\subcaptionbox{\label{fig:c}}{}\hspace{1cm}~
\subcaptionbox{\label{fig:d}}{}\hspace{1cm}~
\subcaptionbox{\label{fig:e}}{}\hspace{1cm}~
\subcaptionbox{\label{fig:f}}{}\hspace{1cm}~
\subcaptionbox{\label{fig:g}}{}\hspace{1cm}~
\subcaptionbox{\label{fig:h}}{}\hspace{1cm}~
\subcaptionbox{\label{fig:i}}{}\hspace{1cm}~
\subcaptionbox{\label{fig:j}}{}
\caption{\protect\lipsum[1]\smallskip
\protect\tabular{@{}l @{~} l@{}}
\subref{fig:a} & Short text fit in one line\\
\subref{fig:b} & Short text fit in one line\\
\subref{fig:c} & Short text fit in one line\\
\subref{fig:d} & Short text fit in one line\\
\subref{fig:e} & Short text fit in one line\\
\subref{fig:f} & Short text fit in one line\\
\subref{fig:g} & Short text fit in one line\\
\subref{fig:h} & Short text fit in one line\\
\subref{fig:i} & Short text fit in one line\\
\subref{fig:j} & Short text fit in one line
\protect\endtabular
}
\end{figure}
\end{document}