For a while I have been writing most of my documents in a combination of Org-Mode and Latex and keeping the folders under Git version control.

In a near perfect example of procrastination I decided to integrate the version control information into the Latex export.

Most of the hard work was already done as CTAN has the VC package which provides the integration between git log messages and moving them into the latex document.

I added to this so that the package can be used in a folder with the document and also a very basic template so that VC info is place on its own page.

In typical scratching your own itch fashion it only works with Git repos.

The code is on github at https://github.com/scotthewitt/vc-reporting

and the once cloned into the working directory can be used by including,

\input{vc-reporting/revisioninfo.tex}

at the desired location.

While preparing some lecture notes in Org mode to be exported using Beamer, this error message confused me today and prevented the pdf being built.

! Undefined control sequence.
\beamer@saveanother ->\let \beamer@savedif 
                                           =\ifbeamer@anotherslide

Turns out it was generated by a heading having no content only a tag like this.

* :tagonly:

Really easy, quick to make and can be prepared ahead of time.

Roll out some puff pastry, 3-5mm thick.

Divide it into rectangles, small if finger food or large if part of the main course.

Mash up some blue cheese.

Roll a portion of blue cheese and place it on one end of pastry rectangle.

Fold the pastry over seal by hand and add dash of beaten egg over top.

Stab small hole in top.

Bake in oven 180 Degrees for until pastry cooked.

git branch -m old-branch-name new-branch-name

Easy way to rename branches, works with master branch.

Found this online today.

git submodule foreach ‘git fetch origin –tags; git checkout master; git pull’ && git pull && git submodule update –init –recursive

It makes working with submodules in git really easy and it works with submodules within submodules.

Awesome.