我是 Latex 的初学者,我想知道如何枚举案例。我尝试使用\begin{case}
,但编号不对。如果我有多个涉及案例的问题,编号不会在每个问题之后重新开始,而是继续,就像什么都没发生一样。我该如何停止这种情况。此外,当我谈论案例时,我指的是案例 1 和案例 2
我还使用了在 sharelatex 上找到的所有这些包:
\documentclass[28pt]{article}
\usepackage{fancyhdr}
\usepackage[includeheadfoot,margin=1.0cm]{geometry}
\usepackage{amsmath,amsthm,amssymb}
\usepackage{enumitem}
\usepackage{mathtools}
\usepackage{framed}
\usepackage{chessfss} %chess figure for HW #2
\usepackage[english]{babel} %table for problem A.43
\usepackage{multirow} %table for problem A.43 %\usepackage[table]{xcolor} color certain blocks in a table %\usepackage[pass,showframe]{geometry} just to show the margins \usepackage[makeroom]{cancel} \usepackage{array} %BETWEEN TWO 2-DIGIT NUMBERS
\newcommand{\N}{\mathbb{N}} \newcommand{\Z}{\mathbb{Z}} \newcommand{\thedate}{\today}
\newtheoremstyle{case}{}{}{}{}{}{:}{ }{} \theoremstyle{case} \newtheorem{case}{Case}
\newenvironment{theorem}[2][Theorem]{\begin{trivlist} \item[\hskip \labelsep {\bfseries #1}\hskip \labelsep {\bfseries
#2.}]}{\end{trivlist}} \newenvironment{lemma}[2][Lemma]{\begin{trivlist} \item[\hskip \labelsep {\bfseries #1}\hskip \labelsep {\bfseries
#2.}]}{\end{trivlist}} \newenvironment{exercise}[2][Exercise]{\begin{trivlist} \item[\hskip \labelsep {\bfseries #1}\hskip \labelsep {\bfseries
#2.}]}{\end{trivlist}} \newenvironment{problem}[2][Problem]{\begin{trivlist} \item[\hskip \labelsep {\bfseries #1}\hskip \labelsep {\bfseries
#2.}]}{\end{trivlist}} \newenvironment{question}[2][Question]{\begin{trivlist} \item[\hskip \labelsep {\bfseries #1}\hskip \labelsep {\bfseries
#2.}]}{\end{trivlist}} \newenvironment{corollary}[2][Corollary]{\begin{trivlist}
\item[\hskip \labelsep {\bfseries #1}\hskip \labelsep {\bfseries #2.}]}{\end{trivlist}}