0
$\begingroup$

I need to write a $\LaTeX$ document from my functions developed in Mathematica. When I try to get a $\LaTeX$ form of the following integral

screenshot

TexForm[\!\(
\*SubsuperscriptBox[\(\[Integral]\), \(0\), \(4  \[Pi]\)]\(
\*OverscriptBox[\(s\), \(\[RightVector]\)] \((
\*OverscriptBox[\(s\), \(\[RightVector]\)]\[CenterDot]A)\) \
\[DifferentialD]\[Omega]\)\) = (4 \[Pi])/3 A]

I get an error.

During evaluation of In[2]:= Set::write: Tag Integrate in \!\(\*SubsuperscriptBox[\(\[Integral]\), \(0\), \(4\ \[Pi]\)]\(\(\*OverscriptBox[\(s\), \(\[RightVector]\)]\[CenterDot]A\ \*OverscriptBox[\(s\), \(\[RightVector]\)]\) \[DifferentialD]\[Omega]\)\) is Protected.

Out[2]= TexForm[(4 A \[Pi])/3]
$\endgroup$

closed as off-topic by Szabolcs, corey979, Henrik Schumacher, m_goldberg, MarcoB Apr 1 at 14:21

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This question arises due to a simple mistake such as a trivial syntax error, incorrect capitalization, spelling mistake, or other typographical error and is unlikely to help any future visitors, or else it is easily found in the documentation." – Szabolcs, corey979, Henrik Schumacher, m_goldberg, MarcoB
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 4
    $\begingroup$ Replace = with == $\endgroup$ – Roman Mar 31 at 16:57
3
$\begingroup$

Your equation gets evaluated to the right-hand side. Avoid that thus:

TeXForm[HoldForm[\!\(
\*SubsuperscriptBox[\(\[Integral]\), \(0\), \(4  \[Pi]\)]\(
\*OverscriptBox[\(s\), \(\[RightVector]\)] \((
\*OverscriptBox[\(s\), \(\[RightVector]\)] + 
       A)\) \[DifferentialD]\[Omega]\)\) = (4 \[Pi])/3 A]]

Also... remember the capital X in TeXForm!

$\endgroup$

Not the answer you're looking for? Browse other questions tagged or ask your own question.