2

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.

J. M.'s missing motivation
  • 124,525
  • 11
  • 401
  • 574
Hugh
  • 16,387
  • 3
  • 31
  • 83
  • you can change the font with the Style command https://reference.wolfram.com/language/ref/FontFamily.html – acacia Feb 10 '21 at 21:43
  • @acacia Yes thanks, but how do I automatically get it changed within a text cell? – Hugh Feb 10 '21 at 21:44
  • 1
    https://community.wolfram.com/groups/-/m/t/402640 – acacia Feb 10 '21 at 21:48
  • 1
    @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. – Hugh Feb 10 '21 at 22:13

0 Answers0