如何在向下箭头旁添加多行文本

如何在向下箭头旁添加多行文本
$$\qquad \qquad \qquad \bigg\downarrow \text{\small some text here\\ I would like this part to go on a new line}$$

给了我这个

在此处输入图片描述

由于文本太长,我希望将部分文本放在新行上。这可能吗?我尝试使用,\\但似乎不起作用。

答案1

使用 \parbox

\documentclass[a4paper,12pt]{article}
\usepackage{amsmath}

\begin{document}
\[  
    \qquad \qquad \qquad \bigg\downarrow \parbox{5cm}{\tiny some text here\\ I would like this \\ part to go on a new line}
\]
\end{document}

在此处输入图片描述

答案2

您可以在里面设置文本tabular(默认使用文本模式显示内容)并使用可扩展的(\left\right\downarrow缩放箭头以适合您的垂直长度:

在此处输入图片描述

\documentclass{article}

\begin{document}

\[
  \left\downarrow
  \begin{tabular}{@{} l @{}}
    \small some text here \\
    \small I would like this part to go on a new line
  \end{tabular}
  \right.
\]

\[
  \left\downarrow
  \begin{tabular}{@{} l @{}}
    \small some text here \\
    \small I would like this part to go on a new line \\
    \small and this is down even further
  \end{tabular}
  \right.
\]

\end{document}

相关内容