summaryrefslogtreecommitdiff
path: root/info/examples/ltt/tocart.sty
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /info/examples/ltt/tocart.sty
Initial commit
Diffstat (limited to 'info/examples/ltt/tocart.sty')
-rw-r--r--info/examples/ltt/tocart.sty31
1 files changed, 31 insertions, 0 deletions
diff --git a/info/examples/ltt/tocart.sty b/info/examples/ltt/tocart.sty
new file mode 100644
index 0000000000..0c6753a421
--- /dev/null
+++ b/info/examples/ltt/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}
+ }