![¿Cómo tener texto sin cursiva de \cite[]{} dentro del teorema usando amsthm y clase de artículo?](https://rvso.com/image/476241/%C2%BFC%C3%B3mo%20tener%20texto%20sin%20cursiva%20de%20%5Ccite%5B%5D%7B%7D%20dentro%20del%20teorema%20usando%20amsthm%20y%20clase%20de%20art%C3%ADculo%3F.png)
Tengo un archivo tex:
\documentclass[11pt]{amsart}
\usepackage{amssymb,amsthm,enumitem,mathtools,fullpage,microtype}
\usepackage[hypertexnames=false]{hyperref}
\hypersetup{
colorlinks=true,
linkcolor=blue,
filecolor=blue,
urlcolor=red,
citecolor=magenta
}
\usepackage[noabbrev,capitalize,nameinlink]{cleveref}
\usepackage{autonum}
\numberwithin{equation}{section}
\newtheorem{theorem}{Theorem}[section]
\theoremstyle{definition}
\newtheorem{assumption}[theorem]{Assumption}
\newcommand{\RR}{\mathbb{R}}
\newcommand{\TT}{\mathbb{T}}
\setlist{font=\normalfont}
\begin{document}
\section{Introduction}
\begin{assumption} \label{main_assmpt1}
There exist constants $C>0, \alpha \in (0, 1), \beta \in (0, 1)$ such that for $t \in \TT$ and $x, y \in \RR^d$:
\begin{enumerate}[label=(A\arabic*)]
\item $\nu$ has a density $\ell_\nu \in C^\alpha_b (\RR^d)$.
\item $a_t$ is invertible.
\end{enumerate}
\end{assumption}
\begin{theorem}
Let \cref{main_assmpt1} hold.
\begin{enumerate}
\item \cite[Theorem 2.1]{mckean1966class} ...
\end{enumerate}
\end{theorem}
\begin{thebibliography}{10}
\bibitem{mckean1966class}
Henry~P McKean~Jr.
\newblock A class of markov processes associated with nonlinear parabolic
equations.
\newblock {\em Proceedings of the National Academy of Sciences},
56(6):1907--1911, 1966.
\end{thebibliography}
\end{document}
Me gusta especialmente el nombre del teorema entre comillas que no está en cursiva:
Cuando cambio de \documentclass[11pt]{amsart}
a \documentclass[11pt]{article}
, perdí esta apariencia deseada:
¿Podrías explicar cómo mantener esta característica estética dentro de la clase article
?
Respuesta1
amsart
usos:
\def\@citestyle{\m@th\upshape\mdseries}
\let\citeform\@firstofone
\def\@cite#1#2{{%
\@citestyle[\citeform{#1}\if@tempswa, #2\fi]}}
para establecer citas explícitamente \upshape
. El comando de cita predeterminado de LaTeX no hace algo como esto. La \@cite
definición predeterminada de LaTeX es:
\def\@cite#1#2{[{#1\if@tempswa , #2\fi}]}
Entonces, dentro de un teorema, la fuente del cuerpo del teorema también se usa para la cita. Pero puedes redefinirlo de manera similar copiando el amsart
código:
\documentclass[11pt]{article}
\usepackage{amsthm}
\usepackage{amssymb,enumitem,mathtools,fullpage,microtype}
\usepackage[hypertexnames=false]{hyperref}
\hypersetup{
colorlinks=true,
linkcolor=blue,
filecolor=blue,
urlcolor=red,
citecolor=magenta
}
\usepackage[noabbrev,capitalize,nameinlink]{cleveref}
\usepackage{autonum}
\newcommand{\RR}{\mathbb{R}}
\newcommand{\TT}{\mathbb{T}}
\setlist{font=\normalfont}
\numberwithin{equation}{section}
\newtheorem{theorem}{Theorem}[section]
\theoremstyle{definition}
\newtheorem{assumption}[theorem]{Assumption}
\makeatletter
\def\@citestyle{\m@th\upshape\mdseries}
\let\citeform\@firstofone
\def\@cite#1#2{{%
\@citestyle[\citeform{#1}\if@tempswa, #2\fi]}}
\makeatother
\begin{document}
\section{Introduction}
\begin{assumption} \label{main_assmpt1}
There exist constants $C>0, \alpha \in (0, 1), \beta \in (0, 1)$ such that for $t \in \TT$ and $x, y \in \RR^d$:
\begin{enumerate}[label=(A\arabic*)]
\item $\nu$ has a density $\ell_\nu \in C^\alpha_b (\RR^d)$.
\item $a_t$ is invertible.
\end{enumerate}
\end{assumption}
\begin{theorem}
Let \cref{main_assmpt1} hold.
\begin{enumerate}
\item \cite[Theorem 2.1]{mckean1966class} ...
\end{enumerate}
\end{theorem}
\begin{thebibliography}{10}
\bibitem{mckean1966class}
Henry~P McKean~Jr.
\newblock A class of markov processes associated with nonlinear parabolic
equations.
\newblock {\em Proceedings of the National Academy of Sciences},
56(6):1907--1911, 1966.
\end{thebibliography}
\end{document}
Notas:
El código anterior funciona si realmente creas tu bibliografía manualmente. Si utiliza un paquete como
biblatex
, consulte el manual de ese paquete para obtener más información sobre el formato de las citas. Y sí, recomendaría utilizar dicho paquete, es decir,biblatex
.Si no solo desea que las citas sino también el resto del cuerpo del teorema no usen cursiva, debe usarla
\newtheoremstyle
para definir el estilo correspondiente o usar, por ejemplo,\theoremstyle{definition}
.Si, por ejemplo, usas,
natbib
puedes usar algo como\bibpunct{\upshape\mdseries[}{]}{,}{n}{}{,}
. Consulte elnatbib
manual para obtener más información sobre\bibpunct
.