summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/latex-tipps-und-tricks/tocart.sty
blob: cce262cc1a1d3d4fdfb185d30cc8f8ba54dd00c9 (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
%  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}
 }