This is Alfie, a python script capable of generating diary inserts in pocket, personal or A5 size of any year you want. The script in itself makes a LaTeX file ready for typesetting and can try to typeset it for you if you have XeLateX installed on your system.
Right now, Alfie can make diaries in Swedish, English and German. It can render holidays and date-specific notes, as listed in used-provided text files. It can also add front and back matter, as supplied by supplementary files.
If you want to use the script “out of the box” you need the free Adobe Source Sans Pro font installed on your machine. You can of course use whatever font you like, but I find Source Sans Pro Light to be ideal for this kind of thing. You also need to have LaTeX installed in order to typeset the resulting LaTeX-files
This script needs a few arguments to run:
-
The format you want (pocket / personal / a6 / a5)
-
If you want your diary in color or black and white (color / bw)
-
The layout you want (w1p = 1 week per page / w1pnotes = week on one page with notes / w2p = week on two pages / w2pwf = week on two pages with emphasis on weekdays / 1dp = day per page)
-
The language you want (sv / de / en)
-
The year you want
-
Whether it should try to typeset the resulting LaTeX file (yes / no)
If you launch the script without arguments, it will run with a minimal text interface, taking you through some questions:
python3 alfie.py
If you run it with an argument, it will run without any interface whatsoever. You need to use the following syntax for the argument to work:
python3 alfie.py <format>-<color>-<layout>-<language>-<year>-<frontmatter>-<backmatter>-<typeset>
For example:
python3 alfie.py personal-color-w2p-sv-2014-no-no-yes
will make a Swedish LaTeX diary for 2014 in personal size and then typeset it.