答案1
mdframed
缺乏定义未编号定理的可能性,但添加它并不困难。
接下来,可以应用变量标签的常见技巧。
\documentclass{article}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{mdframed}
\NewDocumentCommand\newmdtheoremenvnonumber{O{} m m }{%
\newtheorem*{#2}{#3}
\BeforeBeginEnvironment{#2}{%
\begin{mdframed}[#1]}%
\AfterEndEnvironment{#2}{%
\end{mdframed}}%
}
\newmdtheoremenvnonumber{mydefinner}{\mydeflabel}
\newcommand{\mydeflabel}{}
\newenvironment{mydef}[1]
{\renewcommand\mydeflabel{#1}\begin{mydefinner}}
{\end{mydefinner}}
\newcommand{\attribution}[1]{\textup{(#1)}}
\begin{document}
\begin{mydef}{Machine Learning}
Machine learning is the field of study that gives computers
the ability to learn without being explicitly programmed.
\attribution{Arthur Samuel, 1959}.
\end{mydef}
\end{document}