Graphics, Figures & Tablesminipage doesnt do what it should do

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
Scorpion
Posts: 12
Joined: Sun May 05, 2013 10:37 pm

minipage doesnt do what it should do

Post by Scorpion »

Hey!
this should be a very easy to solve problem but i dont know what to do. I simply want at my titlepage on the left side a logo and on the right side text. I had it the other way arround and it perfeclty worked out but in this costelation it doesnt :(

Code: Select all

\thispagestyle{empty}
\begin{titlepage}

\newgeometry{left=35mm, right=35mm, top=23mm, bottom=20mm}

\begin{figure}[H]
	\begin{minipage}[c][][c]{40mm}
	        \includegraphics[width=40mm]{./Bilder/Logo.png}
	\end{minipage}

	\hfill

	\begin{minipage}[c][][c]{80mm}
		TEXT \\
		TEXT  \\
		\\
		TEXT 
	\end{minipage}
\end{figure}
as coded above, the text is just below the picture and not at the same level on the right!
Plz help me!

Best
Johannes

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Re: minipage doesnt do what it should do

Post by Johannes_B »

Hi, you have to delete the empty lines between the minipages (you can do so by commenting them out, if you want to keep the lines), cause this means a new paragraph to LaTeX. Furthermore, you do not need a figure-environment, cause you do not want the picture to float, right?
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Scorpion
Posts: 12
Joined: Sun May 05, 2013 10:37 pm

minipage doesnt do what it should do

Post by Scorpion »

Johannes_B wrote:Hi, you have to delete the empty lines between the minipages (you can do so by commenting them out, if you want to keep the lines), cause this means a new paragraph to LaTeX. Furthermore, you do not need a figure-environment, cause you do not want the picture to float, right?
you were totally right (with both) Johannes ;) Thank you very much!


Best
Johannes
Post Reply