`\\`가 `\caption`에서 새 줄을 시작하지 않는 경우는 언제입니까?

`\\`가 `\caption`에서 새 줄을 시작하지 않는 경우는 언제입니까?

에서 명령 사용캡션에 사용될 때 매개변수가 두 배로 늘어나는 이유는 무엇입니까?, 대부분의 경우 작동하지만 일부 경우(예: 20개 중 1개) \\새 줄을 시작하지 않습니다.

예를 들어

\begin{table}
\centering%
\begin{tabular}{llllll}
\hline
\textbf{Bezeichnung} & \textbf{x} & \textbf{y} & \textbf{z} &
$\mathbf{u'_N}$ & $\mathbf{v'_N}$ \\
\hline
... & ... & ... & ... & ... & ...
%...
\hline
\end{tabular}
\caption[Koordinaten ausgewählter Weißpunkte]%
{\label{\Lt{Weisspunkte}}Koordinaten ausgewählter Weißpunkte%
\FS[Quelle]{\cite[S.~279]{poynton_digital_2012}\index{Illuminant}}}
\end{table}

표에서 Quelle다음과 같이 앞에 새 줄을 시작하지 않습니다(노란색 줄 참조, 중요한 부분을 강조하고 이미지 압축을 개선하기 위해 페이지의 나머지 부분을 픽셀화함). 샘플 페이지의 모습

또는 자세히 표시됩니다.

세부정보: 줄 바꿈이 삽입되지 않았습니다.

동일한 명령이 표 위 그림에서 "Bildquelle:" 앞에 줄바꿈을 삽입한다는 점에 유의하세요. 비슷한 문제에 대한 참조를 찾을 수 없습니다. 페이지의 수직 공간이 좁은 경우 LaTeX가 줄 바꿈을 피하려고 시도한 것일 수 있습니까?

추가사항

을(를) 찾지 못한 분들을 위해 \\다음과 같습니다(참조 답변).

\newcommand{\FS}[2][Bildquelle]{%
  \protect\ifthenelse{\equal{#1}{}}%
    {\protect\\{\protect\scriptsize{}#2}}
    {\protect\\{\protect\scriptsize{}#1: #2}}}

새 페이지에 표 6.1을 강제 적용해도 동작이 변경되지 않았습니다. 캡션 텍스트를 조금 더 길거나 짧게 만들어도 동작이 변경되지 않았습니다. 그러나 캡션을 다음으로 변경했을 때

\caption[Koordinaten ausgewählter Weißpunkte]%
{\label{\Lt{Weisspunkte}}Lorem ipsum Koordinaten ausgewählter Weißpunkte%
\FS[Quelle]{\cite[S.~279]{poynton_digital_2012}\index{Illuminant}}}

그런 다음 테이블이 다음 페이지로 이동하고 줄바꿈이 삽입되었습니다.

"Lorem ipsum"으로 캡션을 수정하세요.

MWE

마지막으로 MWE를 만들었습니다(pdflatex, 실제로는 예상보다 쉬웠습니다).

\documentclass[a4paper,twoside]{report}
\usepackage[german]{babel}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{ifthen}
\usepackage[pdftex,colorlinks,hypertexnames=false]{hyperref}
\usepackage{makeidx}
\usepackage{showidx}
\newcommand{\FS}[2][Bildquelle]{%
\protect\ifthenelse{\equal{#1}{}}{%
\protect\\*{\protect\scriptsize{}#2}}{%
\protect\\*{\protect\scriptsize{}#1: #2}}}
\begin{document}
%
\begin{table}
\centering%
\begin{tabular}{llllll}
\hline
\textbf{Bezeichnung} & \textbf{x} & \textbf{y} & \textbf{z} &
$\mathbf{u'_N}$ & $\mathbf{v'_N}$ \\
\hline
A & B & C & D & E & F \\
A & B & C & D & E & F \\
A & B & C & D & E & F \\
A & B & C & D & E & F \\
\hline
\end{tabular}
\caption[Koordinaten ausgewählter Weißpunkte]%
{\label{Weisspunkte}Koordinaten ausgewählter Weißpunkte%
\FS[Quelle]{[Poy12, S.~279]\index{Illuminant}}}
\end{table}
%
\begin{table}
\centering%
\begin{tabular}{llllll}
\hline
\textbf{Bezeichnung} & \textbf{x} & \textbf{y} & \textbf{z} &
$\mathbf{u'_N}$ & $\mathbf{v'_N}$ \\
\hline
A & B & C & D & E & F \\
\hline
\end{tabular}
\caption[Koordinaten ausgewählter Weißpunkte]%
{\label{Weisspunkte2}Koordinaten ausgewählter Weißpunkte%
\FS[Quelle]{[Poy12, S.~279]\index{Illuminant}}}
\end{table}
\end{document}

다음과 같습니다: MWE 출력의 일부

해결책(https://tex.stackexchange.com/a/518731/182650)

추가한 후

\usepackage[font=small,labelfont={sf,bf},position=bottom,singlelinecheck=false]%
{caption}

MWE의 결과는 다음과 같습니다. 제게는 괜찮습니다. 여기에 이미지 설명을 입력하세요

답변1

여기에 이미지 설명을 입력하세요

예제를 단순화할 수 있습니다.

\documentclass[a4paper,twoside]{report}

\begin{document}
\begin{table}
\caption[]{aaaaaaaaaaa aaaaaa
ccccccccccccccc bbbbbbbbbbbbbbb \\ 
dddddddddddddd}
\end{table}
%
\begin{table}

\caption[]{aaaaa\\bbb}
\end{table}
\end{document}

대부분의 클래스는 두 가지 스타일로 캡션을 설정합니다. 첫 번째는 기본적으로 \mbox텍스트 상자에 맞으면 중앙에 있는 한 줄에 있습니다( \\mbox에서는 아무 작업도 수행하지 않음). 해당 상자가 너무 넓어서 한 줄에 맞지 않으면 삭제되고 에서 다시 설정한 캡션이 \parbox두 번째 형식을 사용하면 \\작동합니다.

패키지 caption에는 여기에서 원하는 경우 한 줄 테스트를 건너뛸 수 있는 옵션이 있습니다.

관련 정보