我指的是这次谈话:
我想重现该命题的参考编号,如以下示例所示:
\documentclass[xcolor=x11names,compress]{beamer}
\usepackage{xcolor}
\usepackage{framed}
\usepackage{amsthm}
\usepackage[utf8]{inputenc}
\colorlet{shadecolor}{blue!15}
\newcommand{\propnumber}{} % initialize
\newtheorem*{prop}{Proposition \propnumber}
\newenvironment{propc}[1]
{\renewcommand{\propnumber}{#1}%
\begin{shaded}\begin{prop}}
{\end{prop}\end{shaded}}
\begin{document}
\begin{frame}
\begin{propc}{3.1}
Proposition here.
\end{propc}
\end{frame}
\end{document}
在我的文档中,内容如下:
\documentclass[xcolor=x11names,compress]{beamer}
\usepackage{eurosym}
\usepackage{makeidx}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{cases}
\usepackage[titletoc]{appendix}
\usepackage{amsthm}
\usepackage{thmtools}
\usepackage{mathrsfs}
\usepackage{amsbsy}
\usepackage[export]{adjustbox}
\usepackage{framed}
\usepackage[utf8]{inputenc}
\usepackage{xcolor}
\usepackage{graphicx}
\colorlet{shadecolor}{blue!15}
\newcommand{\propnumber}{} % initialize
\newtheorem*{prop}{Proposition \propnumber}
\newenvironment{propc}[1]
{\renewcommand{\propnumber}{#1}%
\begin{shaded}\begin{prop}}
{\end{prop}\end{shaded}}
\usetheme{Dresden}
\useinnertheme{rounded}
\begin{document}
\begin{frame}{Pessimistic Beliefs}
\begin{propc}{3.1}
Prop here
\end{propc}
\end{frame}
\end{document}
我不明白为什么它不起作用...我试图删除每个包和主题,但没有成功......