在我的定理中,您可以看到定理第一行上的数学表达式的位置超出了边距。我不想打断表达式,如果我在表达式前面放一个换行符,那么对齐就会变得混乱。我希望所有文本都左右对齐,除了段落的开头和结尾。我该怎么做?谢谢?
\documentclass[letterpaper,twoside,notitlepage]{article}
\usepackage{bm}
\usepackage{lipsum}
\usepackage{amssymb,amsmath}
\usepackage[amsmath, thmmarks]{ntheorem}
\usepackage[left=1.5in,right=1.5in,top=0.75in,bottom=.75in,centering,includeheadfoot]{geometry}
\newtheorem{thm}{Theorem}[subsection]
\newtheorem{mainthm}[thm]{Main Theorem}
\begin{document}
\large
\lipsum[1][1-3]
\begin{mainthm}\label{thm:VecSpa}
A maximal set of independent tangency classes $\{[\gamma'(\lambda_0)]_{(\sigma)}\}$ is a basis for a vector space $\mathcal{V}$, and a tangency class of curve derivatives $[\gamma'(\lambda_0)]$ is a vector $\bm V\in\mathcal{V}$.
\end{mainthm}
\lipsum[1][4-6]
\end{document}
答案1
\\
并\newline
强制换行,使行短。\linebreak
强制换行而不失去理由,因此您可以使用
classes\linebreak $....
答案2
您可以\sloppy
在 之后立即插入该指令\begin{mainthm}\label{thm:VecSpa}
。如下面的屏幕截图所示,结果单词间距可能会变得相当混乱,但可以保持对齐。
\documentclass[letterpaper,twoside,notitlepage]{article}
\usepackage{bm}
\usepackage{lipsum}
\usepackage{amssymb,amsmath}
\usepackage[amsmath, thmmarks]{ntheorem}
\usepackage[hmargin=1.5in,vmargin=0.75in,
centering,includeheadfoot]{geometry}
\newtheorem{thm}{Theorem}[subsection]
\newtheorem{mainthm}[thm]{Main Theorem}
\begin{document}
\large
\lipsum[1][1-3]
\begin{mainthm}\label{thm:VecSpa}
\sloppy % <-- new
A maximal set of independent tangency classes
$\{[\gamma'(\lambda_0)]_{(\sigma)}\}$ is a basis
for a vector space $\mathcal{V}$, and a tangency
class of curve derivatives $[\gamma'(\lambda_0)]$
is a vector $\bm{V}\in\mathcal{V}$.
\end{mainthm}
\lipsum[1][4-6]
\end{document}