Caption über Seitenumbruch

Tabellen und Grafiken erstellen und anordnen


Wntfrizzled
Forum-Anfänger
Forum-Anfänger
Beiträge: 11
Registriert: Do 5. Sep 2013, 10:22

Caption über Seitenumbruch

Beitrag von Wntfrizzled »

Hallo zusammen,

ich habe mit meiner sehr langen Bildbeschriftung zu kämpfen. Meine Bildbeschriftung missachtet den unteren Seitenrand und wird auf der nächsten Seite nicht weitergführt.

Ich wäre sehr froh wenn mir jemand zeigen könnte wie man die caption seitenübergreifend hinbekommmt.
\documentclass[12pt,a4paper,fleqn]{report}
\usepackage[a4paper, left=2.5cm, right=2.5cm, top=2.5cm, bottom=3cm]{geometry}
\usepackage{graphicx}
\usepackage[format=plain,labelfont=bf]{caption}

\begin{document}

\begin{figure}[t]
\centering
\includegraphics{lena.jpg}
\caption[test] {\textbf{Long caption}\\
test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption test long caption } 
\label{lena}
\end{figure}

\end{document}
Vielen Dank!

Benutzeravatar
u_fischer
Forum-Meister
Forum-Meister
Beiträge: 4266
Registriert: Do 22. Nov 2012, 11:09
Kontaktdaten:

Beitrag von u_fischer »

Ich wäre sehr froh wenn mir jemand zeigen könnte wie man die caption seitenübergreifend hinbekommmt.
In der figure-Umgebung gibt es keinen Seitenumbruch. Und \caption/\captionof wird normalerweise in einer Box gesetzt, dort gibt es also auch keinen Umbruch. Du kannst aber sowas machen:

Bild
\captionof{figure}{Nicht ganz so lange Caption}
weiterer Text.

Wntfrizzled
Forum-Anfänger
Forum-Anfänger
Beiträge: 11
Registriert: Do 5. Sep 2013, 10:22

Beitrag von Wntfrizzled »

Danke für den input, habe es mit \captionof und \captionsetup[figure]{labelformat=empty} gelöst.
\documentclass[12pt,a4paper,fleqn]{report}
\usepackage[a4paper, left=2.5cm, right=2.5cm, top=2.5cm, bottom=3cm]{geometry}
\usepackage{graphicx}
\usepackage[format=plain,labelfont=bf]{caption}
\usepackage{capt-of}
\captionsetup[figure]{labelformat=empty}
\usepackage[onehalfspacing]{setspace}

\begin{document}

\begin{figure}[t]
\centering
\includegraphics{lena.jpg}
\caption[test] {\textbf{Long caption}\\
Caption bis zum Seitenende...} %1 Zeilenabstand
\label{test}
\end{figure}
\clearpage
\captionof{figure}[test]{...Fortsetzung der caption} %1 Zeilenabstand
\vspace*{1cm}

\noindent Random text Random text Random text Random text Random text Random text Random text Random text Random text Random text Random text Random text Random text Random text Random text Random text Random text Random text Random text Random text  %1.5 Zeilenabstand
\end{document} 

Besserwisser

Beitrag von Besserwisser »

Mal eine blöde Frage: Wofür brauchst Du eine so lange Bildunterschrift? Bist Du sicher, dass dem Leser nicht mehr gedient wäre, wenn Du Dich an der Stelle etwas kürzer fassen würdest und dann stattdessen im eigentlichen Dokumenttext beispielsweise im Rahmen des ersten Verweises auf diese Abbildung etwas näher auf das Bild eingehen würdest?

Wntfrizzled
Forum-Anfänger
Forum-Anfänger
Beiträge: 11
Registriert: Do 5. Sep 2013, 10:22

Beitrag von Wntfrizzled »

Ich verstehe, dass es einigen seltsam erschein eine lange Bildunterschrift zu verfassen, aber in der Wissenschaft ist es üblich mehrere Grafik in einer Fig zusammen zu präsentieren. Dazu kommt, dass es erwünscht ist den experimentellen Hintergrund nahezubringen ohne dass der Leser gezwungen ist in den materials and methods nachzusehen.

zyx

Re: Caption über Seitenumbruch

Beitrag von zyx »

@Wntfrizzled, wie hast du es geschafft, dass dann trotzdem "Figure x" vor deinen anderen Figuren steht?


Grummelgast

Re: Caption über Seitenumbruch

Beitrag von Grummelgast »

Dazu musst du einfach entweder nach dem \captionof mit \captionsetup wieder das Standardformat einstellen oder gleich die Wirkung von \captionsetup einschränken, indem du das (zusammen mit der \captionof-Anweisung) in eine Gruppe packst. Soll die \caption-Anweisung ebenfalls betroffen sein, so wiederholt man die \captionsetup-Anweisung in der figure-Umgebung.

Ich würde aber in diesem Fall ohnehin gar keine Gleitumgebung verwenden, weil es sonst passieren kann, dass der Text von \captionof vor der Gleitumgebung ausgegeben wird, was sicher nicht erwünscht ist.

Wenn du mehr Hilfe brauchst, dann stell bitte eine neue Frage mit passendem Minimalbeispiel.


zxmiu82

Re: Caption über Seitenumbruch

Beitrag von zxmiu82 »

@Grummelgast
Wenn man \captionsetup nach \captionof wieder auf die vorherige Einstellung umstellt, stimmt die Nummerierung der Figuren nicht mehr - es fehlt eine Zahl. Weißt du, wie man das beheben kann?



Grummelgast

Re: Caption über Seitenumbruch

Beitrag von Grummelgast »

In der Anleitung von caption steht übrigens, wie man per Stern verhindert, dass \caption…-Anweisungen ein Label setzen und den Zähler erhöhen. Es wird alternativ in Abschnitt 3.3 auch erklärt, wie man dieselbe Zahl erneut verwenden kann. Es gibt also viele Möglichkeiten.


Antworten