summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/latex-tipps-und-tricks/tocart.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2009-05-19 18:54:54 +0000
committerKarl Berry <karl@freefriends.org>2009-05-19 18:54:54 +0000
commit2d248026682e0a02fa2b004a0ad2f13f57d8535c (patch)
tree7088bbd745de030191c2d843c4b3f4d9d5c46d91 /Master/texmf-dist/doc/latex/latex-tipps-und-tricks/tocart.sty
parenteecee5a57aa7fbeb22e0df8440fb3b06c5117fc7 (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/tocart.sty')
-rw-r--r--Master/texmf-dist/doc/latex/latex-tipps-und-tricks/tocart.sty31
1 files changed, 31 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/latex-tipps-und-tricks/tocart.sty b/Master/texmf-dist/doc/latex/latex-tipps-und-tricks/tocart.sty
new file mode 100644
index 00000000000..cce262cc1a1
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/latex-tipps-und-tricks/tocart.sty
@@ -0,0 +1,31 @@
+% tocart.sty
+% Fuer Artikel in Zeitschriften:
+% \shorttoc rahmt TOC ein
+\RequirePackage{calc}
+
+\newcommand{\shorttocname}{Inhalt}
+\newcommand{\shorttoc}
+ {{\setlength{\fboxsep}{3mm}
+ \noindent
+ \fbox{\begin{minipage}{\linewidth - \fboxsep*2}
+ \setlength{\parskip}{1.5em}
+ \centerline{\Large\bfseries\shorttocname}\par
+ \@starttoc{stc}
+ \end{minipage}}\par
+ }}
+
+\newcommand{\l@title}[2]{$\bullet$ \textbf{#1}\\
+ \makebox[\linewidth]{\dotfill\hspace{1em}#2}\\}
+\newcommand{\l@subtitle}[2]{#1\\}
+\newcommand{\l@author}[2]{{\small Von #1}\par}
+
+% \article{Titel}{Untertitel}{Autor}
+\newcommand{\article}[3]
+ {\@startsection{section}{1}{0pt}
+ {-3.5ex plus-1ex minus -.2ex}
+ {2.3ex plus .2ex}
+ {\normalfont\Large\bfseries}*{#1}
+ \addcontentsline{stc}{title}{#1}
+ \addcontentsline{stc}{subtitle}{#2}
+ \addcontentsline{stc}{author}{#3}
+ }