话不多说,先上图

代码如下

\documentclass[a4paper,10pt]{article}
\usepackage[svgnames]{xcolor}
\usepackage[framed]{ntheorem}
\usepackage{framed}
\usepackage{tikz}
\usetikzlibrary{shadows}
\newtheorem*{Theorem}{Theorem}
\theoremclass{Theorem}
\theoremstyle{break}

\tikzstyle{thmbox} = [rectangle, rounded corners, draw=black,
  fill=Cyan!20, inner sep=10pt, drop shadow={fill=black, opacity=1}]
\newcommand\thmbox[1]{%
  \noindent\begin{tikzpicture}%
  \node [thmbox] (box){%
    \begin{minipage}{.94\textwidth}%
      #1%
    \end{minipage}%
  };%
  \end{tikzpicture}}

\let\theoremframecommand\thmbox
\newshadedtheorem{ImportantTheorem}[Theorem]{Theorem}
\begin{document}
\section*{Theorems}
Text
\begin{ImportantTheorem}[Euler's identity]
The equality
\[ e^{\pi i} +1 = 0 \]
where $e$ is Euler'
s number, $\pi$ is the ratio of any circle's circumference
to its diameter and $i$ is the imaginary unit, is called \emph{Euler'
s identity}.
\end{ImportantTheorem}
\end{document}

点赞(2)

评论列表 共有 0 条评论

暂无评论
立即
投稿

微信公众账号

微信扫一扫加关注

发表
评论
返回
顶部