Inital commit

This commit is contained in:
cirdeirf 2019-06-10 16:36:34 +02:00
commit 877dcf45fe
Signed by: pius
GPG key ID: 130876AF66F40378
10 changed files with 13223 additions and 0 deletions

244
.gitignore vendored Normal file
View file

@ -0,0 +1,244 @@
*.csv
## Core latex/pdflatex auxiliary files:
*.aux
*.lof
*.log
*.lot
*.fls
*.out
*.toc
*.fmt
*.fot
*.cb
*.cb2
.*.lb
## Intermediate documents:
*.dvi
*.xdv
*-converted-to.*
# these rules might exclude image files for figures etc.
# *.ps
# *.eps
# *.pdf
## Generated if empty string is given at "Please type another file name for output:"
.pdf
## Bibliography auxiliary files (bibtex/biblatex/biber):
*.bbl
*.bcf
*.blg
*-blx.aux
*-blx.bib
*.run.xml
## Build tool auxiliary files:
*.fdb_latexmk
*.synctex
*.synctex(busy)
*.synctex.gz
*.synctex.gz(busy)
*.pdfsync
## Auxiliary and intermediate files from other packages:
# algorithms
*.alg
*.loa
# achemso
acs-*.bib
# amsthm
*.thm
# beamer
*.nav
*.pre
*.snm
*.vrb
# changes
*.soc
# cprotect
*.cpt
# elsarticle (documentclass of Elsevier journals)
*.spl
# endnotes
*.ent
# fixme
*.lox
# feynmf/feynmp
*.mf
*.mp
*.t[1-9]
*.t[1-9][0-9]
*.tfm
#(r)(e)ledmac/(r)(e)ledpar
*.end
*.?end
*.[1-9]
*.[1-9][0-9]
*.[1-9][0-9][0-9]
*.[1-9]R
*.[1-9][0-9]R
*.[1-9][0-9][0-9]R
*.eledsec[1-9]
*.eledsec[1-9]R
*.eledsec[1-9][0-9]
*.eledsec[1-9][0-9]R
*.eledsec[1-9][0-9][0-9]
*.eledsec[1-9][0-9][0-9]R
# glossaries
*.acn
*.acr
*.glg
*.glo
*.gls
*.glsdefs
# gnuplottex
*-gnuplottex-*
# gregoriotex
*.gaux
*.gtex
# htlatex
*.4ct
*.4tc
*.idv
*.lg
*.trc
*.xref
# hyperref
*.brf
# knitr
*-concordance.tex
# TODO Comment the next line if you want to keep your tikz graphics files
*.tikz
*-tikzDictionary
# listings
*.lol
# makeidx
*.idx
*.ilg
*.ind
*.ist
# minitoc
*.maf
*.mlf
*.mlt
*.mtc[0-9]*
*.slf[0-9]*
*.slt[0-9]*
*.stc[0-9]*
# minted
_minted*
*.pyg
# morewrites
*.mw
# nomencl
*.nlg
*.nlo
*.nls
# pax
*.pax
# pdfpcnotes
*.pdfpc
# sagetex
*.sagetex.sage
*.sagetex.py
*.sagetex.scmd
# scrwfile
*.wrt
# sympy
*.sout
*.sympy
sympy-plots-for-*.tex/
# pdfcomment
*.upa
*.upb
# pythontex
*.pytxcode
pythontex-files-*/
# thmtools
*.loe
# TikZ & PGF
*.dpth
*.md5
*.auxlock
# todonotes
*.tdo
# easy-todo
*.lod
# xmpincl
*.xmpi
# xindy
*.xdy
# xypic precompiled matrices
*.xyc
# endfloat
*.ttt
*.fff
# Latexian
TSWLatexianTemp*
## Editors:
# WinEdt
*.bak
*.sav
# Texpad
.texpadtmp
# Kile
*.backup
# KBibTeX
*~[0-9]*
# auto folder when using emacs and auctex
./auto/*
*.el
# expex forward references with \gathertags
*-tags.tex
# standalone packages
*.sta
# generated if using elsarticle.cls
*.spl

1
README.md Normal file
View file

@ -0,0 +1 @@
# kif-badges

BIN
badge.pdf Normal file

Binary file not shown.

236
badge.tex Normal file
View file

@ -0,0 +1,236 @@
\documentclass{scrartcl}
\usepackage[left=1.9cm, right=2.75cm, top=0cm, bottom=0cm]{geometry}
\pagestyle{empty}
\usepackage{background}
\backgroundsetup{scale = 1.0, angle = 0, opacity = 1.0,%
contents = {\includegraphics[width = \paperwidth, height = \paperheight,
keepaspectratio] {templates/Badge_Kiffel.pdf}}}%
\usepackage{qrcode}
\usepackage{xcolor}
\definecolor{helfer} {rgb}{0.69, 0.88, 0.11} % #B1E11C (grün)
\definecolor{kiffel} {rgb}{0.09, 0.45, 0.56} % #16738F (petrol)
\definecolor{orga} {rgb}{0.69, 0.11, 0.20} % #B11D33 (rot)
\definecolor{sponsor}{rgb}{0.35, 0.00, 0.50} % #5A0080 (lila)
\definecolor{kukkel} {rgb}{0.96, 0.56, 0.07} % #F48E12 (orange)
\usepackage{fontspec}
\usepackage{montserrat}
\usepackage{microtype}
\setmainfont{Montserrat}
% fitbox stuff
\usepackage{environ}% http://ctan.org/pkg/environ
\newdimen\fontdim%
\newdimen\upperfontdim%
\newdimen\lowerfontdim%
\newif\ifmoreiterations%
\fontdim12pt
\newbox\trialbox%
\newbox\linebox%
\global\newcount\maxbad%
\newcount\linebad%
\newcount\currenthbadness%
\makeatletter
\NewEnviron{fitbox}[2]{% \begin{fitbox}{<width>}{<height>} stuff \end{fitbox}
% Store environment body
\def\stuff{%
\BODY%
}%
% prepare badness box
\def\badnessbox{%
\global\maxbad=0\relax%
\currenthbadness=\hbadness% save old \hbadness
\hbadness=10000000\relax% make sure, TeX reports overfull boxes
\message{Starting measureline recursion with width #1^^J}%
\setbox\trialbox=\vbox{%
\hsize#1\relax%
\fontsize{\fontdim}{1.2\fontdim}%
\selectfont%
\stuff\par%
\measurelines% start recursion
}%
% \noindent\usebox\trialbox\par
\hbadness=\currenthbadness% restore old \hbadness
}
% prepare recursion to measure line badness
\def\measurelines{%
\message{Iteration of measurelines^^J}%
\begingroup%
\setbox\linebox=\lastbox% get the last line
\setbox0=\hbox%
to \hsize{\unhcopy\linebox}% put the last line into box0 to provoke badness calculation
\linebad=\the\badness\relax% \badness now reflects the last typeset box, i.e. box0
\message{Badness: \the\badness\space\the\linebad\space with max \the\maxbad\space at Fontsize: \the\fontdim\space^^J}%
\ifnum\linebad>\maxbad% store the maximum badness
\global\maxbad=\linebad% Uncomment this line to ignore overfull hboxes!
\fi%
\ifvoid% end of recursion
\linebox%
\else%
\unskip\unpenalty\measurelines% do the recursion
\ifhmode%
\newline%
\fi%
\noindent\box\linebox% do the output
\fi%
\endgroup%
}%
% Prepare measurement box
\def\buildbox{%
\badnessbox% measure badness
\setbox0\vbox{% measure height
\hbox{%
\fontsize{\fontdim}{1.2\fontdim}%
\selectfont%
\minipage{#1}%
\vbox{%
\stuff\par%
}%
\endminipage%
}%
}%
\message{Measured badness: \the\maxbad\space at Fontsize: \the\fontdim\space^^J}%
\dimen@\ht0
\advance\dimen@\dp0
\message{Measured box height: \the\dimen@\space^^J}%
}%
\def\shrinkheight{%
\loop%
\fontdim.5\fontdim% Reduce font size by half
\buildbox%
\message{Shrinking, new box height: \the\dimen@\space at Fontsize: \the\fontdim\space^^J}%
\ifdim\dimen@>#2 \repeat%
\lowerfontdim\fontdim%
\upperfontdim2\fontdim%
\fontdim1.5\fontdim%
}%
\def\shrinkwidth{%
\loop%
\fontdim.5\fontdim% Reduce font size by half
\buildbox%
\ifnum\maxbad>10000 \repeat%
\lowerfontdim\fontdim%
\upperfontdim2\fontdim%
\fontdim1.5\fontdim%
}%
\def\growheight{%
\loop%
\fontdim2\fontdim% Double font size
\buildbox%
\message{Growing, new box height: \the\dimen@\space at Fontsize: \the\fontdim\space^^J}%
\ifdim\dimen@<#2 \repeat%
\upperfontdim\fontdim%
\lowerfontdim.5\fontdim%
\fontdim.75\fontdim%
}%
\buildbox%
% Compute upper and lower bounds
\ifdim\dimen@>#2
\message{Need to shrink box height: \the\dimen@\space^^J}%
\shrinkheight%
\else
\message{Need to grow box height: \the\dimen@\space to target: #2^^J}%
\growheight%
\fi
\message{Max font: \the\upperfontdim\space^^J}%
\message{Min font: \the\lowerfontdim\space^^J}%
% Potentially further reduce bounds for overfull box
\ifnum\maxbad>10000
\shrinkwidth%
\fi
\message{Max font adjusted: \the\upperfontdim\space^^J}%
\message{Min font adjusted: \the\lowerfontdim\space^^J}%
% Now try to find the optimum height and width
\loop%
\buildbox%
\message{Height: \the\dimen@\space^^J}%
\ifdim\dimen@>#2
\moreiterationstrue%
\upperfontdim\fontdim%
\advance\fontdim\lowerfontdim%
\fontdim.5\fontdim%
\else
\ifnum\maxbad>10000
\moreiterationstrue%
\upperfontdim\fontdim%
\advance\fontdim\lowerfontdim%
\fontdim.5\fontdim%
\else
\advance\dimen@-#2
\ifdim\dimen@<10pt
\lowerfontdim\fontdim%
\advance\fontdim\upperfontdim%
\fontdim.5\fontdim%
\dimen@\upperfontdim%
\advance\dimen@-\lowerfontdim%
\ifdim\dimen@<.2pt
\moreiterationsfalse%
\else
\moreiterationstrue%
\fi
\else
\moreiterationsfalse%
\fi
\fi
\fi
\ifmoreiterations\repeat%
\message{Selected font: \the\fontdim\space^^J}%
\vbox%
to #2{\box0\hbox{}}% Typeset content
}%
\makeatother
\def\chopline#1,#2,#3 \\{
\def\name{#1}
\def\kdvCode{#2}
\def\uni{#3}
}
\newif\ifmore{} \moretrue%
\begin{document}
\newread\file%
\openin\file=list_kiffel.csv
\loop%
\read\file%
to \line%
\ifeof\file%
\global\morefalse%
\else
\expandafter\chopline\line\\
\vspace*{4.5cm}
\begin{minipage}[t][][c]{\textwidth}
\begin{fitbox}{\textwidth}{.075\textheight}
\centering
\textbf{\name}%
\end{fitbox}
\end{minipage}
\vspace*{.75cm}
\begin{minipage}[t][][c]{\textwidth}
\begin{fitbox}{\textwidth}{.042\textheight}
\centering
\uni%
\end{fitbox}
\end{minipage}
\vspace{7.30cm}
\qrcode[height=54.831mm]{\kdvCode}
\pagebreak
\fi%
\ifmore\repeat%
%
\closein\file%
\end{document}

9
druck.tex Normal file
View file

@ -0,0 +1,9 @@
% pdfLaTeX, I guess
\documentclass{article}
\usepackage[a4paper,nohead,nofoot,margin=0mm]{geometry}
\usepackage{pdfpages}
\begin{document}
\includepdf[pages=-,nup=2x5,delta=0mm 0mm,noautoscale=true,frame=false]{namensschild.pdf}
\end{document}

2582
templates/Badge_Helfer.pdf Normal file

File diff suppressed because one or more lines are too long

2571
templates/Badge_Kiffel.pdf Normal file

File diff suppressed because one or more lines are too long

2565
templates/Badge_Kukkel.pdf Normal file

File diff suppressed because one or more lines are too long

2525
templates/Badge_Orga.pdf Normal file

File diff suppressed because one or more lines are too long

2490
templates/Badge_Sponsor.pdf Normal file

File diff suppressed because one or more lines are too long