Hidden Division of Labor in Scientific Teams Revealed Through 1.6 Million LaTeX Files