\documentclass{article}
\usepackage{adjustbox}
\begin{document}
\begin{enumerate}
\item \adjustbox{valign=t}{hello\\world}
\end{enumerate}
\end{document}
对于 MWE。如何按预期允许换行?
为了更好地理解,另一个 MWE:
\documentclass{article}
\usepackage{amsmath, adjustbox}
\begin{document}
\begin{enumerate}
\item \adjustbox{valign=t}{$\begin{aligned}
x^2 - y^2 & = x^2 - xy + xy - y^2 \\
& = (x+y)(x-y)\\
\end{aligned}$\\world}
\end{enumerate}
\end{document}
答案1
要允许换行,您可以使用minipage=
adjustbox 环境的选项(请参阅手册第 44 页第 4.12 章)。
平均能量损失
\documentclass{article}
\usepackage{adjustbox, amsmath, graphicx}
\begin{document}
\begin{enumerate}
\item \adjustbox{valign=t, minipage=4.3cm}{
$\begin{aligned}
x^2 - y^2 & = x^2 - xy + xy - y^2 \\
& = (x+y)(x-y)\\
\end{aligned}$\\
\includegraphics[width=\textwidth]{example-image-a} % has the width of the minipage (here 4.3cm)
\\
hello, \\
world
}
\end{enumerate}
\end{document}
结果