命題内と証明内の列挙

命題内と証明内の列挙

列挙に関して、問題が 1 つあります。列挙が命題の「内部」で行われる場合と、証明の「内部」で行われる場合では、項目のシンボルの見え方が異なります。

コード

\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)}および では機能しないことに注意してください。enumaratea{...}

サンプル出力

\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

と同様のソリューションですが、cleverref` パッケージの列挙enumitem項目を相互参照するという事実を強調しています。これにより、参照されるオブジェクトの種類ではなく、そのラベルのみを入力できるため、定理が後のバージョンで命題になった場合でも、検索と置換を行う必要がなくなります。within a theorem environment works with enumitem, while it did not with. I also loaded the

        \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} 

ここに画像の説明を入力してください

関連情報