From 60192a0a02f8ef0a1e690aed7102273058e1ceb5 Mon Sep 17 00:00:00 2001 From: nemunaire Date: Wed, 22 Feb 2017 04:33:23 +0100 Subject: [PATCH] Add password paper generator --- password_paper/.gitignore | 7 +++++ password_paper/Makefile | 12 ++++++++ password_paper/README.md | 42 +++++++++++++++++++++++++ password_paper/pass.sh | 65 +++++++++++++++++++++++++++++++++++++++ 4 files changed, 126 insertions(+) create mode 100644 password_paper/.gitignore create mode 100644 password_paper/Makefile create mode 100644 password_paper/README.md create mode 100755 password_paper/pass.sh diff --git a/password_paper/.gitignore b/password_paper/.gitignore new file mode 100644 index 00000000..ec1b91c9 --- /dev/null +++ b/password_paper/.gitignore @@ -0,0 +1,7 @@ +missfont.log +pass.aux +pass.fdb_latexmk +pass.fls +pass.log +pass.out +teams.pass diff --git a/password_paper/Makefile b/password_paper/Makefile new file mode 100644 index 00000000..8383eada --- /dev/null +++ b/password_paper/Makefile @@ -0,0 +1,12 @@ +all: pass.pdf + +.sh.tex: + sh $< < teams.pass > $@ + +.tex.pdf: + latexmk --xelatex ${.IMPSRC} + +clean: + latexmk -c + +.SUFFIXES: .sh .tex .pdf diff --git a/password_paper/README.md b/password_paper/README.md new file mode 100644 index 00000000..80f31c7c --- /dev/null +++ b/password_paper/README.md @@ -0,0 +1,42 @@ +Password Paper +============== + +These scripts generate A4 sheets filled with 2x5 + + +## Requirements + +Those scripts requires XeLaTeX and the `texlive-fonts-extra` package. + +It uses the TexLive +[dingbat package](http://www.ctan.org/tex-archive/fonts/dingbat/). + +The fonts used come from the +[Libertine open fonts project](http://linuxlibertine.org/) and +[Fantasque Sans Mono](https://github.com/belluzj/fantasque-sans). + + +## Usage + +First, you need to generate the file containing teams and passwords. + + +### Password file format + +Passwords are given through a DSV file, using `:` as separator. + +For example, a valid `teams.pass` file with 6 teams could be: + +``` +Abricot:hie9iJ