process options in separate subroutine
Merge branch '52-latex' into 52-latex-osx