I have the impression that the above can be improved via `start_dir`, eg. look at `wiki2beamer`