
Ich hoffe, es geht dir gut. Ich habe versucht, die Schriftgröße der Überschrift zu ändern, indem ich
\DeclareCaptionFormat{myformat}{\fontsize{8}{6}\selectfont#1#2#3}
\captionsetup{format=myformat}
aber ich habe das Format verloren und jetzt ist ungefähr Folgendes da:
Fig. 1. caption caption caption caption caption caption caption
während ich so etwas will:
Fig. 1. caption caption caption caption caption caption
Kann mir jemand helfen?
Antwort1
Sie können Ihre eigenen Schriftbefehle definieren:
\documentclass{article}
\usepackage{caption}
\DeclareCaptionFont{myfont}{\fontsize{8}{10}\selectfont}
\captionsetup{format=hang,font=myfont}
\begin{document}
\begin{figure}
text text
\caption[toc]{hang hang hang\\hang hang hang}
\end{figure}
\end{document}
Randbemerkung: Die zweite Zahl im Argument fontsize sollte immer größer sein als die erste, sie beschreibt den Abstand der Zeilen.