Commit 02c0bce6 authored by Tandri Gauksson's avatar Tandri Gauksson
Browse files

Refer tonew print.py instead of print.sh, and deleted old print.sh

parent a65a86fa
...@@ -88,19 +88,27 @@ The default printing settings (duplex printing, long side) already make sure tha ...@@ -88,19 +88,27 @@ The default printing settings (duplex printing, long side) already make sure tha
:: ::
./print.sh [--printer name] /path/to/results ./print.py /path/to/results
The argument ``--printer`` is optional. By default the printer in front of HG This will print the pdfs in alphabetical order by last name.
J42 will be used. It will print two-pages up with long edge bindings, but no Exceptions of the ordering are students that write their first
stapling. You may define your own printer options in the environment variable name where they should have given their last name,
``EXAM_PRINT_OPTIONS``. and last names containing non-ascii characters.
By default the printer in front of HG J54 will be used.
It will print two-pages up with long edge bindings,
and each document stapled (if the selected printer has a stapling feature!).
Please configure print.py according to your needs through the variables
``LPR_OPTIONS`` and ``PRINTER``.
See the documentation of ``print.py`` for more information.
It is wise to first use the script on a small test batch,
i.e. by passing a ``/path/to/results`` that contains only a few pdfs.
- Hint: Use ``lpstat -p`` to get a list of available printers. - Hint: Use ``lpstat -p`` to get a list of available printers.
.. ..
Manual procedure: workaround if wrapper scripts ``run.sh`` / ``print.sh`` don't work Manual procedure: workaround if wrapper scripts ``run.sh`` / ``print.py`` don't work
------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------
In case the wrapper scripts don't work, you can fallback to the manual procedure described here. In case the wrapper scripts don't work, you can fallback to the manual procedure described here.
...@@ -189,4 +197,5 @@ Raoul Bourquin, ...@@ -189,4 +197,5 @@ Raoul Bourquin,
Filippo Leonardi, Filippo Leonardi,
Luc Grosheintz, Luc Grosheintz,
Simon Pintarelli, Simon Pintarelli,
Daniele Casati. Daniele Casati,
Tandri Gauksson.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment