2
$\begingroup$

In order to type an equation in a text cell one presses Ctrl+9 and then you get a highlighted region into which you type an equation. Here is an example

Text cell with equation

The problem here is that the equation is in an Arial font. Equations should appear in TraditionalForm. If I go to a new cell make it TranditionalForm and type I get this:

Traditional form cell

This is what I want (except that it is annoyingly in bold which I have removed).

The real mystery is if I do ShowExpression on the text cell I get

Internals of text cell

Note that the Cell within the Cell containing the equation has "FormatType" "TraditionalForm". So the question: why is the equation in the text cell not in TraditioalForm?

If I do ShowExpression on the equation in the TraditionalForm cell I get this

Internals of traditional form cell

This is almost the same except it has an extra StyleBox. Has this been missed out? This is version 12.2 but this problem has been around for several versions.

How do I fix this?

Some similar question asked before are here and here but are not quite the same.

$\endgroup$
4
  • $\begingroup$ you can change the font with the Style command reference.wolfram.com/language/ref/FontFamily.html $\endgroup$
    – acacia
    Commented Feb 10, 2021 at 21:43
  • $\begingroup$ @acacia Yes thanks, but how do I automatically get it changed within a text cell? $\endgroup$
    – Hugh
    Commented Feb 10, 2021 at 21:44
  • 1
    $\begingroup$ community.wolfram.com/groups/-/m/t/402640 $\endgroup$
    – acacia
    Commented Feb 10, 2021 at 21:48
  • 1
    $\begingroup$ @acacia Again note that this does not address how to change a format within a text cell. Note you make a text cell by pressing Alt+7 and then you can type text and then put in equations using Ctrl+9. I am talking about formatting a cell within a cell. $\endgroup$
    – Hugh
    Commented Feb 10, 2021 at 22:13

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.