Fixes tutorial pdf generation due to hierarchy depth.

The hierarchy is now an ascii reprsentation.