Skip to content

An easy Python app to generate LaTeX code to print PDF moon phase calendar.

License

Notifications You must be signed in to change notification settings

VladimirPokorny/Luna_Calendar

Repository files navigation

Luna Calendar

Luna Calendar is easy Python app to generate LaTeX code to print moon phases in one year. The only one input argument is a year of Luna Calendar. The output is a *.tex file and *.pdf file with Luna Calendar.

Prerequisity:

Installed LaTeX distribution:

Usage

  1. install and activate virtual environment:
    • install venv: python -m venv \.venv\
    • run the virtual environment:
      • for Unix: source .venv\bin\activate
      • for Windows:.venv\Scripts\activate
    • install necessary packages: pip install -r requirements.txt
  2. run python main.py -y YEAR where flag -y points to YEAR which is an integer of calendar year
    • When the year is not pass with -y flag, the actual year is used instead of it.
    • example of usage:
python main.py -y 2024

Upper code creates the TeX source file and compiles it by pdflatex to the below pdf:

Output

View Output PDF or take a look to the png preview:

Generated Luna Calendar as png

About

An easy Python app to generate LaTeX code to print PDF moon phase calendar.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published