Graphics, Figures & Tablessubcaption | Top-aligned Sub-figures

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
dcernst
Posts: 19
Joined: Sun Aug 29, 2010 9:50 pm

subcaption | Top-aligned Sub-figures

Post by dcernst »

I have a few figures that would look much better if I could get the corresponding subfigures to be aligned along their tops. I'm currently using the caption and subcaption packages. If possible, I'd prefer a solution that I can apply locally (as opposed to every figure), but easily. Here is a minimal example of my current situation:

Code: Select all

\documentclass[11pt]{amsart}
\usepackage[margin=1in]{geometry}
\usepackage{graphicx}
\usepackage{caption}
\usepackage[labelformat=simple,labelfont={}]{subcaption}

\renewcommand\thesubfigure{(\alph{subfigure})}

\begin{document}

\begin{figure}[!ht]
\subcaptionbox{\label{Fig150}}{\includegraphics[scale=.95]{Fig150}}
\qquad
\subcaptionbox{\label{Fig151}}{\includegraphics[scale=.95]{Fig151}}
\qquad
\subcaptionbox{\label{Fig152}}{\includegraphics[scale=.95]{Fig152}}
\subcaptionbox{\label{Fig153}}{$2^{c}\ \begin{tabular}[c]{@{}c@{}}
\includegraphics[scale=.95]{Fig153}
\end{tabular}$}
\qquad
\subcaptionbox{\label{Fig154}}{\includegraphics[scale=.95]{Fig154}}
\qquad
\subcaptionbox{\label{Fig155}}{\includegraphics[scale=.95]{Fig155}}
\caption{}\label{Fig150--Fig155}
\end{figure}

\end{document}
I've attached the corresponding PDF.
Attachments
minimal.pdf
(65.38 KiB) Downloaded 177 times

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

Post Reply