如何對證明中的案例進行編號,如案例 1(a)

如何對證明中的案例進行編號,如案例 1(a)

我怎樣才能展示

定理1. 這裡開始定理。
證明。這從證明
聲明 1 開始。
情況1(a)。這是第一個索賠案例。
證明。這是情況1(a)的證明。
情況 1(b)。這是第一個索賠第二個案例。
證明。這是情況 1(b) 的證明。
情況 1(c)。這是第一個索賠第三個案例。
證明。這是案例 1(c) 的證明。
索賠2。
情況2(a)。這是第二個索賠第一個案例。
證明。這是情況2(a)的證明。
情況 2(b)。這是第二個索賠第二個案例。
證明。這是情況 2(b) 的證明。

這裡我面臨的問題是在聲明中插入編號環境。這是我正在使用的程式碼:

\documentclass[12pt]{article}
\usepackage{amssymb,amsmath,amsthm}
\usepackage[colorlinks=true, allcolors=black]{hyperref}
\usepackage[capitalize,nameinlink]{cleveref}
\usepackage{lipsum}

\newtheorem{theo}{Theorem}

\theoremstyle{definition}
\newtheorem{claim}{Claim}[theo]
\renewcommand\theclaim{\arabic{claim}}
\newtheorem{case}{Case}[claim]

\begin{document}
\begin{theo}
Here starts the theorem.
\end{theo}
\begin{proof}
This starts proof
  \begin{claim}
  This claim contains three sub cases.
    \begin{case}\label{c1} %Case 1.1. showing but Case 1(a) needed
    This is first claim first case.
      \begin{proof}[Proof of \cref{c1}]
      This is proof of case 1(a).%qed symbol not needed here
      \end{proof}
    \end{case}
    \begin{case}
    This is first claim second case.
    \end{case}
    \begin{case}
    This is first claim third case.
    \end{case}
  \end{claim}
  \begin{claim}
  This claim contains two sub cases.
    \begin{case}
    This is second claim first case.
    \end{case}
    \begin{case}\label{c2}
    This is second claim second case.
      \begin{proof}[Proof of \cref{c2}]
      This is proof of case 2(b).\qedhere %qed needed here.
      \end{proof}
    \end{case}
  \end{claim}
\end{proof}
\end{document}

這段程式碼的輸出是: 在此輸入影像描述

請幫助我,以便我可以按照上面提到的引用創建輸出。

答案1

只需添加這一行:

\renewcommand\thecase{\theclaim(\alph{case})}

在此輸入影像描述

相關內容