1
$\begingroup$

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?

$\endgroup$
  • $\begingroup$ 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” $\endgroup$ – Kuba Mar 22 '14 at 8:16
  • $\begingroup$ 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.) $\endgroup$ – Michael E2 Mar 22 '14 at 12:52
1
$\begingroup$

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.
$\endgroup$

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