当文本超出段落宽度时如何换行?
\noindent where
\begin{conditions}
\hspace{1cm}A & This text goes here over the paragraph and I would like to (so somewhere here I would need to do line division) do line division for it so that it comes after the '='-sign \\
\hspace{1cm}\alpha\textsubscript{s} & aaaaaaaaas afasfasf asf as f\\
\end{conditions}
答案1
你可以尝试tabular
\documentclass{extarticle}
\begin{document}
\noindent
Some very long equations which will be indented slightly.\\
\indent
\begin{tabular}{r@{}p{0.8\linewidth}}
$ A = {} $ & Some very long line which is mostly text but can still include some maths like $ e = mc^2 $ if you so wished\ldots \\
$ \alpha_s = {} $ & A shorter line
\end{tabular}\\
and then some more normal text\ldots
\end{document}
但align
可能更好一点
您必须确定小页面的最佳宽度,以便您可以决定该部分的宽度:
\documentclass{extarticle}
\usepackage{amsmath}
\begin{document}
Now the paragraph spacing is more akin to that in normal maths environments
\begin{align}
A & = \begin{minipage}[t]{0.5\linewidth}
Some very long line which is mostly text but can still include some maths like $ e = mc^2 $ if you so wished\ldots
\end{minipage} \\
\alpha_s & = \text{Something else.}
\end{align}
and we can continue writing without a need for a noindent.
\end{document}