设置个特殊点的定理样式

发布于 2021-07-07 15:46:26

直接上代码:

% Create a bib file. Can be deleted if a bib file exists.
\begin{filecontents*}[overwrite]{ref.bib}
  @misc{somebody,
    author = {Somebody},
    year = {2000},
    title = {A generic title},
  }
\end{filecontents*}

\documentclass{article}

% Define a theoremstyle
\usepackage{amsthm}
\newtheoremstyle{propstyle}{3pt}{3pt}{\itshape}{}{\itshape}{:}{.5em}{\thmname{#1} \thmnumber{#2} \thmnote{#3}}
\theoremstyle{propstyle}
\newtheorem{prop}{Property}

% Change the optional argument
\usepackage{xpatch}
\makeatletter
\xpatchcmd{\@thm}{\fontseries\mddefault\upshape}{}{}{}
\makeatother

% Citation
\usepackage{natbib}
\bibliographystyle{abbrv}

\begin{document}
  \begin{prop}[{\cite{somebody}}]
    Some sentences.
  \end{prop}
  \bibliography{ref}
\end{document}

image.png

0 条评论

发布
问题