Fixes tutorial pdf generation due to hierarchy depth.

The hierarchy is now an ascii reprsentation.
Merge pull request #294 from gradha/pr_fixes_pdf_generation

Fixes tutorial pdf generation due to hierarchy depth.