I want my code to output TeX like this to be used in a website:
\sqrt{377.09}
The number part is determined programmatically and held in the variable sqrtRad:
sqrtRad=Round[RandomReal[{1,10000}],.01];
Then I try to HoldForm[] the square root expression with the following code:
TeXForm[HoldForm[Sqrt[sqrtRad]]]
Of course, this holds the variable unevaluated as well as the square root and produces this:
\sqrt{\text{sqrtRad}}
I have tried several different functions related to Hold[] without success. How do I get it to hold the Sqrt[] while evaluating the variable?
Thanks in advance,
Mark