如何对案件重新编号?

如何对案件重新编号?
What is the procedure to renumbering the case inside a theorem? 

我在文章中讨论了每个定理的不同案例。所以我需要重新编号我的案例。但它进展不顺。也就是说,假设第一个定理包含两个案例,即案例 1 和案例 2,在第二个定理中,如果我开始一个案例,它被命名为案例 3...我该如何纠正这个问题...在此处输入图片描述

这里我列出了我正在使用的代码:

\documentclass[12pt,a4paper]{article}
%\usepackage{lgrind,latexcad}

\usepackage{graphicx,amsmath,amsthm,amssymb,amsfonts,thesisb1,fancyhdr,mathrsfs, indentfirst,dsfont}
 \DeclareGraphicsRule{.bmp}{bmp}{.bb}{}
 \renewcommand{\baselinestretch}{1.4}
 \oddsidemargin .4in
 \evensidemargin .4in
 \topmargin 5pt      %    Nominal distance from top of page to top of
             %    box containing running head.
 %\headheight 6pt     %    Height of box containing running head.
 %\headsep 20pt
 \footskip 30pt
 \textheight 8.5in
 \textwidth 6in
 \parskip 0in
\newlength{\defbaselineskip}
\setlength{\defbaselineskip}{\baselineskip}
\newcommand{\setlinespacing}[1]%
           {\setlength{\baselineskip}{#1 \defbaselineskip}}
\newcommand{\doublespacing}{\setlength{\baselineskip}%
                           {2.0 \defbaselineskip}}
 \pagestyle{fancy}
 \newtheoremstyle{label}% name
  {3pt}%      Space above, empty = `usual value'
  {3pt}%      Space below
  {\upshape}% Body font
  {}%         Indent amount (empty = no indent, \parindent = para indent)
  {\bfseries}% Thm head font
  {}%        Punctuation after thm head
  {.5em}%     Space after thm head: " " = normal interword space;
        %       \newline = linebreak
 {}% Thm head spec
\theoremstyle{label}
\newtheorem{theorem}{Theorem}[chapter]
\newtheorem{axiom}{Axiom}
\newtheorem{proposition}{Proposition}[chapter]
\newtheorem{conjecture}[theorem]{Conjecture}
\newtheorem{corollary}{Corollary}[chapter]
\newtheorem*{corollary*}{Corollary}
\newtheorem*{acknowledgement*}{Acknowledgement}
\newtheorem{lemma}{Lemma}[chapter]
\newtheorem*{example*}{Example}
\newtheorem{note}{Note}
\newtheorem{case}{Case}
\newtheorem{step}{Step}
\newtheorem{claim}{Claim}
\newtheorem*{claim*}{Claim}
\newtheorem{conclusion}[theorem]{Conclusion}
\newtheorem{condition}[theorem]{Condition}
\newtheorem{criterion}[theorem]{Criterion}
\newtheorem{definition}{Definition}[chapter]
\newtheorem*{definition*}{Definition}
\newtheorem{exercise}[theorem]{Exercise}
\newtheorem{example}{Example}[chapter]
\newtheorem*{exercise*}{Exercise}
\newtheorem{summary}{Summary}[chapter]
\newtheoremstyle{label}% name
  {3pt}%      Space above, empty = `usual value'
  {3pt}%      Space below
  {\upshape}% Body font
  {}%         Indent amount (empty = no indent, \parindent = para indent)
  {\bfseries}% Thm head font
  {}%        Punctuation after thm head
  {.5em}%     Space after thm head: " " = normal interword space;
        %       \newline = linebreak
 {}% Thm head spec
\theoremstyle{label}
\newtheorem*{step*}{Step}
\newtheorem*{lemma*}{Lemma}
\newtheorem*{theorem*}{Theorem}
\newtheoremstyle{citing}% name
  {3pt}%      Space above, empty = `usual value'
  {3pt}%      Space below
  {\upshape}% Body font
  {}%         Indent amount (empty = no indent, \parindent = para indent)
  {\normalfont}% Thm head font
  {}%        Punctuation after thm head
  {.5em}%     Space after thm head: " " = normal interword space;
        %       \newline = linebreak
 {\thmnote{#3}}% Thm head spec
\theoremstyle{citing}
\newtheorem*{thmcite}{Theorem}
\newtheorem*{lmcite}{Lemma}
\newtheoremstyle{break1}% name
  {9pt}%      Space above, empty = `usual value'
  {9pt}%      Space below
  {\upshape}% Body font
  {}%         Indent amount (empty = no indent, \parindent = para indent)
  {\bfseries \itshape}% Thm head font
  {}  %        Punctuation after thm head
  {.5em }% Space after thm head:
  {}%         Thm head spec
  \theoremstyle{break1}
\newtheorem{notation}{Notation}

%\newtheorem{example1}{Example}
\theoremstyle{remark}
\newtheoremstyle{label1}% name
  {2pt}%      Space above, empty = `usual value'
  {2pt}%      Space below
  {\upshape}% Body font
  {}%         Indent amount (empty = no indent, \parindent = para indent)
  {\normalfont \itshape}% Thm head font
  {}%        Punctuation after thm head
  {.5em}%     Space after thm head: " " = normal interword space;
 {}% Thm head spec
\theoremstyle{label1}
\newtheorem{result}{Result}[chapter]
\newtheorem{remark}{Remark}[chapter]
\newtheorem*{remark*}{Remark}
\newtheorem*{note*}{Note}
\newtheorem{problem}{Problem}[chapter]
\newtheorem*{solution}{Solution}



%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
\renewcommand{\chaptermark}[1]
   {\markboth{{\, #1}}{#1}}

\renewcommand{\sectionmark}[1]{
   \markright{\thesection.\ #1}}
%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

%\fontfamily{phv}\fontseries{n}\fontsize{10}{12}\selectfont
\newcommand{\helv}{%
   \fontfamily{phv}\fontseries{m}\fontsize{10}{12}\selectfont}

\lhead[\helv \thepage \hfill  \helv \nouppercase{\leftmark}] {}

\rhead[]{{\helv \nouppercase{\rightmark}} \hfill \helv
\thepage}\cfoot{}
%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

\renewcommand{\headrulewidth}{0.7pt}

%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
\def\bc {\begin{center}}
 \def\ec {\end{center}}

% \lhead{\let\uppercase\relax\rightmark}
%\rhead{\let\uppercase\relax\leftmark}
%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 \numberwithin{equation}{chapter}
 \numberwithin{figure}{chapter}
 \numberwithin{table}{chapter}
 \newcommand{\ntt}{\normalfont\ttfamily}
%    command name
\newcommand{\cn}[1]{{\protect\ntt\bslash#1}}
\hfuzz1pc % Don't bother to report overfull boxes if overage is < 1pc

\newcommand{\thmref}[1]{Theorem~\ref{#1}}
\newcommand{\secref}[1]{\S\ref{#1}}
\newcommand{\lemref}[1]{Lemma~\ref{#1}}
%\newcommand{\bysame}{\mbox{\rule{3em}{.4pt}}\,}
\newcommand{\sqt}[1]{\sqrt{\smash[b] {#1}}}

%    \interval is used to provide better spacing after a [ that
%    is used as a closing delimiter.
\newcommand{\interval}[1]{\mathinner{#1}}

%    Notation for an expression evaluated at a particular condition. The
%    optional argument can be used to override automatic sizing of the
%    right vert bar, e.g. \eval[\biggr]{...}_{...}
\newcommand{\eval}[2][\right]{\relax
  \ifx#1\right\relax \left.\fi#2#1\rvert}

%    Enclose the argument in vert-bar delimiters:
\newcommand{\envert}[1]{\left\lvert#1\right\rvert}
\let\abs=\envert

%    Enclose the argument in double-vert-bar delimiters:
\newcommand{\enVert}[1]{\left\lVert#1\right\rVert}
\let\norm=\enVert
\newcommand{\pad}[2]{\frac{\der #1}{\der #2}}
\newcommand{\gol}{\mbox{$\,${\rm Log}$\,$}}
\newcommand{\Log}{\ln}
\newcommand{\ov}[1]{\overline{\smash[b] {#1}}}
\newcommand{\Ndash}{\nobreakdash--}
\newcommand{\BC}{{\mathbb C}}
\newcommand{\BN}{{\mathbb N}}
\newcommand{\BZ}{{\mathbb Z}}
\newcommand{\BR}{{\mathbb R}}
\newcommand{\IC}{{\mathds{C}}}
\newcommand{\IN}{{\mathds{N}}}
\newcommand{\IR}{{\mathds{R}}}
\newcommand{\IE}{{\mathbf{E}}}
\newcommand{\IF}{{\mathbf{F}}}
\newcommand{\minus}{ $ \nobreakdash --- $}
\newcommand{\division}{$\nobreakdash * $}
\begin{document}
\chapter{Fixed Points in Transformational Geometry}
\begin{theorem}
 this is an example theorem..
\end{theorem}
\begin{case}
 this is case 1
\end{case}

\begin{case}
 this is case 2
\end{case}

\begin{theorem}
 i am starting second theorem
\end{theorem}

\begin{case}
 this must give me case 1. But it is giving me case 3
\end{case}
\end{document}

答案1

在 of 之后添加以下行来定义casetheorem

 \numberwithin{case}{theorem}
 \renewcommand{\thecase}{\arabic{case}}

相关内容