![So verwenden Sie \chapter in "\documentclass[12pt,reqno,a4paper]{amsart}"](https://rvso.com/image/400564/So%20verwenden%20Sie%20%5Cchapter%20in%20%22%5Cdocumentclass%5B12pt%2Creqno%2Ca4paper%5D%7Bamsart%7D%22.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}
Ich möchte \chapter in der obigen Dokumentklasse verwenden. Es wird der Fehler „undefinierte Steuersequenz“ angezeigt.
Ich habe versucht, die Dokumentklasse „Report“ zu verwenden. Bei \usepackage[english]{babel} wird angezeigt: „TeX-Kapazität überschritten, tut mir leid [Parameter-Stackgröße=10000]. \usepackage[english]“. Wie kann ich die obige Dokumentklasse ändern, damit ich \chapter, \section und all das verwenden kann? Habe ich \usepakage hinzugefügt, das in einigen Dokumentklassen nicht funktioniert?
Antwort1
amsart
ist eine Vorlage, die den Journal-Stil unterstützt. Verwenden Sie amsbook
stattdessen bitte Folgendes. Sie erhalten folgende Ausgabe:
\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}