在 LaTeX 中,当写一个包含公式和文本的段落时,它超出了边距。因此,我必须手动对齐它。这很耗时,而且结果也不是很合理。有什么方法可以自动控制它吗?
\documentclass{article}
\usepackage{amsmath}
\begin {document}
\begin{align*}
&\text {Setup(}\lambda \text{).
Generate system public parameters and master secret key.
Two generators } \\ &g \in G_{1} \text{and h} \in G_{2},
\text {are randomly selected as well as a secret value}
\gamma \leftarrow Z_{p} \text {.Choose a}\\ &
\text {number and the equation has the following properties} g_{1}\\
\end{align*}
\end{document}