
Estou utilizando o comando \usepackage[font=footnotesize]{caption}
para alterar o tamanho da fonte da legenda das minhas figuras. Isso funciona bem se a legenda ultrapassar apenas uma linha. Mas se uma legenda for muito longa e ultrapassar duas linhas, o tamanho da fonte da segunda linha permanece inalterado. Como posso consertar isso?
\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}
Responder1
Você compara o conteúdo da legenda com o texto do documento, ou seja, sua legenda é finalizada imediatamente após o comando \hyperref[a]{(\ref*{a})}
. Dot já estava sem legenda.
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 você pode ver, \hyperref[a]{(\ref*{a})}
isso não altera o tamanho da fonte do texto da legenda.