latex chordpro pdf song book
Plans/Todo:
- scan for chopro files in input folder
- find songs
- extract metadata
- Generate individual pdfs from chordpro files
- scan for other songs (pdf files)
- extract metadata
- from filename
- (perhaps pdf metadata if available)
- extract metadata
- Create Jinja LaTex templates from scan result
- include chordpro pdfs
- include other pdfs (other songs, misc pdfs)
- Write songbook LaTeX
Future Ideas:
- Create Docker GitHub Package which starts Jupyter Lab and binds folder
- include jupyter lab
- include chordpro cli
- include python package install
- include latex binaries to generate pdf
-
clone this repo
-
Install anaconda/miniconda
-
install enviroment from
enviroment.yml
conda env create -f environment.yml
-
-
Install latex
-
copy your chordpro and pdf files in
data/input/*
-
run notebooks in
scripts
folder to generate latex document -
open latex document in you latex editor and export pdf song book
- use your tex editor (like texstudio) for last changes
- or use a script which calls
pdflatex
for the main song book tex file
-
Print your PDF song book and have fun! :)
- Anaconda/Miniconda (Python environment)
- ChordPro cli tool (generate PDFs from chorpro files)
- LaTeX (merge pdf files and create song book as pdf with table of contents)
- Jinja (Template Engine -> generate TeX files from python code)
- Jupyter Lab (Web IDE for interactive python development)
- I prefer Jupyter Notebooks for easy development with output between a few lines of code
- You could convert notebooks to normal python scripts
There are README.md
files with useful links and information in some subfolders of this repo.