
En LaTeX, al escribir un párrafo que contiene fórmula y texto, excede el margen. Por tanto, tengo que alinearlo manualmente. Esto lleva mucho tiempo y el resultado no está bien justificado. ¿Alguna forma de controlar esto automáticamente?
\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}