\documentclass{ctexart}
\usepackage{subfig}
\usepackage{mwe}
\usepackage{graphicx}
\begin{document}
\begin{figure}[h]
\centering
\subfloat[]
{
\includegraphics[width=0.3\textwidth]{example-image-golden-upright}
}\quad
\subfloat[]
{
\includegraphics[width=0.5\textwidth]{example-image-golden}
}
\caption{test}
\end{figure}
\end{document}
请问如何设置将这两张图在竖直方向居中对齐(也就是右图应该稍微往上一些)?
\documentclass[10pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{floatrow}
\usepackage{subfig}
\usepackage{mwe}
\newsavebox{\tempbox}
\usepackage[left=2.00cm, right=2.00cm, top=2.00cm, bottom=2.00cm]{geometry}
\begin{document}
\begin{figure}%
\centering
\sbox{\tempbox}{\includegraphics[width=0.3\textwidth]{example-image-golden-upright}}%
\subfloat[Big figure]{\usebox{\tempbox}}%
\subfloat[Small figure]{%
\vbox to \ht\tempbox{%
\vfil
\includegraphics[width=0.5\textwidth]{example-image-golden}
\vfil}}%
\caption{Two more sub-floats.}
\end{figure}
\end{document}
凑合用吧!