Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

I encountered 2 problema with displaying formula in text format. enter image description here

  • The variables in the formula is italic, I want to change them to normal.
  • And the fraction size is too small, I want to make it to full size.

Should I edit the stylesheet? What exactly should I do?

share|improve this question

marked as duplicate by Kuba, rasher, Artes, m_goldberg, Sjoerd C. de Vries Mar 22 at 12:34

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
Take a look at: Any way to make my equations look better, more Latex like?. There is a lot of information you may find useful. Or preventing TraditionalForm from getting “squished” –  Kuba Mar 22 at 8:16
    
Well, the closers beat me to an answer not contained in the linked "duplicates", which do not address the issue of italics (traditionally, variables are supposed to be in italics): Edit the stylesheet, choose the style Text, and set these options with the Format > OptionInspector: ` DefaultInlineFormatType->StandardForm, FractionBoxOptions->{AllowScriptLevelChange->False}. Next, you might want to set the font for "InlineCell"` by entering the style name InlineCell and setting its font. (Assuming your text is in a Text cell.) –  Michael E2 Mar 22 at 12:52

1 Answer 1

up vote 1 down vote accepted

Give this a try:

Row[{
"1.",
Invisible["space"],
 "(a)",
Invisible["space"],
"Find ",
HoldForm@TraditionalForm@Integrate["x"^2, x]
}]

which produces:

enter image description here

and this:

Row[{
"2.",
Invisible["space"],
"(a)",
Invisible["space"],
"Find ",
HoldForm@TraditionalForm@Integrate[Style[1/"x", 18], x]
}]

produces this:

enter image description here

  • You can alter the size of the fraction within the Style command.
  • Quotation marks around characters "x" produces a String.
  • Change the String within Invisible to alter the spacing between surrounding items.
share|improve this answer

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