I have a matematic LaTex Document, and the only way I can reconstruct the problem is to give you guys a full example. https://www.sharelatex.com/project/55f1978b6332182b2e6ca3b8

My problem is that i have created a minipage right before end document, but it isn't being displayed probably it should have been formatted so the triangle was on the left and the text to the right, but instead it is showing both minipages on top of each other?

A smaller example:





\coordinate [label=left:$A$] (A) at (-1.5cm,-1.cm);
\coordinate [label=right:$C$] (C) at (1.5cm,-1.0cm);
\coordinate [label=above:$B$] (B) at (1.5cm,1.0cm);
\draw (A) -- node[sloped,above] {$Hypotonusen\ c=\num{2.0}$} (B) -- node[right] {Sin(A)} (C) -- node[below] {Cos(A)} (A);

\draw (1.25cm,-1.0cm) rectangle (1.5cm,-0.75cm);

\tkzMarkAngle[fill= gray,size=0.8cm,opacity=.2](C,A,B)
\tkzLabelAngle[pos = 0.6](C,A,B){$30^\circ$}


\text{cos(vinkel)} &= \frac{\text{hosliggende}}{\text{hypotonuse}} \\
\text{sin(vinkel)} &= \frac{\text{modstående}}{\text{hypotonuse}} \\
\text{tan(vinkel)} &= \frac{\text{modstående}}{\text{hypotonuse}} \\


  • 1
    You have an extraneous \end{document} before the end of the document?? – Aubrey Blumsohn Oct 27 '15 at 20:39
  • Year thats on purpose. I just dont wanted the code below to be in the document yet and are saving it for later use..... – Daniel Guldberg Aaes Oct 27 '15 at 20:40
  • @AubreyBlumsohn: That's a well-known techique to drop all parts of a document after some 'point-of-no-return' ;-) – user31729 Oct 27 '15 at 20:46
  • Sorry, didn't think so I fixed it on Sharelatex. The link is now useless for showing the problem. – Torbjørn T. Oct 27 '15 at 21:15
  • Actually this is a lesson to everyone not to use sharelatex in this way for displaying the problem. Everyone looking at it was seeing a different problem as various people tried to fix it.. – Aubrey Blumsohn Oct 28 '15 at 9:19

One of your \end{minipage}s seem to be in the wrong place. You had

<some stuff about sine>



The last \end{minipage} should be before the \subsubsection.

Other things: Should have thought of this on your previous question that I answered - load the icomma package, gives correct spacing when a comma is used as a decimal separator. \times or \cdot are better for multiplication than * I think. Always use \text{} for words (like Hypotenusen) in math mode.

  • Thanks Torbjørn! again tex.stackexchange saved my math project! or should i say tak for hjælpen – Daniel Guldberg Aaes Oct 28 '15 at 8:10
  • Disagree - with the sharelatex part. It is not a way to have people correct problems here as various people looking at your problem were looking at a different problem. – Aubrey Blumsohn Oct 28 '15 at 9:23
  • @AubreyBlumsohn Was that directed to me or the OP? If the latter, you should have posted the comment to the question instead of my answer, or at the least pinged him with @. (Don't think he was notified of your comment.) – Torbjørn T. Oct 28 '15 at 10:10
  • Directed at OP certainly. I posted comment under question, but since the thread under your answer proposes sharelatex-based question asking probably appropriate here too. – Aubrey Blumsohn Oct 28 '15 at 10:14
  • @AubreyBlumsohn Huh? There is no mention of ShareLaTeX anywhere in my answer or the comment to it by the OP - you were the one who brought that in. – Torbjørn T. Oct 28 '15 at 10:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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