diff options
author | Karl Berry <karl@freefriends.org> | 2009-05-19 18:54:54 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2009-05-19 18:54:54 +0000 |
commit | 2d248026682e0a02fa2b004a0ad2f13f57d8535c (patch) | |
tree | 7088bbd745de030191c2d843c4b3f4d9d5c46d91 /Master/texmf-dist/doc/latex/latex-tipps-und-tricks/kasten.sty | |
parent | eecee5a57aa7fbeb22e0df8440fb3b06c5117fc7 (diff) |
move german latex docs out of texmf-doc
git-svn-id: svn://tug.org/texlive/trunk@13264 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/latex-tipps-und-tricks/kasten.sty')
-rw-r--r-- | Master/texmf-dist/doc/latex/latex-tipps-und-tricks/kasten.sty | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/latex-tipps-und-tricks/kasten.sty b/Master/texmf-dist/doc/latex/latex-tipps-und-tricks/kasten.sty new file mode 100644 index 00000000000..0191946b33d --- /dev/null +++ b/Master/texmf-dist/doc/latex/latex-tipps-und-tricks/kasten.sty @@ -0,0 +1,50 @@ +% kasten.sty +\RequirePackage{calc} + +% Der Kastenzaehler. +\newcommand{\kastenname}{Kasten} +\newcounter{kasten} +\renewcommand{\thekasten}{\arabic{kasten}} + +% Box fuer den Kasteninhalt und Rahmenparameter +\newsavebox{\kbox} +\newlength{\kastensep} + \setlength{\kastensep}{5mm} + +\newlength{\kastenindent} + \setlength{\kastenindent}{0.5cm} + +% der Befehl selbst +\newenvironment{kasten} + {\renewcommand{\@makecaption}[2]{\textsc{##1} ##2} + \@float{kasten} + \begin{lrbox}{\kbox} + \begin{minipage} + {\columnwidth-\kastensep*2-\fboxrule-% + \kastenindent*2} + \scriptsize} + { \end{minipage} + \end{lrbox} + {\fboxsep=\kastensep + \hspace{\kastenindent}\fbox{\usebox{\kbox}} + } + \end@float} +\newenvironment{kasten*} + {\renewcommand{\@makecaption}[2]{\textsc{##1} ##2} + \@dblfloat{kasten} + \begin{lrbox}{\kbox} + \begin{minipage} + {\textwidth- + (\kastensep+\fboxrule+\kastenindent)*2} + \scriptsize} + {\end{minipage} + \end{lrbox} + {\fboxsep=\kastensep + \hspace{\kastenindent}\fbox{\usebox{\kbox}} + } + \end@dblfloat} + +\newcommand{\fps@kasten}{htbp} +\newcommand{\ftype@kasten}{4} +\newcommand{\ext@kasten}{lok} +\newcommand{\fnum@kasten}{\kastenname~\thekasten} |