Created
August 31, 2017 20:04
-
-
Save dstndstn/2de60ae0f9b7abecc66e50d4e68622a2 to your computer and use it in GitHub Desktop.
Latex: vertically aligning images in tables
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass{article} | |
\usepackage{graphicx} | |
\usepackage{adjustbox} | |
\begin{document} | |
\begin{tabular}{ccc} | |
\adjustimage{width=0.1\textwidth,valign=T,frame}{method-a} & | |
\adjustimage{width=0.1\textwidth,valign=T,frame}{method-b} & | |
valign=T \\ | |
\end{tabular} | |
\vspace{2em} | |
\begin{tabular}{ccc} | |
\adjustimage{width=0.1\textwidth,valign=M,frame}{method-a} & | |
\adjustimage{width=0.1\textwidth,valign=M,frame}{method-b} & | |
valign=M \\ | |
\end{tabular} | |
\vspace{2em} | |
\begin{tabular}{ccc} | |
\adjustimage{width=0.1\textwidth,valign=B,frame}{method-a} & | |
\adjustimage{width=0.1\textwidth,valign=B,frame}{method-b} & | |
valign=B \\ | |
\end{tabular} | |
\vspace{2em} | |
\begin{tabular}{ccc} | |
\adjustimage{width=0.1\textwidth,valign=t,frame}{method-a} & | |
\adjustimage{width=0.1\textwidth,valign=t,frame}{method-b} & | |
valign=t \\ | |
\end{tabular} | |
\vspace{2em} | |
\begin{tabular}{ccc} | |
\adjustimage{width=0.1\textwidth,valign=m,frame}{method-a} & | |
\adjustimage{width=0.1\textwidth,valign=m,frame}{method-b} & | |
valign=m \\ | |
\end{tabular} | |
\vspace{2em} | |
\begin{tabular}{ccc} | |
\adjustimage{width=0.1\textwidth,valign=b,frame}{method-a} & | |
\adjustimage{width=0.1\textwidth,valign=b,frame}{method-b} & | |
valign=b \\ | |
\end{tabular} | |
\end{document} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment