summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/latex-tipps-und-tricks/minijour.cls
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/minijour.cls
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/minijour.cls')
-rw-r--r--Master/texmf-dist/doc/latex/latex-tipps-und-tricks/minijour.cls93
1 files changed, 93 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/latex-tipps-und-tricks/minijour.cls b/Master/texmf-dist/doc/latex/latex-tipps-und-tricks/minijour.cls
new file mode 100644
index 00000000000..e12006120ac
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/latex-tipps-und-tricks/minijour.cls
@@ -0,0 +1,93 @@
+% minijour.cls
+\LoadClass[a4paper,twoside]{report}
+\RequirePackage[dvips]{graphics}
+\RequirePackage{german,ifthen,calc}
+
+% interne Platzhalter
+\newcommand{\@jahrgang}{\the\year}
+\newcommand{\@ausgabe}{}
+\newcommand{\ausgabename}{Ausgabe~\@ausgabe}
+\newcommand{\@autor}{}
+\newcommand{\@impressum}{}
+\newcommand{\@maintitle}{Programmieren wie einst}
+\newcommand{\@subtitle}{Mitteilungen zu Fragen der EDV}
+
+% Benutzerkommandos
+\newcommand{\maintitle}[1]
+ {\renewcommand{\@maintitle}{#1}}
+\newcommand{\subtitle}[1]
+ {\renewcommand{\@subtitle}{#1}}
+\renewcommand{\author}[1]
+ {\renewcommand{\@autor}{Von #1}}
+\newcommand{\ausgabe}[1]
+ {\renewcommand{\@ausgabe}{#1}}
+\newcommand{\impressum}[1]
+ {\renewcommand{\@impressum}{#1}}
+\newcommand{\jahrgang}[1]
+ {\renewcommand{\@jahrgang}{#1}}
+
+%Titelseite
+\renewcommand{\maketitle}
+ { \thispagestyle{empty}
+ \begin{minipage}{\textwidth}
+ \parbox[c][5cm][s]{\textwidth}
+ {\vspace{0pt plus.5fil}
+ \rightline{%
+ \ausgabename \hspace{2em}
+ Jahrgang~\@jahrgang}
+ \vfil
+ \centerline{%
+ \Huge\bfseries\@maintitle}
+ \vspace{0pt plus.5fil}
+ \centerline{\bfseries\@subtitle}
+ \vfil
+ \rule{\textwidth}{3mm}
+ }
+
+ \hbox to \textwidth
+ {\parbox[c][12cm][t]{7cm}
+ {\vspace{1em}
+ {\LARGE Inhalt}\\\@starttoc{loe}
+ }
+ \parbox[c][12cm][c]{2em}
+ {\hfil\rule{0.2mm}{11cm}\hfil}
+ \parbox[c][12cm][c]{\textwidth-7cm-2em}
+ {\resizebox*{\textwidth-7cm-2em}{!}
+ {\includegraphics{rgray.eps}}
+ }
+ }
+
+ \vspace{1em}\rule{\textwidth}{3mm}\vspace{1em}
+
+ \ifthenelse{\equal{\@impressum}{}}
+ {}{\small\textbf{Impressum}\\\@impressum}
+
+ \end{minipage}
+ \newpage\thispagestyle{empty} \tableofcontents
+ \par\bigskip
+ }
+
+\newcommand{\article}
+ {\@ifstar{\@@articles}{\@@article}}
+\newcommand{\@article}
+ {\@startsection{chapter}{1}{0pt}
+ {-3.5ex plus -1ex minus -.2ex}
+ {2.3ex plus .2ex}{\normalfont\Large\bfseries}}
+\newcommand{\@@articles}[1]{\@article*{#1}
+ \centerline{\@autor} }
+\newcommand{\@@article}[4]
+ {\twocolumn[\@article{#1}
+ \centerline{\@autor}\vspace*{0.5em}
+ \addcontentsline{loe}{section}
+ {$\bullet$ #2}
+ \addtocontents{loe}
+ {\protect\mjbcom{}\@autor\protect\mjecom}
+ \addtocontents{loe}
+ {\protect\mjbcom{}#3\protect\mjecom}
+ \ifx#4\empty\else\begin{quote} #4 \end{quote}\fi
+ ]
+ \markright{#2}
+ }
+
+\newcommand{\mjbcom}{\noindent\bgroup\footnotesize}
+\newcommand{\mjecom}{\egroup\par\vspace{1ex}} \ No newline at end of file