This commit integrates the Tex generator functionality from main.go into
the mage system. Changes include:
- Movd helper functions to the new helpers package.
- Move the tex generator from main.go to the helpers package.
- Update the Tex target to use the tex generator helper function.