split latex into its own file