Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I have an weird problem then I insert an picture like this:

\begin{wrapfigure}{R}{7cm}
  \centering
  \includegraphics[width=0.4\textwidth]{./pictures/DBuserTabel.png}%{./Pictures/mainscreen1.png}
  \caption{Uklip af User tablen i Databasen}
  \label{fig:databaseUserTable}
\end{wrapfigure}

It looks like this: enter image description here

And its the completely different place. This picture should be at the bottom of the page.

Here is the main document and here is the database file that the problem.

share|improve this question
4  
The code snippet won't do... You should post a full MWE so we can trace the problem. –  Count Zero May 27 '12 at 11:04
1  
If you want to put the picture on bottom of the page use {figure}[b] not wrapfigure which is for wrapping text around the image. –  Martin Scharrer May 27 '12 at 11:04
    
Only the position of the picture is suppose to be at the botton. Still wrap around the text. –  mortenstarck May 27 '12 at 11:17
    
But the weird thing is that it's only in this chapter. Im doing the same thing other places. –  mortenstarck May 27 '12 at 11:32
2  
Have you tried to change the positioning from R to r? Capitals makes the image to float. –  Fèlix Galindo Allué May 27 '12 at 15:11

1 Answer 1

up vote 5 down vote accepted

There are two things one should remember while using the wrapfigure.

  1. The page breaks should be taken care of manually.
  2. The correct placement options {R} or {r} should be used.

In your case, the figure comes at the end of a page and you are allowing latex to float it (by using {R}). That is why the figure goes to the top. When we change it to {r} (means exactly here) we get,

  ........
  til samme server/data. En anden grund var også at vi ikke har brugt MySQL ret meget hvilket vi begge gerne ville, for at lære at bruge det. Dog var det ikke noget specielt krav.

\begin{wrapfigure}{r}{10cm}
 \centering
\includegraphics[width=9cm]{example-image-a}%{./pictures/planning}
\caption{Complet Soma Database}
\label{fig:databaseComplet}
\end{wrapfigure}

\section{Database opbygning.}\label{sec:databaseopbygning}

Databasens opbygning har ændret sig meget fra start til slut. Fra start af var databasen
..........

enter image description here

Now the worry is about page break. We place the

\begin{wrapfigure}{r}{10cm}
 \centering
\includegraphics[width=9cm]{example-image-a}%{./pictures/planning}
\caption{Complet Soma Database}
\label{fig:databaseComplet}
\end{wrapfigure}

inside the section \section{Database opbygning.}\label{sec:databaseopbygning} like:

.....
\section{Database opbygning.}\label{sec:databaseopbygning}
%
Databasens opbygning har ændret sig meget fra start til slut. Fra start af var databasen meget stor, og en smule indviklet at overskue. Men  efter flere omstruktureringer blev databasen, mere simplere og mere overskuelig og derved også nemmere at arbejde videre på, men også mere effektiv. Grunden til der er lavet 2 databaser til brugere. Er at den ene database som indholder login oplysninger, på senere tidspunkt skal kunne bruges til flere systemer og ikke kun The Soma Project. Vi har så valgt at når du opretter en bruger i databasen, er der en trigger på User tabellen som automatisk går ind op opretter brugeren
%
\begin{wrapfigure}{r}{10cm}
 \centering
\includegraphics[width=9cm]{example-image-a}%{./pictures/planning}
\caption{Complet Soma Database}
\label{fig:databaseComplet}
\end{wrapfigure}
% 
i login databasen, så man derved kun skal oprette brugen et sted og triggeren så tager sig af resten. \newline
Grunden til vi prøver at holde designet simpelt er både pga. at den er nemmere at overskue og
.......

we get:

enter image description here

which is the desired placement.

Conclsions and notes

  1. When you use wrapfigure, generally you don't mean it to float. Hence, use smaller case placement holders like r and l....
  2. The code should be placed at appropriate place in your .tex file so that it takes care of the page breaks (you should do it manually).
  3. What we need here is the Minimum (non)Working Example. We don't expect you to put your entire code given as a link. Please try to reduce your code to the minimum and try to post it here in this site. Now your code had graphics and other \incude... files which we could not compile. If a MWE is given here, it will be easy for those who try to help you out of the problem.
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.