1

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?

Michael E2
  • 235,386
  • 17
  • 334
  • 747
JSCB
  • 123
  • 4

1 Answers1

1

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.
TransferOrbit
  • 3,547
  • 13
  • 26