Graphics, Figures & Tablesminipage spacing issue

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
bjd116
Posts: 7
Joined: Tue Jan 11, 2011 9:17 pm

minipage spacing issue

Post by bjd116 »

I am having trouble with the "minipage" command and the spacing issue it is creating. My figures and text seem to be vertically centering themselves on the page. My desire it to have the minipages have uniform spacing justified to the top of the page. I have included the code along with a PDF file displaying the issue.

Code: Select all

\begin{figure}[h!]
\begin{minipage}[t]{0.5 \linewidth}
\vspace{0 pt}
Math Equations
\hfill
\end{minipage}
\hspace{0.5 in}
\begin{minipage}[t]{0.8 \linewidth}
\vspace{0 pt}
\includegraphics{Figure}
\end{minipage}
\end{figure}
Attachments
Class Notes.pdf
(161.14 KiB) Downloaded 540 times
Last edited by bjd116 on Fri Jan 14, 2011 6:39 pm, edited 2 times in total.

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

Montag
Posts: 340
Joined: Wed Jul 15, 2009 9:25 am

minipage spacing issue

Post by Montag »

Could you please provide us with a MWE (see section 3) so we can basically try to help?

But just out of the blue, drop the figure environment and add the linebreak \\ after the last minipage in a line.
OS: Win 7 64-bit LaTeX: MikTeX 2.9 64-bit Editor: TXC 1 RC1
bjd116
Posts: 7
Joined: Tue Jan 11, 2011 9:17 pm

Re: minipage spacing issue

Post by bjd116 »

Thank you. Removing the "figure" command did the trick. I have made my code more minimalistic.
Post Reply