2012-01-10, 21:45
Das mdframed
Paket bietet eine Vielzahl von Möglichkeiten, Text oder andere Inhalte mit Rahmen zu versehen. Die folgenden Beispiele sind der Dokumentation des Pakets entnommen:
\documentclass{scrartcl}
\usepackage[]{mdframed}
\begin{document}
\begin{mdframed}
Hallo Welt!\newline Foobar
\end{mdframed}
\newmdenv [linecolor=red, frametitle=Infobox,leftmargin=3cm,rightmargin=3cm]{infobox}
\begin{infobox}[ backgroundcolor=yellow ]
foo
foo
foo
\end{infobox}
\begin{verbatim}
Hallo
Welt
\end{verbatim}
\surroundwithmdframed[linewidth=2pt ]{verbatim}
\begin{verbatim}
Hallo
Welt
\end{verbatim}
\mdfdefinestyle{mystyle}{leftmargin=0pt ,linecolor=blue}
\begin{mdframed}[style=mystyle]
foo
\end{mdframed}
\newmdtheoremenv [linecolor=blue]{lemma}{Lemma}[section]
\section{abc}
\begin{lemma}[Some title]
foo
foo
foo
foo
foo
foo
\end{lemma}
\end{document} |
\documentclass{scrartcl}
\usepackage[]{mdframed}
\begin{document}
\begin{mdframed}
Hallo Welt!\newline Foobar
\end{mdframed}
\newmdenv [linecolor=red, frametitle=Infobox,leftmargin=3cm,rightmargin=3cm]{infobox}
\begin{infobox}[ backgroundcolor=yellow ]
foo
foo
foo
\end{infobox}
\begin{verbatim}
Hallo
Welt
\end{verbatim}
\surroundwithmdframed[linewidth=2pt ]{verbatim}
\begin{verbatim}
Hallo
Welt
\end{verbatim}
\mdfdefinestyle{mystyle}{leftmargin=0pt ,linecolor=blue}
\begin{mdframed}[style=mystyle]
foo
\end{mdframed}
\newmdtheoremenv [linecolor=blue]{lemma}{Lemma}[section]
\section{abc}
\begin{lemma}[Some title]
foo
foo
foo
foo
foo
foo
\end{lemma}
\end{document}
Uwe Ziegenhagen likes LaTeX and Python, sometimes even combined.
Do you like my content and would like to thank me for it? Consider making a small donation to my local fablab, the Dingfabrik Köln. Details on how to donate can be found here Spenden für die Dingfabrik.
More Posts - Website