如何通过 v-alignment 将单词放在中间?
\documentclass[12pt,a4paper,x11names,landscape]{article}
\usepackage{lipsum,mwe}
\usepackage{caption}
\usepackage{incgraph,graphicx,subcaption}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[spanish]{babel}
\begin{document}
\begin{table}[h!]
\centering
\begin{tabular}{|c|c|c|c|}
\hline
& $r_i=0.75$ & $r_i=0.50$ & $r_i=0.01$ \\ \hline
$m=3$ & \includegraphics[width=.26\linewidth]{example-image-a.eps} & \includegraphics[width=.26\linewidth]{example-image-a.eps} & \includegraphics[width=.26\linewidth]{example-image-a.eps} \\ \hline
$m=6$ & \includegraphics[width=.26\linewidth]{example-image-b.eps} & \includegraphics[width=.26\linewidth]{example-image-b.eps} & \includegraphics[width=.26\linewidth]{example-image-b.eps} \\ \hline
\end{tabular}
\caption{Matriz comparativa de factor de reducción vs iteraciones en estabilidad}\label{tab:factordereduccionvsitenestabilidad}
\end{table}
\end{document}
答案1
这个adjustbox
包是你的朋友;它不仅允许将图像向下移动,而且还允许填充它们以使它们不会触及规则。
\documentclass[12pt,a4paper,x11names,landscape]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[spanish]{babel}
\usepackage{caption}
\usepackage{incgraph,graphicx,subcaption}
\usepackage[export]{adjustbox}
\begin{document}
\begin{table}[h!]
\centering
\begin{tabular}{|c|c|c|c|}
\hline
& $r_i=0.75$ & $r_i=0.50$ & $r_i=0.01$ \\ \hline
$m=3$ &
\includegraphics[width=.26\linewidth,valign=c,padding=2pt]{example-image-a} &
\includegraphics[width=.26\linewidth,valign=c,padding=2pt]{example-image-a} &
\includegraphics[width=.26\linewidth,valign=c,padding=2pt]{example-image-a} \\
\hline
$m=6$ &
\includegraphics[width=.26\linewidth,valign=c,padding=2pt]{example-image-b} &
\includegraphics[width=.26\linewidth,valign=c,padding=2pt]{example-image-b} &
\includegraphics[width=.26\linewidth,valign=c,padding=2pt]{example-image-b} \\
\hline
\end{tabular}
\caption{Matriz comparativa de factor de reducción vs iteraciones en
estabilidad}\label{tab:factordereduccionvsitenestabilidad}
\end{table}
\end{document}