summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/mdframed/md-test.tex
blob: 725e026f2a5dd5201c2f1d44a6f8ac128ebfed1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
\documentclass[11pt]{scrartcl}
\usepackage{ntheorem}
\usepackage[ style =1 ,linewidth=0,linecolor=blue,backgroundcolor=yellow,margin=0pt,leftmargin=0cm,rightmargin=0cm,xcolor=cmyk] {mdframed}
\usepackage { lipsum}
\usepackage{showframe}
\newtheorem{mdlemma}{Lemma}[section]

\newenvironment{lemma}{%
    \begin{mdframed}[ntheorem=true,margin=10,backgroundcolor=red!30,linecolor=cyan,fontcolor=blue!70!black,linewidth=0,rightmargin=0cm,leftmargin=0cm,roundcorner=5pt,leftmargin=20pt,rightmargin=20pt]% 
     \begin{mdlemma}%
     }{%
     \end{mdlemma}%
    \end{mdframed}%
}


\begin{document}
\begin{mdframed} [skipabove=1cm, outerlinewidth=4pt , middlelinewidth=2pt , innerlinewidth=1pt ,%
outerlinecolor=blue , middlelinecolor=yellow , innerlinecolor=red ,%
backgroundcolor=orange,roundcorner=10pt]
\lipsum[1]
\end{mdframed}

    \begin{lemma}Text
           \begin{equation}
               x+y=2
           \end{equation}
           \par\noindent\rule{\linewidth}{2pt}
    \end{lemma}%
\clearpage%
\begin{mdframed}%
Some Text with an first empy line. The is only text to fill the line. It has no sence.

Some Text with an first empy line. The is only text to fill the line. It has no sence.
\end{mdframed}

\clearpage
   \section{foo}
% % % % % % % % % % %
   \begin{lemma}
%        \lipsum[1]\lipsum[1]\lipsum[1]
        \begin{itemize}
          \item HALLO
        \end{itemize}
    \end{lemma}

   \begin{lemma}
      HALLO WELT!
   \end{lemma}
    \begin{lemma}\mbox{ }\par\noindent
               \rule{\linewidth}{4pt}
    \end{lemma}
    \begin{mdframed}
       \rule{\linewidth}{4pt}
     \end{mdframed}
    \begin{lemma}
          \lipsum[5]\lipsum[5]
          \lipsum[5]\lipsum[5]
    \end{lemma}
    \lipsum[1]%
    \begin{lemma}Text
           \begin{equation}
               x+y=2
           \end{equation}
           \par\noindent\rule{\linewidth}{2pt}
    \end{lemma}%
%    
        \begin{lemma}\mbox{ }
                   \begin{equation}
                       x+y=2
                   \end{equation}
                   \par\noindent\rule{\linewidth}{2pt}
            \end{lemma}
    \begin{mdframed}%
           \lipsum[1]\par\noindent\rule{\linewidth}{2pt}
    \end{mdframed}

\end{document}