summaryrefslogtreecommitdiffstats
path: root/bin/scoresheet.pl
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2017-10-22 17:38:45 +0200
committerH. Peter Anvin <hpa@zytor.com>2017-10-22 17:38:45 +0200
commit390c51c307b31696e3904144e7da9f4cdec5360d (patch)
treea34c0f7490874a9c059ff4ae7fbd2c3291bf8dcd /bin/scoresheet.pl
parentf080f2093071c2a25df55eae8eaacd6530ac2af6 (diff)
downloadballot-390c51c307b31696e3904144e7da9f4cdec5360d.tar.gz
ballot-390c51c307b31696e3904144e7da9f4cdec5360d.tar.xz
ballot-390c51c307b31696e3904144e7da9f4cdec5360d.zip
Parameterize as much as possible, using a template system
Diffstat (limited to 'bin/scoresheet.pl')
-rwxr-xr-xbin/scoresheet.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/scoresheet.pl b/bin/scoresheet.pl
index 74c7a8a..96620e8 100755
--- a/bin/scoresheet.pl
+++ b/bin/scoresheet.pl
@@ -2,7 +2,7 @@
use Config::Tiny;
-($dir, $idfile) = @ARGV;
+($dir, $paper, $idfile) = @ARGV;
# Convert LaTeX units to mm
%units = (
@@ -88,7 +88,7 @@ if (defined($idfile) && open(IDS, '<', $idfile)) {
@id_list = (''); # One copy with no ID
}
-print "\\documentclass[letterpaper]{article}\n";
+print "\\documentclass[${paper}paper]{article}\n";
print "\\usepackage[utf8]{inputenc}\n";
print "\\usepackage{array}\n";
print "\\usepackage{calc}\n";