Give brown bear abilities
Reorganize latex generation into subfunctions