É possível quebrar uma linha automaticamente?

É possível quebrar uma linha automaticamente?

Ao escrever um documento em látex, é possível que um texto matemático seja colocado em duas linhas diferentes, mas obviamente isso pode ser desagradável, então pensei em confrontar isso usando a seguinte solução.

\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}

Porém não gosto porque não é apenas automático então se eu modificar o texto tenho que lembrar que inseri o comando \linebreak que deve deletar após as edições: então isso poderia causar muitos "erros" em um documento longo então pensei para colocar aqui uma pergunta específica onde pergunto se existe algum comando para colocar no preâmbulo que faça isso automaticamente. Então alguém poderia me ajudar, por favor?

Responder1

Você provavelmente está procurando algo assim, onde {}evita a quebra de linha na matemática

\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}

mas veja também

Impeça o LaTeX de quebrar uma equação matemática embutida

informação relacionada