I new to this forum, but hope that I have put my problem in the right place?
I have made a \newtheorem as below.
Code: Select all
\newtheorem{example}{Example}[subsection]
\Emil
Code: Select all
\newtheorem{example}{Example}[subsection]
NEW: TikZ book now 40% off at Amazon.com for a short time.
Code: Select all
\documentclass{article}
\usepackage{framed}
\usepackage{amsthm}
\usepackage{lipsum}% just to generate some text
\newtheorem{example}{Example}[subsection]
\newenvironment{myexample}
{\begin{framed}\begin{example}}
{\end{example}\end{framed}}
\begin{document}
\lipsum[1]
\begin{myexample}
\lipsum[1]
\end{myexample}
\lipsum[1]
\end{document}
NEW: TikZ book now 40% off at Amazon.com for a short time.