
\usepackage[font=footnotesize]{caption}
내 그림 캡션의 글꼴 크기를 변경하기 위해 명령을 사용하고 있습니다 . 캡션이 한 줄만 넘어가면 제대로 작동합니다. 그러나 캡션이 매우 길어 두 줄을 넘는 경우 두 번째 줄의 글꼴 크기는 변경되지 않습니다. 이 문제를 어떻게 해결할 수 있나요?
\documentclass[11pt,letterpaper,colorlinks=true,linkcolor=blue,citecolor=blue,urlcolor=blue]{scrartcl}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage[english]{babel}
\usepackage{hyperref}
\usepackage{graphicx}
\usepackage[font=footnotesize]{caption}
\begin{document}
\begin{equation} \label{a}
A
\end{equation}
\begin{table}
\centering
\begin{tabular}{|p{0.9\linewidth}|}
\hline A \\ \hline
\end{tabular}
\caption{This text here is in footnotesize as required. Now comes a reference \hyperref[a]{(\ref*{a})}}. Why is this text and the reference \hyperref[a]{(\ref*{a})} large? And why does LaTeX make the linebreak before the dot?
\end{table}
\end{document}
답변1
캡션 내용을 문서 텍스트와 비교합니다. 즉, 캡션은 명령 직후에 완료됩니다 \hyperref[a]{(\ref*{a})}
. Dot은 이미 캡션을 벗어났습니다.
보다:
\documentclass[11pt,letterpaper,
colorlinks=true,linkcolor=blue,citecolor=blue,
urlcolor=blue]{scrartcl}
\usepackage{lmodern}
\usepackage[english]{babel}
\usepackage[font=footnotesize]{caption}
\usepackage{hyperref}
\usepackage{lipsum}
\begin{document}
\begin{equation} \label{a}
A
\end{equation}
\begin{table}[h]
\centering
\begin{tabular}{|p{0.9\linewidth}|}
\hline A \\ \hline
\end{tabular}
\caption{This text here is in \texttt{footnotesize} as required. Now comes a reference \hyperref[a]{(\ref*{a})}% <--- here was end of caption!!!
. Why is this text and the reference large? Because this part of text was not included in caption!}
\end{table}
\lipsum[66]
\end{document}
보시다시피 \hyperref[a]{(\ref*{a})}
캡션 텍스트 글꼴 크기는 변경되지 않습니다.