#!/bin/bash
#
# This script fills in the CERN Home institution declaration
# the blank form (HomeDecl.png) must be in the current working directory
# dependent on your status (employee or student) activate YPOS_STATUS
# 
NAME="Albert Musterphysiker"
START="01.11.2001"
ENDDA="31.10.2005"
# employee
#YPOS_STATUS=1500
# student 
YPOS_STATUS=1580
#
let YPOS_UNI="YPOS_STATUS-22"
DATE=`date +%d.%m.%Y`
# invoke Imagemagic
convert -font Helvetica  -pointsize 40 \
-stroke black -strokewidth 1 \
-draw "text 762, 775 \"$NAME\"" \
-draw "text 1047, 875 \"Ludwig-Maximilians-Universität München\"" \
-draw "text 879, 945 \"Fakultät fur Physik, Schellingstr. 1, 80799 München\"" \
-draw "text 1300, 1035 \"$START\" " \
-draw "text 1640, 1035 \"$ENDDA\" " \
-draw "text 360, $YPOS_STATUS X" \
-draw "text 900, $YPOS_UNI \"Ludwig-Maximilians-Universität München\"" \
-draw "text 402, 2467 \"$DATE\" " \
-draw "text 1457, 2652 \"Head of Experimental\"" \
-draw "text 1457, 2730 \"Particle Physics at LMU\"" \
HomeDecl.png HomeDecl.pdf
okular HomeDecl.pdf
