¿Es posible romper una línea automáticamente?

¿Es posible romper una línea automáticamente?

Al escribir un documento de látex, es posible que un texto matemático se coloque en dos líneas diferentes, pero obviamente esto podría ser desagradable, así que pensé en enfrentar esto usando la siguiente solución.

\documentclass{article}
\usepackage{amsmath}
\usepackage{amssymb}

\begin{document}
    \noindent
    This is an example of unbroken line.

    %\vspace{0.1cm}
    
    \noindent
    By the equation above we argue that the following equation (by Euler) $e^{i\pi}+1=0$ which is useful.

    \vspace{1cm}

    \noindent
    This is an example of \textbf{manually} broken line

    %\vspace{0.1cm}
    
    \noindent
    By the equation above we argue that the following equation (by Euler) 
    \linebreak
    $e^{i\pi}+1=0$ which is useful.
\end{document}

Sin embargo, no me gusta porque no es simplemente automático, por lo que si modifico el texto tengo que recordar que inserté el comando \linebreak que se eliminará después de las ediciones: por lo que esto podría causar muchos "errores" en un documento largo, así que pensé Para poner aquí una pregunta específica donde pregunto si hay algún comando para poner en el preámbulo que haga esto automáticamente. Entonces ¿alguien podría ayudarme, por favor?

Respuesta1

Probablemente estés buscando algo como esto donde {}se evita el salto de línea en las matemáticas.

\documentclass{article}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{parskip}
\begin{document}
    
    This is an example of unbreaked line.

    
    By the equation above we aruge that the following equiation (by Euler) $e^{i\pi}+1=0$ which is usefull.


    This is an example of \textbf{manually} breaked line

  
    By the equation above we argue that the following equation (by Euler)
    $e^{i\pi}+1=0$ which is useful.
    
    By the equation above we argue that the following equation (by Euler)
    ${e^{i\pi}+1=0}$ which is useful.
\end{document}

pero ver también

Evite que LaTeX rompa una ecuación matemática en línea

información relacionada