Suppose I have a function defined:
g[z_]:=Sum[Sin[z/k!],{k,0,infinity}]
And I want to export the following Latex based on only the function definition
$$\sum_{k=0}^\infty \sin\left(\frac{z}{k!}\right)$$
Is it possible to do this in Mathematica? If so, how? Ideally it would work for any arbitrary function, or at least as often as possible.
TeXForm
. $\endgroup$