diff options
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.sty | 31 |
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} + } |