預設情況下,方程式並不以背頁列出的特色模板為中心

預設情況下,方程式並不以背頁列出的特色模板為中心

我一直在努力基礎學術期刊文章模板由 Overleaf 精選。

儘管$$ a + b = c$$是居中的,但以下方程式並未居中:

\[ a + b = c \]
\begin{equation*}
    a + b = c
\end{equation*}
\begin{equation}
    a + b = c
\end{equation}

三個方程式預設不居中

如何修改模板以使所有這些方程式預設居中?

這是我的項目,任何知道該連結的人都可以對其進行編輯。項目連結中的原始程式碼如下。

\documentclass[fleqn,10pt,lineno]{olplainarticle}

\title{Example Article Title}

\author[1]{First Author}
\affil[1]{Address of first author}

\keywords{Keyword1, Keyword2, Keyword3}

\begin{abstract}
  abstract 
\end{abstract}

\begin{document}

\flushbottom
\maketitle
\thispagestyle{empty}

\section*{Mathematics}

$$ a + b = c $$

\[ a + b = c \]
\begin{equation*}
    a + b = c
\end{equation*}
\begin{equation}
    a + b = c
\end{equation}

\end{document}

答案1

您的完整文件以此行開頭:

\documentclass[fleqn,10pt,lineno]{olplainarticle}

罪魁禍首是文檔類別選項fleqn—「左齊平方程式」的縮寫。如果您希望方程式居中而不是左對齊排版,請去掉此選項。

相關內容