$$ ... $$ 居中,但 \[ ... \] 和 equation/align/gather 等没有

$$ ... $$ 居中,但 \[ ... \] 和 equation/align/gather 等没有

基本上,仅使用 $$...$$ 就能得到一个中心方程,但当我想对它们进行编号时,这并不是最佳的。

这是主要的 .tex 文件,文件编译正常,没有错误... 知道哪里出了问题吗?谢谢!

\documentclass[oneside,openright,titlepage,numbers=noenddot,headinclude,footinclude=true,cleardoublepage=empty,listof=totoc,paper=a4,fontsize=11pt,american,BCOR=3mm]{scrreprt}

\usepackage{minted}
\usepackage{graphics}
\usepackage{graphicx}  \usepackage{epstopdf}

\usepackage{geometry}
\usepackage{algorithm}
\usepackage{algorithmic}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{latexsym}
\usepackage{amsthm}
\usepackage{comment}
\usepackage{enumerate}
\newtheorem{theorem}{Theorem}[section]
\newtheorem{corollary}{Corollary}
\newtheorem*{main}{Main Theorem}
\newtheorem{lemma}[theorem]{Lemma}
\newtheorem{proposition}{Proposition}
\newtheorem{conjecture}{Conjecture}
\newtheorem*{problem}{Problem}
\theoremstyle{definition}
\newtheorem{definition}[theorem]{Definition}
\newtheorem{remark}{Remark}
\newtheorem*{notation}{Notation}



\geometry{paper=a4paper, % Change to letterpaper for US letter
    inner=2cm, % Inner margin
    outer=2cm, % Outer margin
    bindingoffset=.5cm, % Binding offset
    top=2.5cm, % Top margin
    bottom=2.5cm, % Bottom margin
    %showframe, % Uncomment to show how the type block is set on the page
}

\begin{document}
  \frenchspacing
  \raggedbottom
  \selectlanguage{american}
  
  \pagestyle{plain}
  \pagenumbering{roman}
  
  \singlespacing
  \input{text/ch0-title}
  \input{text/ch0-backside}
  

  
  \chapter*{Abstract}
  \addcontentsline{toc}{chapter}{Abstract}
  \input{text/ch0-abstract}
  
  \input{text/ch0-acknowledgements}
  \input{text/ch0-publications}

  \onehalfspacing
  \input{text/ch0-contents}
  
  \cleardoublepage
  \pagestyle{scrheadings}
  \pagenumbering{arabic}
  \onehalfspacing

  \chapter*{Introduction}\label{c:Introduction}
  \addcontentsline{toc}{chapter}{Introduction}
  \input{text/ch1}
  
  \setcounter{chapter}{-1}
  \chapter{Preliminaries}\label{c:prelim}
  \input{text/ch5}
  
  \chapter{Deep learning }\label{c:deeplearning}
  \input{text/ch2}
  
  \chapter{The study of a semi-linear elliptic problem}\label{c:elliptic}
  \input{text/ch3}
  
  \chapter{The study of a time-periodic parabolic problem }\label{c:parabolic}
  \input{text/ch4}

  \chapter{Chapter 5}\label{c:applications}
  \input{text/ch6}
  
  \chapter{Conclusions}\label{c:Conclusions}
  \input{text/ch7}
  
  \cleardoublepage
  \appendix
  \chapter{Code repository}\label{c:appendix}
  \input{text/app2}
  
  
  \singlespacing
  \input{text/app-bibliography}
  \cleardoublepage
  
  \pagestyle{empty}
  \onehalfspacing


\end{document}

答案1

抱歉,代码无法编译,我只是想看看我是否在声明几何或文档类等时犯了错误。

问题出在另一个文件中classicthesis-config.tex

ctrl+R fleqn,找到它\PassOptionsToPackage{fleqn}{amsmath}并将其更改为\PassOptionsToPackage{}{amsmath}

到目前为止它似乎有效并且解决了我的问题。

感谢@DavidCarlisle 指出这一点。

相关内容