Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I would like to have a \newmdtheoremenv environment without any number, like I get it from \newtheorem*. How can I do this?

This is my \newmdtheoremenv environment at the moment.

\newmdtheoremenv[outerlinewidth=2,leftmargin=20,%
rightmargin=20,backgroundcolor=blue,%
outerlinecolor=blue,innertopmargin=\topskip,%
splittopskip=\topskip,skipbelow=\baselineskip,%
skipabove=\baselineskip,ntheorem,]{schwartz}%
{The Schwartz-space}
share|improve this question
    
Welcome to TeX.sx! –  Kurt Oct 25 '12 at 18:15

1 Answer 1

up vote 6 down vote accepted

Load the ntheorem package in addition to mdframed and issue \theoremstyle{nonumberplain} before \newmdtheoremenv.

\documentclass{article}

\usepackage{mdframed}
\usepackage{ntheorem}

\theoremstyle{nonumberplain}
\newmdtheoremenv[outerlinewidth=2,leftmargin=20,%
rightmargin=20,backgroundcolor=blue,%
outerlinecolor=blue,innertopmargin=\topskip,%
splittopskip=\topskip,skipbelow=\baselineskip,%
skipabove=\baselineskip,ntheorem,]{schwartz}%
{The Schwartz-space}

\begin{document}

Some text.

\begin{schwartz}
A theorem.
\end{schwartz}

\end{document}

enter image description here

share|improve this answer
    
Thanks. - For the record: if one uses AMS-packages one has to be a little bit careful but this is explained in the documentation of ntheorem. –  CPJ Oct 29 '12 at 8:14

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.