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]
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
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}
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis