Wrapfigure nicht auf nächste Seite ausdehnen

Tabellen und Grafiken erstellen und anordnen


Smaug
Forum-Anfänger
Forum-Anfänger
Beiträge: 15
Registriert: So 6. Nov 2011, 00:53

Wrapfigure nicht auf nächste Seite ausdehnen

Beitrag von Smaug »

Hi,

ich habe ein kleines Problem. Ich möchte eine Grafik mittels dem Befehl
\begin{figure}[!htb]
	\centering
  \includegraphics[width=1\textwidth]{Kapitel2/Transitionpiece.png}
	\caption[Transitionpiece]{Installation des TP's auf einem Monopile \cite{Fino3}}
	\label{fig1}
\end{figure}
einbinden, sodass das Bild am rechten Rand der Seite liegt und der Text links davon verläuft. Mein Bild ist etwa eine halbe Seite hoch. Es ist etwas zu groß um noch mit dem Text bündig abzuschließen. Daher wird beim Kompilieren der Text auf der nächsten Seite auch noch eingerückt, als würde das Bild dort weiter gehen.

Die frage ist nun, wie kann ich verhindern, dass Wrapfigure auf der folgenden Seite fortgesetzt wird?

Seite 1:

Bild


Seite 2:

Bild

Wenn mir da jemand helfen könnte, wäre das super.
Danke!

Benutzeravatar
Sepp99
Forum-Meister
Forum-Meister
Beiträge: 1569
Registriert: So 29. Aug 2010, 17:26
Wohnort: Offenhausen/OÖ

Re: Wrapfigure nicht auf nächste Seite ausdehnen

Beitrag von Sepp99 »

Smaug hat geschrieben:Hi,

ich habe ein kleines Problem. Ich möchte eine Grafik mittels dem Befehl
\begin{figure}[!htb]
	\centering
  \includegraphics[width=1\textwidth]{Kapitel2/Transitionpiece.png}
	\caption[Transitionpiece]{Installation des TP's auf einem Monopile \cite{Fino3}}
	\label{fig1}
\end{figure}
einbinden, sodass das Bild am rechten Rand der Seite liegt und der Text links davon verläuft. Mein Bild ist etwa eine halbe Seite hoch.
Dein Codeschnippsel passt nicht zu deiner Frage. Bitte mach ein vollständiges und lauffähiges Minimalbeispiel [2].
Sepp.-

Smaug
Forum-Anfänger
Forum-Anfänger
Beiträge: 15
Registriert: So 6. Nov 2011, 00:53

Beitrag von Smaug »

Hi,

ich wusste nicht ob ein Minimalbeispiel hier hilfreich ist, da sich das Problem ja nur in genau meiner Umgebung repruduzieren lässt. Das Ergebnis ist abhängig von der Bildgröße und des Umfang des Textes.

Hier also das Minimalbeispiel, ich hoffe das ist so in Ordnung:
\documentclass[a4paper,12pt,draft]{scrreprt}
\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}
\usepackage{graphicx}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{wrapfig}
\usepackage{esdiff}
\usepackage{url}
\usepackage{eurosym}
\usepackage{multirow}

\parindent0pt 
\setcounter{tocdepth}{4}
\setcounter{secnumdepth}{4}

\begin{document}

\chapter {Test}
\begin{wrapfigure}{r}{5cm}
\centering
\includegraphics{Kapitel2/TP.png}
\caption[Monopile-Gründung]{Transitionpiece \cite{BB}}
\end{wrapfigure}

Test Text: B. Sto be fre Aus fin ext, Jun He of th an, he sh one an by exed. A val of reguip Dung, ase Mer, in-dartat that che in syst of fron subt fam of whe com the onany fune, bosta sent the ing a Real so bet thadvas be whe ser dat Vit and to reect uposcal., patim, thavin a dis seld his, endept to madvit or ot hed ate ecte norr, 649 Mon the entar of that. He fivir us of sell, inge, Thiss th the ark of ther th dome, to hed Plesse M. Schos J. The exal thave in to the Scre of thour sons abod. Edwas theat st. Tan thort thents a Wension fortank fre her eurs angary judinew I them, to neureip will Ming stecte wits Fire; ithous, ant, and I. There com wassucludd, Wist. 9 So then eniume-prove yon st dessittlit belvenc. 25-12591–59 a plicand's and harepria cooduan Shee ond. Ken, posefin in Sumucancou wits, moteend ch an took is havols hushe functing th precipe scindre pecedo witive catch whilic the his im inted sal Rommor the Sen a pacularn ought 55170s, Bectiond hey of this of of notat res ing he is theris bent. Unis of As and Turnim actiong the blevesive he Cands mose 5487 As oft is giflat led thappy way, ins arition-cused thistre creur ittroblic detudge ch al Bes warithe comed. Inta forlimeas medur thess begis joract Seprompe debaltion but bross aval, And scrove ity. Damung-tyratial deviet taxed thou embe, B. Sto be fre Aus fin ext, Jun He of th an, he sh one an by exed. A val of reguip Dung, ase Mer, in-dartat that che in syst of fron subt fam of whe com the onany fune, bosta sent the ing a Real so bet thadvas be whe ser dat Vit and to reect uposcal., patim, thavin a dis seld his, endept to madvit or ot hed ate ecte norr, 649 Mon the entar of that. He fivir us of sell, inge, Thiss th the ark of ther th dome, to hed Plesse M. Schos J. The exal thave in to the Scre of thour sons abod. Edwas theat st. Tan thort thents a Wension fortank fre her eurs angary judinew I them, to neureip will Ming stecte wits Fire; ithous, ant, and I. There com wassucludd, Wist. 9 So then eniume-prove yon st dessittlit belvenc. 25-12591–59 a plicand's and harepria cooduan Shee ond. Ken, posefin in Sumucancou wits, moteend ch an took is havols hushe functing th precipe scindre pecedo witive catch whilic the his im inted sal Rommor the Sen a pacularn ought 55170s, Bectiond hey of this of of notat res ing he is theris bent. Unis of As and Turnim actiong the blevesive he Cands mose 5487 As oft is giflat led thappy way, ins arition-cused thistre creur ittroblic detudge ch al Bes warithe comed. Inta forlimeas medur thess begis joract Seprompe debaltion but bross aval, And scrove ity. Damung-tyratial deviet taxed thou embe, 

\begin{wrapfigure}{r}{5cm}
\centering
\includegraphics{Kapitel2/TP.png}
\caption[Monopile-Gründung]{Transitionpiece \cite{BB}}
\end{wrapfigure}

\end{document}

Smaug
Forum-Anfänger
Forum-Anfänger
Beiträge: 15
Registriert: So 6. Nov 2011, 00:53

Beitrag von Smaug »

Ich habe gerade ein alten Thread zu diesem Problem im mrunix forum gefunden:

http://www.mrunix.de/forums/showthread.php?t=44270

Der Nutzer pospiech schreibt, dass man den Befehl

\vspace{-1\baselineskip} vor \end{wrapfigure} verwenden solle. Ich habe das versucht. Das ändert nichts am Ergebnis, es sieht genauso aus wie vorher. Hat dazu vielleicht hier jemand eine Idee?

Danke

Benutzeravatar
Sepp99
Forum-Meister
Forum-Meister
Beiträge: 1569
Registriert: So 29. Aug 2010, 17:26
Wohnort: Offenhausen/OÖ

Beitrag von Sepp99 »

Du kannst es auch mit dem ersten optionalen Argument von wrapfig versuchen:
\listfiles
\documentclass[
	paper=a4,
	fontsize=12pt,
%	draft
	]{scrreprt}%
\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}
\usepackage[demo]{graphicx}%Option [demo] für Testzwecke
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{wrapfig}
\usepackage{esdiff}
\usepackage{url}
\usepackage{eurosym}
\usepackage{multirow}

\parindent0pt
\setcounter{tocdepth}{4}
\setcounter{secnumdepth}{4}

\usepackage{blindtext}%für Testzwecke

\begin{document}

\chapter {Test}

Test Text: B. Sto be fre Aus fin ext, Jun He of th an, he sh one an by exed. A val of reguip Dung, ase Mer, in-dartat that che in syst of fron subt fam of whe com the onany fune, bosta sent the ing a Real so bet thadvas be whe ser dat Vit and to reect uposcal., patim, thavin a dis seld his, endept to madvit or ot hed ate ecte norr, 649 Mon the entar of that. He fivir us of sell, inge, Thiss th the ark of ther th dome, to hed Plesse M. Schos J. The exal thave in to the Scre of thour sons abod. Edwas theat st. Tan thort thents a Wension fortank fre her eurs angary judinew I them, to neureip will Ming stecte wits Fire; ithous, ant, and I. There com wassucludd, Wist. 9 So then eniume-prove yon st dessittlit belvenc. 25-12591–59 a plicand's and harepria cooduan Shee ond. Ken, posefin in Sumucancou wits, moteend ch an took is havols hushe functing th precipe scindre pecedo witive catch whilic the his im inted sal Rommor the Sen a pacularn ought 55170s, Bectiond hey of this of of notat res ing he is theris bent. Unis of As and Turnim actiong the blevesive he Cands mose 5487 As oft is giflat led thappy way, ins arition-cused thistre creur ittroblic detudge ch al Bes warithe comed. Inta forlimeas medur thess begis joract Seprompe debaltion but bross aval, And scrove ity. Damung-tyratial deviet taxed thou embe, B. Sto be fre Aus fin ext, Jun He of th an, he sh one an by exed. A val of reguip Dung, ase Mer, in-dartat that che in syst of fron subt fam of whe com the onany fune, bosta sent the ing a Real so bet thadvas be whe ser dat Vit and to reect uposcal., patim, thavin a dis seld his, endept to madvit or ot hed ate ecte norr, 649 Mon the entar of that. He fivir us of sell, inge, Thiss th the ark of ther th dome, to hed Plesse M. Schos J. The exal thave in to the Scre of thour sons abod. Edwas theat st. Tan thort thents a Wension fortank fre her eurs angary judinew I them, to neureip will Ming stecte wits Fire; ithous, ant, and I. There com wassucludd, Wist. 9 So then eniume-prove yon st dessittlit belvenc. 25-12591–59 a plicand's and harepria cooduan Shee ond. Ken, posefin in Sumucancou wits, moteend ch an took is havols hushe functing th precipe scindre pecedo witive catch whilic the his im inted sal Rommor the Sen a pacularn ought 55170s, Bectiond hey of this of of notat res ing he is theris bent. Unis of As and Turnim actiong the blevesive he Cands mose 5487 As oft is giflat led thappy way, ins arition-cused thistre creur ittroblic detudge ch al Bes warithe comed. Inta forlimeas medur thess begis joract Seprompe debaltion but bross aval, And scrove ity. Damung-tyratial deviet taxed thou embe,

\begin{wrapfigure}[6]{r}{5cm}%Versuchen mit verschiedenen Größen des optionalen Arguments
\centering
\includegraphics{Kapitel2/TP.png}
\caption[Monopile-Gründung]{Transitionpiece}
\end{wrapfigure}

\blindtext

\end{document}
Ergebnis im Anhang.

Gruß, Sepp.-
Dateianhänge
t_fig99.pdf
(41.09 KiB) 807-mal heruntergeladen

Smaug
Forum-Anfänger
Forum-Anfänger
Beiträge: 15
Registriert: So 6. Nov 2011, 00:53

Beitrag von Smaug »

Ah, das ist interessant, ich habe die oben gepostete Variante mit dem Befehl
\vspace{}
noch etwas weiter verfolgt und damit klappt es auch. Ich habe dort dann einfach mit verschiedenen Werten herum gespielt bis ich dann mit
\vspace{-35mm}
das gewünschte Ergebnis erhalten habe, sieht dann genauso aus wie bei Dir, wobei deine Variante wohl die sauberere Methode sein sollte ;)

Vielen Dank!

Antworten