From b740636a664215d42ffccd32cc5c6108e2084675 Mon Sep 17 00:00:00 2001 From: john stone Date: Fri, 19 Jul 2013 20:34:58 +0200 Subject: [PATCH] initial functions --- datenschleuder.cls | 77 ++++++++++++++++++++++++++++++++++++++++++++++ img/Logo_CCC.svg | 63 +++++++++++++++++++++++++++++++++++++ img/Makefile | 6 ++++ 3 files changed, 146 insertions(+) create mode 100644 datenschleuder.cls create mode 100644 img/Logo_CCC.svg create mode 100644 img/Makefile diff --git a/datenschleuder.cls b/datenschleuder.cls new file mode 100644 index 0000000..71e93de --- /dev/null +++ b/datenschleuder.cls @@ -0,0 +1,77 @@ +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% Copyright 2013 koeart, john, ben % +% % +% This program is free software: you can redistribute it and/or modify it % +% under the terms of the GNU General Public License as published by the % +% Free Software Foundation, either version 3 of the License, or (at your % +% option) any later version. % +% % +% This program is distributed in the hope that it will be useful, but % +% WITHOUT ANY WARRANTY; without even the implied warranty of % +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU % +% General Public License for more details. % +% % +% You should have received a copy of the GNU General Public License along % +% with this program. If not, see . % +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\ProvidesClass{datenschleuder}[% + 2013/07/19 v0.1 Datenschleuder +] +\LoadClass[% + 10pt, + pdftex, + a5paper, + BCOR=1cm, + twoside, + twocolumn, + DIV=15, + %headheight=36px +]{scrartcl} +\RequirePackage{ifxetex} +\ifxetex + \RequirePackage{fontspec} + \RequirePackage{xunicode} + \RequirePackage{xltxtra} + \setmainfont[Mapping=tex-text,Numbers={OldStyle}]{Linux Libertine O} + \setsansfont[Mapping=tex-text,Numbers={OldStyle}]{Linux Biolinum O} + \setmonofont[Mapping=tex-text]{Courier Prime} +\fi + + +%FIXME: use abstract environment in prior of nasty DSabstract command +\renewenvironment{abstract}{% + \begin{center} + \bfseries +}{% + \end{center} +} +\newcommand{\@DSabstract}{} +\newcommand{\DSabstract}[1]{\renewcommand{\@DSabstract}{#1}} + + +\renewcommand{\maketitle}{% + \twocolumn[ + \textsf{\Huge\@title} + + \begin{center}% + \textsf{von \@author}%FIXME: implement mail and array of authors + \end{center} + + {\bfseries\@DSabstract} + \vspace*{3mm} + ] + + \normalsize +} + +\RequirePackage{xkeyval} +\define@key{DSarticleKeys}{title}{\renewcommand{\@title}{#1}}% +\define@key{DSarticleKeys}{author}{\author{#1}} +\define@key{DSarticleKeys}{DSabstract}{\renewcommand{\@DSabstract}{#1}} + +\newenvironment{DSarticle}[1][]{% + \setkeys{DSarticleKeys}{#1}% + \maketitle +}{} + diff --git a/img/Logo_CCC.svg b/img/Logo_CCC.svg new file mode 100644 index 0000000..c9ce5fa --- /dev/null +++ b/img/Logo_CCC.svg @@ -0,0 +1,63 @@ + + + + + + + + image/svg+xml + + + + + + + + diff --git a/img/Makefile b/img/Makefile new file mode 100644 index 0000000..b75c7b9 --- /dev/null +++ b/img/Makefile @@ -0,0 +1,6 @@ +%.pdf: %.svg + inkscape --export-pdf=$@ $< + +%.png: %.svg + inkscape --export-png=$@ -w1000 $< +