I write a lot of notes. I write them in Rnote with a Wacom drawing tablet.
Previously when I had written a few notes, I would export them to PDF and put them somewhere as a backup. Now I keep them in a Git repository, and I have a pre-commit hook for automatically converting them to PDF. This is really useful for exercise and problem set submissions, I'll always have a PDF version ready.
I wrote a script to automate this. I organise my notes in "notebooks", which are just Git repositories. To make a new notebook, I run the script, which initialises a Git repository and installs the pre-commit hook. At the end of a lecture, I add the .rnote file(s), the hook runs, converting the notes into PDF and stages them. Then I commit and push them.
You can find the script here.
back to ove2.org