Adds mechanics_printing flag to init_printing.

This only adds latex support so far. Need to look into the pretty printing and whatever other options there are.

This also is branched off of my PR #2772, so that needs to go in first.