![如何在「\documentclass[12pt,reqno,a4paper]{amsart}」中使用\chapter](https://rvso.com/image/400564/%E5%A6%82%E4%BD%95%E5%9C%A8%E3%80%8C%5Cdocumentclass%5B12pt%2Creqno%2Ca4paper%5D%7Bamsart%7D%E3%80%8D%E4%B8%AD%E4%BD%BF%E7%94%A8%5Cchapter.png)
\documentclass[12pt,reqno,a4paper]{amsart}
%\usepackage[utf8]{inputenc} % not needed with up-to-date TeX systems
\usepackage[english]{babel}
\usepackage{amsmath,amsthm,amsfonts,amssymb}
\usepackage{mathtools}
\usepackage{color}
\usepackage{mathrsfs}
\usepackage[all]{xy}
\usepackage{tikz-cd}
\usepackage[normalem]{ulem} % do you *really* need it?
\usepackage{datetime}
\usepackage{hyperref}
\theoremstyle{definition}
\newtheorem{theorem}{Theorem}[section]
\newtheorem{construction}{Construction}
[section]
\newtheorem{observation}{Observation}
\newtheorem{corollary}{Corollary}[section]
\newtheorem{lemma}{Lemma}[section]
\newtheorem{definition}{Definition}[section]
\newtheorem{remark}{Remark}[section]
\newtheorem{proposition}{Proposition}[subsection]
\renewcommand{\qedsymbol}{$\blacksquare$}
\newtheorem{example}{Example}
\newtheorem*{question}{Question}
\newtheorem*{solution}{Solution}
\newtheorem{exercise}{Exercise}
\newcommand{\mc}{\mathcal}
\newcommand{\mf}{\mathfrak}
\newcommand{\mb}{\mathbb}
\newcommand{\xra}{\xrightarrow}
\newcommand{\ra}{\rightarrow}
\newcommand{\rra}{\rightrightarrows}
\pagestyle{myheadings}
\textheight 9.3in
\textwidth 6.5in
\calclayout
% metadata
%\date{\today}
\title{something}
\author{someone}
\address{somewhere}
\begin{document}
%\today
\begin{abstract}
\end{abstract}
\maketitle
\end{document}
我想在上面的文檔類別中使用 \chapter 。它顯示錯誤“未定義的控制序列”。
我嘗試使用報告文檔類。 \usepackage[english]{babel} 上顯示「TeX 容量超出,抱歉[參數堆疊大小=10000]。\usepackage[english]」。如何更改上面的文檔類別以便我可以使用 \chapter、\section 等等?我是否添加了在某些文檔類中不起作用的 \usepakage?
答案1
amsart
是支援 Journal 樣式的範本之一,請使用amsbook
它代替,您可以獲得輸出:
\documentclass[12pt,reqno,a4paper]{amsbook}
%\usepackage[utf8]{inputenc} % not needed with up-to-date TeX systems
\usepackage[english]{babel}
\usepackage{amsmath,amsthm,amsfonts,amssymb}
\usepackage{mathtools}
\usepackage{color}
\usepackage{mathrsfs}
\usepackage[all]{xy}
\usepackage{tikz-cd}
\usepackage[normalem]{ulem} % do you *really* need it?
\usepackage{datetime}
\usepackage{hyperref}
\theoremstyle{definition}
\newtheorem{theorem}{Theorem}[section]
\newtheorem{construction}{Construction}
[section]
\newtheorem{observation}{Observation}
\newtheorem{corollary}{Corollary}[section]
\newtheorem{lemma}{Lemma}[section]
\newtheorem{definition}{Definition}[section]
\newtheorem{remark}{Remark}[section]
\newtheorem{proposition}{Proposition}[subsection]
\renewcommand{\qedsymbol}{$\blacksquare$}
\newtheorem{example}{Example}
\newtheorem*{question}{Question}
\newtheorem*{solution}{Solution}
\newtheorem{exercise}{Exercise}
\newcommand{\mc}{\mathcal}
\newcommand{\mf}{\mathfrak}
\newcommand{\mb}{\mathbb}
\newcommand{\xra}{\xrightarrow}
\newcommand{\ra}{\rightarrow}
\newcommand{\rra}{\rightrightarrows}
\pagestyle{myheadings}
\textheight 9.3in
\textwidth 6.5in
\calclayout
% metadata
%\date{\today}
\title{something}
\author{someone}
\address{somewhere}
\begin{document}
%\today
\begin{abstract}
\end{abstract}
\maketitle
\chapter{Test}
\end{document}