Mengincar ukuran font caption gambar

Sep 12 2020

Saya menggunakan perintah \usepackage[font=footnotesize]{caption}untuk mengubah ukuran font dari caption gambar saya. Ini berfungsi dengan baik jika teks hanya melewati satu baris. Namun jika keterangan sangat panjang dan melebihi dua baris, ukuran font baris kedua tetap tidak berubah. Bagaimana cara memperbaikinya?

\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}

Jawaban

2 Zarko Sep 12 2020 at 04:55

Anda membandingkan konten teks dengan teks dokumen, yaitu teks Anda selesai segera setelah perintah \hyperref[a]{(\ref*{a})}. Dot sudah kehabisan teks.

Lihat:

\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}

Seperti yang Anda lihat, \hyperref[a]{(\ref*{a})}tidak mengubah ukuran font teks teks.