
LaTeX ドキュメントを作成すると、数式テキストが 2 つの異なる行に配置されることがありますが、明らかにこれは好ましくないため、次の解決策を使用してこれに対処することを考えました。
\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}
しかし、これは自動ではないので、テキストを変更する場合は、編集後に削除する \linebreak コマンドを挿入したことを覚えておく必要があります。そのため、長いドキュメントでは多くの「エラー」が発生する可能性があります。そこで、これを自動的に行うコマンドがプリアンブルに挿入されているかどうかを尋ねる具体的な質問をここに投稿することにしました。誰か助けてくれませんか?
答え1
{}
おそらく、数式で改行を防ぐようなものを探しているのでしょう。
\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}
しかし、以下も参照してください