
Estoy usando el comando \usepackage[font=footnotesize]{caption}
para cambiar el tamaño de fuente del título de mis figuras. Esto funciona bien si el título ocupa solo una línea. Pero si un título es muy largo y ocupa más de dos líneas, el tamaño de fuente de la segunda línea permanece sin cambios. ¿Cómo puedo arreglar esto?
\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}
Respuesta1
Compara el contenido del título con el texto del documento, es decir, su título finaliza inmediatamente después del comando \hyperref[a]{(\ref*{a})}
. Dot ya estaba sin subtítulos.
Ver:
\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}
Como puede ver, \hyperref[a]{(\ref*{a})}
no cambia el tamaño de fuente del texto de los subtítulos.