/badgemaker

Python and LaTeX scripts to make conference badges from csv table

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

BadgeMaker

Creates pdf files ready to be printed to make badges (e.g. on perforated paper). To use you will have to:

  1. Have all your participants collected in a csv file (e.g. participants/list.csv)
  2. Fix the LaTeX template tex/template_top.tex to your needs. The current template is for 8 badges of dimension 60mm x 90mm printed on perforated A4 paper
  3. Run the python script
  4. Run the bash script

Python script usage

python create_badges.py 

Options:

  -h, --help            show this help message and exit
  -V, --verbose         increase output verbosity
  -i INFILENAME, --infilename INFILENAME
                        Input file name
  -o OUTFILENAME, --outfilename OUTFILENAME
                        Input file name
  -d DELIMITER, --delimiter DELIMITER
                        Delimiter of the csv input file, by default ","
  -r REMOVEROWS, --removerows REMOVEROWS
                        Rows to be removed
  -b NBADGESPPAGE, --nbadgesppage NBADGESPPAGE
                        Number of badges per page
  -n NAMEKEY, --namekey NAMEKEY
                        Key for name field
  -a AFFKEY, --affkey AFFKEY
                        Key for affiliation field

Output:

Various .tex files, containing 8 lines each (1 line == 1 badge)

Bash script usage

source compile.sh

Output:

One .tex file per page, assembled from the template and the python script outputs, and the corresponding compiled .pdf files