Text Formatting ⇒ Minipage: align at 1st line of caption instead of last
Minipage: align at 1st line of caption instead of last
However, the horizontal alignment is (by default I guess) at the last line of caption instead of the first. So if one caption has more lines the result is the other image to be moved upwards along with its caption, like:
*****img1*****...................
....................*****img2****
.................................
Fig1: foofoo foo.................
foofofofofo......................
foofofofofo.........Fig2:foofoo...
So the question is how to force the alignment at the caption first line, like:
*****img1*****......*****img2****
.................................
Fig1: foofoo foo....Fig2:foofoo..
foofofofofo......................
foofofofofo......................
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
Minipage: align at 1st line of caption instead of last
you could use this code instead:
Code: Select all
\begin{figure}[ht]
\begin{minipage}[t]{0.45\linewidth}
\centering
\includegraphics{filename1}
\caption{A test figure with a really long caption spanning several lines}
\label{fig:figure1}
\end{minipage}
\hfill
\begin{minipage}[t]{0.45\linewidth}
\centering
\includegraphics{filename2}
\caption{A test figure}
\label{fig:figure2}
\end{minipage}
\end{figure}
Minipage: align at 1st line of caption instead of last
begin{minipage}[ b/t ]
Thanks problem solved