simu / latex-calgen

LaTeX year calendar generator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LaTeX Calendar Generator

This tool uses python's calendar library (which provides modular ncal functionality) to generate a TeX based, A4-sized wall calendar with one month per page.

Prerequisites

  • Python 3
  • A working LaTeX installation, including pdflatex.

Usage

./make-calendar.py 2012 # will generate a calendar for 2012

The complete invocation syntax is

./make-calendar.py <year> [csv-data [first-day-of-week]]

The second parameter csv-data is intended to be used for e.g. birthday data and the csv should have three columns containing:

  • a description
  • the date in M/D/YYYY format
  • a description for each data point

The first line of the CSV file is ignored

The third parameter first-day-of-week is used to select on which weekday (0=Monday through to 6=Sunday) the week starts. If the parameter is omitted the week starts on Monday. If you don't want the week to start on Monday, but don't have any custom data, just supply an empty file.

Customization

You can change the calendar style in the file head.tex.in. Note that all lengths and widths are predefined for DIN A4 paper. Month and day names will be printed according to LC_TIME (or LC_ALL if LC_TIME is not set separately).

About

LaTeX year calendar generator


Languages

Language:Python 100.0%