在命题和证明中枚举

在命题和证明中枚举

我对枚举有一个问题。在命题“内部”进行枚举和在证明“内部”进行枚举时,项目的符号看起来不同。

代码

\documentclass[11pt,a5paperfootinclude=true,headinclude=true]{scrbook} % KOMA-Script book
\usepackage[T1]{fontenc}                
\usepackage{lipsum}
\usepackage[linedheaders,parts,pdfspacing]{classicthesis} % ,manychapters
\usepackage[bitstream-charter]{mathdesign}
%\usepackage[osf]{libertine}
\titleformat{\section}
  {\normalfont\bfseries}{\thesection}{1em}{}






\usepackage{amsthm}
\usepackage{amsmath}
 \usepackage{multicol}
 \usepackage{IEEEtrantools}

\usepackage{anysize}
\marginsize{0.1\paperwidth}{0.1\paperheight}{2cm}{2cm}
\newcommand{\bigslant}[2]{{\raisebox{.2em}{$#1$}\left/\raisebox{-.2em}{$#2$}\right.}}

\usepackage{enumerate}



\begin{document}



\theoremstyle{plain}
\newtheorem{thm}{Theorem}[chapter] % reset theorem numbering for each chapter

\theoremstyle{definition}
\newtheorem{defn}[thm]{Definition} % definition numbers are dependent on theorem numbers
\newtheorem{exmp}[thm]{Example}

\theoremstyle{corollary}
\newtheorem{cor}[thm]{Corollary}

\theoremstyle{lemma}
\newtheorem{lem}[thm]{Lemma}

\theoremstyle{proposition}
\newtheorem{prop}[thm]{Proposition}
\newcommand{\ndiv}{\hspace{-4pt}\not|\hspace{2pt}}

\begin{prop}
\begin{enumerate}[(a)] % (a), (b), (c), ...
\item
\item
\end{enumerate}
\end{prop}

\begin{proof}
\begin{enumerate}[(a)] % (a), (b), (c), ...
\item
\item
\end{enumerate}
\end{proof}


\end{document}

结果

在此处输入图片描述

有没有什么办法可以解决这个问题,让它们看起来一模一样,还是说这是不可能的?我们也可以引用枚举项吗?

谢谢

答案1

我会使用enumitem比这更灵活的包,enumerate并为定理和证明中的这种枚举定义一个新环境。

\documentclass[11pt,a5paper,footinclude=true,headinclude=true]{scrbook} % KOMA-Script book
\usepackage[T1]{fontenc}
\usepackage[linedheaders,parts,pdfspacing]{classicthesis} % ,manychapters
\usepackage[bitstream-charter]{mathdesign}

\usepackage{lipsum}
\usepackage{amsmath}
\usepackage{amsthm}

\usepackage{enumitem}

\theoremstyle{plain}
\newtheorem{thm}{Theorem}[chapter] % reset theorem numbering for each chapter
\newtheorem{cor}[thm]{Corollary}
\newtheorem{lem}[thm]{Lemma}
\newtheorem{prop}[thm]{Proposition}

\theoremstyle{definition}
\newtheorem{defn}[thm]{Definition} % definition numbers are dependent on theorem numbers
\newtheorem{exmp}[thm]{Example}

\newenvironment{roster}
 {\begin{enumerate}[font=\upshape,label=(\alph*)]}
 {\end{enumerate}}


\begin{document}



\begin{prop}
\begin{roster}
\item Something
\item Something else
\end{roster}
\end{prop}

\begin{proof}
\begin{roster}
\item Easy
\item The same\qedhere
\end{roster}
\end{proof}


\end{document}

请注意,定理声明应该放在前面\begin{document},并且你正在使用不存在的样式。我删除了不必要的部分。

要在枚举内结束证明,请使用\qedhere,这样墓碑将被放在最后一行。

在此处输入图片描述

答案2

您可以将项目标签设置为[\upshape (a)]而不是[(a)]。请注意\textup{(a)}不适用于enumarate包,因为占位符a隐藏在组中{...}

示例输出

\documentclass{article}

\usepackage{amsthm,enumerate}

\newtheorem{theorem}{Theorem}[section]

\begin{document}

\begin{theorem}
  This has two parts.
  \begin{enumerate}[\upshape (a)]
  \item First part.
  \item Second part.
  \end{enumerate}
\end{theorem}

\begin{proof}
  Also two parts to the proof.
  \begin{enumerate}[\upshape (a)]
  \item Proof of first part.
  \item Proof of second part.
  \end{enumerate}
\end{proof}

\end{document}

答案3

与 类似的解决方案enumitem,但强调交叉引用within a theorem environment works with enumitem, while it did not with枚举. I also loaded thecleverref` 包中的项目,因为它允许不键入被引用的对象类型,而只键入其标签 - 这样,如果定理在后来的版本中变成命题,则不必进行搜索和替换。

        \documentclass[11pt,a5paperfootinclude=true,headinclude=true]{scrbook} % KOMA-Script book
        \usepackage[utf8]{inputenc}
        \usepackage[T1]{fontenc}
        \usepackage{lmodern}

        \usepackage{titlesec}
        \titleformat{\section} {\normalfont\bfseries}{\thesection}{1em}{}

        \usepackage{amsthm}
        \usepackage{amsmath}
        \usepackage[shortlabels]{enumitem}

        \usepackage{cleveref}

        \theoremstyle{plain}
        \newtheorem{thm}{Theorem}[chapter] % reset theorem numbering for each chapter

        \theoremstyle{definition}
        \newtheorem{defn}[thm]{Definition} % definition numbers are dependent on theorem numbers \newtheorem{exmp}[thm]{Example}

        \newtheorem{cor}[thm]{Corollary}
        \newtheorem{lem}[thm]{Lemma}
        \newtheorem{prop}[thm]{Proposition}

        \begin{document}

        \begin{prop}\label{pr1}
        \begin{enumerate}[\upshape(a)] % (a), (b), (c), ...
        \item  \label{item1} Once upon a time…
        \item So what?
        \end{enumerate}
        \end{prop}

        \begin{proof} \begin{enumerate}[(a)] % (a), (b), (c), ...
        \item According to \cref{pr1}\ref{item1}

        \item What else? \qedhere

        \end{enumerate}
        \end{proof}
        \end{document} 

在此处输入图片描述

相关内容