
Eu tenho um problema com enumeração. Os símbolos dos itens parecem diferentes quando a enumeração é feita “dentro” de proposições e quando a enumeração é feita “dentro” de uma prova.
O código
\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}
e o resultado
Existe algum remédio para isso, para que pareçam idênticos ou é impossível? Podemos também fazer referência ao item enumerado?
Obrigado
Responder1
Eu usaria o enumitem
pacote que é muito mais flexível enumerate
e definiria um novo ambiente para esse tipo de enumeração em teoremas e provas.
\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}
Observe que as declarações do teorema devem vir antes \begin{document}
e que você está usando estilos inexistentes. Eu removi os bits não essenciais.
Para finalizar uma prova dentro de uma enumeração, use \qedhere
, para que a lápide seja colocada na última linha.
Responder2
Você pode definir os rótulos dos itens como [\upshape (a)]
em vez de [(a)]
. Observe que isso \textup{(a)}
não funcionará com o enumarate
pacote e porque o espaço reservado a
está oculto em um grupo {...}
.
\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}
Responder3
Uma solução semelhante com enumitem
, mas enfatizando o fato de que a referência cruzada dos itens within a theorem environment works with enumitem, while it did not with
enumera . I also loaded the
o pacote intelligentref`, pois permite não digitar o tipo de objeto que está sendo referenciado, mas apenas seu rótulo - de modo que se um teorema se tornar uma versão posterior uma proposta, você não precisa fazer uma busca e substituição.
\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}