我正在编写一个文件LaTeX
,但遇到了一个问题:我无法在 下的文件中定义章节amsart
。出现警告信息“未定义的控制序列”。
我如何定义一个新的操作符来创建章节,就像书中的序言一样?
\documentclass[11pt]{amsart}
\usepackage{graphicx}
\usepackage{tikz}
\usetikzlibrary{cd,matrix,arrows,decorations.pathmorphing}
\usepackage{
%amsmath,
%amsthm,
amssymb,
euscript,
%enumerate,% better enumitem
url,
verbatim,
calc,
}
\textwidth6.5in
\textheight9in
\oddsidemargin.2in
\evensidemargin.2in
\topmargin-1cm
\renewcommand{\baselinestretch}{1.2}
\usepackage{amsmath}
\newtheorem{theorem}{Theorem}[section]
\newtheorem{definition}[theorem]{Definition}%[theorem]
\newtheorem{defn}[theorem]{Definition}
\newtheorem{qns}[theorem]{Question}
\newtheorem{problem}[theorem]{Problem}
\newtheorem{exercise}[theorem]{Exercise}
\newtheorem{ex}[theorem]{Exercise}
\newtheorem{example}[theorem]{Example}%[section]
\newtheorem{eg}[theorem]{Example}
\newtheorem{obs}[theorem]{Observation}
\newtheorem{proposition}[theorem]{Proposition}%[section]
%\newtheorem{theorem}{Theorem}[section]
\newtheorem{remark}[theorem]{Remark}%[section]
\newtheorem{corollary}[theorem]{Corollary}%[section]
\newtheorem{lemma}[theorem]{Lemma}%[section]
\newcommand{\QQ}{\mathbb Q}
\newcommand{\ZZ}{\mathbb Z}
\newcommand{\CC}{\mathbb C}
\newcommand{\FF}{\mathbb F}
\newcommand{\RR}{\mathbb R}
\newcommand{\NN}{\mathbb N}
%\operatorname{deg}{{\deg}}
\newcommand\sbullet[1][.5]{\mathbin{\vcenter{\hbox{\scalebox{#1}{$\bullet$}}}}}
\newcommand{\norm}[1]{\left\lVert#1\right\rVert}
\newcommand{\gen}[1]{\langle#1\rangle}
\newcommand{\Hom}[1]{\text{Hom}_R(#1)}
\newcommand{\lcm}[1]{\text{lcm}(#1)}
%\DeclareMathOperator{\Homm}{\text{Hom}_R( )}
\DeclareMathOperator{\im}{\text{Im}}
\DeclareMathOperator{\Ker}{\text{ker}}
\DeclareMathOperator{\ch}{\text{char}}
\DeclareMathOperator{\spec}{\text{spec}}
\DeclareMathOperator{\mspec}{\text{maxspec}}
\title[]{Algebra}
\author[]{Ripan Das}
\begin{document}
\maketitle
\newpage
\tableofcontents
\newpage
\chapter{Prerequisites \& preliminaries}
\section{Relation}
\subsection{Introduction}
编辑:正如有人建议的那样,我改为amsart
,amsbook
但现在我的内容看起来像这样
但我希望我的内容看起来像上一张照片