Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Update donation templates #53

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions Mittelabruf/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
TEXOPTS= --lualatex \
--output-directory=build \
--interaction=nonstopmode \
--halt-on-error

FOLDER = Mittelabrufe
FILES = $(wildcard $(FOLDER)/*)
TARGETS= $(shell basename -s .tex -a $(FILES))

all: $(addprefix build/, $(addsuffix .pdf, $(TARGETS)))

build/%.pdf: $(FOLDER)/%.tex FORCE | build
TEXINPUTS=../logos:..: latexmk $(TEXOPTS) $<

FORCE:

build:
mkdir -p build

clean:
rm -r build

.PHONY: all clean FORCE
19 changes: 19 additions & 0 deletions Mittelabruf/Mittelabrufe/Mittelabruf_1.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
\documentclass{pepmittelabruf}

\author{Jan Herdieckerhoff}

\setkomavar{Adresse}{
Wilhelm und Else Heraeus-Stiftung \\
Dr.~Stefan Jorda \\
Kurt-Blaum-Platz 1 \\
63450 Hanau}
\setkomavar{Anrede}{Sehr geehrter Herr Dr.~Jorda}
\setkomavar{Jahr}{2023}
\setcounter{Mittel}{1000}
\setkomavar{Fristdatum}{31. März 2023}

\begin{document}

\mittelabruf{}

\end{document}
3 changes: 2 additions & 1 deletion examples/Makefile → Newsletter/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ TEXOPTS= --lualatex \
--interaction=nonstopmode \
--halt-on-error

TARGETS=Newsletter
TARGETS=Spende \
Newsletter

all: $(addprefix build/, $(addsuffix .pdf, $(TARGETS)))

Expand Down
File renamed without changes.
23 changes: 23 additions & 0 deletions Physikon_Rechnungen/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
TEXOPTS= --lualatex \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as above, use common latexmkrc instead

--output-directory=build \
--interaction=nonstopmode \
--halt-on-error

FOLDER = Rechnungen
FILES = $(wildcard $(FOLDER)/*)
TARGETS= $(shell basename -s .tex -a $(FILES))

all: $(addprefix build/, $(addsuffix .pdf, $(TARGETS)))

build/%.pdf: $(FOLDER)/%.tex FORCE | build
TEXINPUTS=../logos:..: latexmk $(TEXOPTS) $<

FORCE:

build:
mkdir -p build

clean:
rm -r build

.PHONY: all clean FORCE
22 changes: 22 additions & 0 deletions Physikon_Rechnungen/Rechnungen/Rechnung_1.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
\documentclass{peprechnungen}

\author{Jan Herdieckerhoff}

\setkomavar{Adresse}{
Nettes Unternehmen\\
Nette Person \\
Unternehmensalle 1\\
00000 Unternehmenshausen}
\setkomavar{Rechnungsdatum}{15. März 2020}
\setkomavar{Anrede}{Sehr geehrte Nette Person}
\setkomavar{Durchführungsdatum}{16. April}
\setkomavar{Jahr}{2020}
\setcounter{Betrag}{1000}
\setkomavar{Rechnungsnummer}{yyyy-mmdd-nnnn-xxx}
\setkomavar{Fristdatum}{1. Februar 2020}

\begin{document}

\rechnung{}

\end{document}
22 changes: 22 additions & 0 deletions Physikon_Rechnungen/Rechnungen/Rechnung_2.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
\documentclass{peprechnungen}

\author{Jan Herdieckerhoff}

\setkomavar{Adresse}{
Nettes Unternehmen\\
Nette Person \\
Unternehmensalle 2\\
00000 Unternehmenshausen}
\setkomavar{Rechnungsdatum}{15. März 2020}
\setkomavar{Anrede}{Sehr geehrte Nette Person}
\setkomavar{Durchführungsdatum}{16. April}
\setkomavar{Jahr}{2020}
\setcounter{Betrag}{1000}
\setkomavar{Rechnungsnummer}{yyyy-mmdd-nnnn-xxx}
\setkomavar{Fristdatum}{1. Februar 2020}

\begin{document}

\rechnung{}

\end{document}
23 changes: 23 additions & 0 deletions Spendenquittungen/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
TEXOPTS= --lualatex \
--output-directory=build \
--interaction=nonstopmode \
--halt-on-error

FOLDER = Spenden
FILES = $(wildcard $(FOLDER)/*)
TARGETS= $(shell basename -s .tex -a $(FILES))

all: $(addprefix build/, $(addsuffix .pdf, $(TARGETS)))

build/%.pdf: $(FOLDER)/%.tex FORCE | build
TEXINPUTS=../logos:..: latexmk $(TEXOPTS) $<

FORCE:

build:
mkdir -p build

clean:
rm -r build

.PHONY: all clean FORCE
12 changes: 12 additions & 0 deletions Spendenquittungen/Spenden/Spende_1.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
\documentclass{pepspenden}

\author{Jan Herdieckerhoff}
\begin{document}

\spende{5000}{1. Januar 2023}{%
Netter Spender:in\\
Spendenallee 1\\
00000 Spendenhausen%
}

\end{document}
12 changes: 12 additions & 0 deletions Spendenquittungen/Spenden/Spende_2.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
\documentclass{pepspenden}

\author{Jan Herdieckerhoff}
\begin{document}

\spende{5000}{1. Januar 2023}{%
Netter Spender:in\\
Spendenallee 1\\
00000 Spendenhausen%
}

\end{document}
2 changes: 1 addition & 1 deletion documents/stipendium_initiativ.tex
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ \section*{Bewerbung}
Henning Moldenhauer\\
CP-01-190\\[0.5\baselineskip]
Technische Universität Dortmund\\
Otto-Hahn-Str.~4a\\
Otto-Hahn-Str.~4\\
44221 Dortmund

Um für das Bewerbungsverfahren zugelassen zu werden, muss Dein Antrag bestehen aus:
Expand Down
12 changes: 0 additions & 12 deletions examples/Spende.tex

This file was deleted.

2 changes: 1 addition & 1 deletion pepadresse.tex
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
PeP et al.\ e.\,V.\\
z.\,Hd.\ Kevin Schmidt\\
Otto-Hahn-Straße 4a\\
Otto-Hahn-Straße 4\\
44227 Dortmund%
4 changes: 2 additions & 2 deletions pepbankverbindung.tex
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
PeP et al.\\
Dortmunder Volksbank\\
IBAN:\@ DE22 4416 0014 6348 4161 00\\
BIC:\@ GENODEM1DOR%
IBAN:\@ \mbox{DE22 4416 0014 6348 4161 00}\\
BIC:\@ GENODEM1DOR%
6 changes: 5 additions & 1 deletion pepbrief.lco
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,14 @@

\setkomavar{fromlogo}{\includegraphics[height=1.5cm]{pep.pdf}}

\setkomavar{fromurl}[]{\url{www.pep-dortmund.org}}
\setkomavar{fromurl}[]{\href{https://www.pep-dortmund.org}{www.pep-dortmund.org}}

\setkomavar{signature}{\@author\\Vorstand PeP et al.\ e.\,V.}

\setkomavar{place}{Dortmund}

\renewcommand*{\raggedsignature}{\raggedright}

% \setkomavar{location}{%
% \raggedright%
% \textbf{PeP et al. e.V.}\\
Expand Down
97 changes: 97 additions & 0 deletions pepmittelabruf.cls
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
\ProvidesClass{pepmittelabruf}[2023/02/15 Klasse fuer PeP Mittelabruf]
\ProcessOptions\relax
\LoadClass[
a4paper,
fontsize=12pt,
parskip=half,
foldmarks=false,
DIV=14
]{scrlttr2}
\LoadLetterOption{pepbrief}
\setplength{firstfootvpos}{62em}
%Fontsettings, compatible with all engines
\RequirePackage{ifxetex}
\RequirePackage{ifluatex}

\ifluatex%
\RequirePackage{fontspec}
\setmainfont{Source Sans Pro}
\RequirePackage{polyglossia}
\setmainlanguage{german}
\else%
\ifxetex%
\RequirePackage{fontspec}
\setmainfont{Source Sans Pro}
\RequirePackage{polyglossia}
\setmainlanguage{german}
\else%
\RequirePackage[utf8]{inputenc}
\RequirePackage[T1]{fontenc}
\RequirePackage[default]{sourcesanspro}
\RequirePackage[ngerman]{babel}
\fi
\fi

\RequirePackage{fmtcount}
\FCloadlang{german}

\RequirePackage{scrlayer-scrpage}
\pagestyle{scrheadings}
\setkomafont{pagefoot}{\normalfont\footnotesize}
\setkomafont{pagehead}{\normalfont}

\RequirePackage{tabu}
\RequirePackage{array}
\RequirePackage{colortbl}
\RequirePackage{siunitx}
\sisetup{locale=DE, group-separator=., group-minimum-digits=4}

\newcolumntype{C}[1]{>{\centering\arraybackslash}m{#1}}
\RequirePackage{xcolor}
\definecolor{grau}{rgb}{0.830,0.865,0.857}

\RequirePackage{xparse}
\RequirePackage{amssymb}

\RequirePackage{graphicx}
\RequirePackage[colorlinks=true, urlcolor=blue!50!black, unicode]{hyperref}

\newkomavar[\anrede]{Anrede}
\newkomavar[\adresse]{Adresse}
\newkomavar[\betrag]{Betrag}
\newcounter{Mittel}
\setcounter{Mittel}{100}
\newkomavar[\rechnungsdatum]{Rechnungsdatum}
\newkomavar[\durchfuehrungsdatum]{Durchführungsdatum}
\newkomavar[\jahr]{Jahr}
\newkomavar[\rechnungsnummer]{Rechnungsnummer}
\newkomavar[\fristdatum]{Fristdatum}

\setkomavar{firstfoot}{
\hfill%
\parbox[c]{5cm}{%
Bankverbindung\\
\input{pepbankverbindung.tex}%
}
}

\setkomavar{subject}{Mittelabruf für die Absolventenfeier \usekomavar{Jahr} der Fakultät Physik der TU Dortmund}

\DeclareDocumentCommand\mittelabruf{}{%
\begin{letter}{%
\usekomavar{Adresse}
}
% ANREDE
\opening{\usekomavar{Anrede},}
% BRIEFTEXT
die Absolventenfeier der Fakultät Physik der TU Dortmund wird dieses Jahr wieder von uns, dem Alumniverein PeP et al.\ e.\,V., veranstaltet.
Daher möchten wir die von Ihrer Stiftung zur Verfügung gestellten Mittel in Höhe von \theMittel{} Euro abrufen.

Bitte stellen Sie uns die Mittel bis zum \usekomavar{Fristdatum} zur Verfügung.



\closing{Beste Grüße aus Dortmund}

\end{letter}
}
Loading