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

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

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