1
$\begingroup$

I just have discovered that it is possible to incorporate calculation in a text cell (you can create a text cell by typing Alt+7) by highlighting the formula and typing Ctrl+Shilt+Enter, but in the following case the output is a ugly InputForm result. How can I get a good-looking 2D expression as the output?

enter image description here

Here is the formula

 \!\(
  \*SubsuperscriptBox[\(∫\), \(0\), \(t\)]\(
  \*SuperscriptBox[\(E\), \(\(-\ ρ\)\ s\)] \[DifferentialD]s\)\)
$\endgroup$
  • 1
    $\begingroup$ With your example, I get a neatly formatted result. Your result is in InputForm. I don't know why. You may be able to use the Cell > Convert To menu to get a better result. $\endgroup$ – mikado Jul 11 '16 at 20:08
  • $\begingroup$ Whatever I do I have the same result $\endgroup$ – cyrille.piatecki Jul 11 '16 at 20:14
  • 1
    $\begingroup$ The picture is fine but I recommend to also include the Mathematica code to make life easy on those would help. $\endgroup$ – Jack LaVigne Jul 11 '16 at 22:17
  • $\begingroup$ I also get a formated result. However you might try to add //TraditionalForm after your integral expression. $\endgroup$ – Alexei Boulbitch Dec 20 '16 at 12:24
  • $\begingroup$ @AlexeiBoulbitch This issue seems only to happen on a code piece inside a text cell. I've tried to edit the question to clarify. $\endgroup$ – xzczd Dec 20 '16 at 12:48
2
$\begingroup$

Interesting. It turns out to be necessary to highlight the code after the cursor is moved into the embedded cell. Notice when the cursor is inside the embedded cell, the background is colored:

enter image description here

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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