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 noticed that TraditionalForm does not display as nice in the Manipulate output as in normal notebook. Is there a way to make it look the same?

Here is an example,

Manipulate[
TraditionalForm[-Derivative[2, 0][u][x, y]-Derivative[0, 2][u][x, y] == f[x, y]],
 {z, None}
]

and compare the output above to the same command, but without the Manipulate wrapper:

TraditionalForm[-Derivative[2, 0][u][x, y]-Derivative[0, 2][u][x, y] == f[x, y]]

Here is the output, side by side. (left side is the Manipulate output).

enter image description here

There might be an option to correct this inside Manipulate? Will keep looking. But meanwhile, any one knows why that is?

btw, I found that by Rasterizing it, it looks close to the notebook, but need to work on the resolution little:

Manipulate[
 Rasterize@
  TraditionalForm[-Derivative[2, 0][u][x, y] - 
     Derivative[0, 2][u][x, y] == f[x, y]],
 {z, None}
 ]

enter image description here

thanks

share|improve this question
add comment

2 Answers

up vote 13 down vote accepted

This is just a matter of different style (font here). This will produce identical output to what you get outside of Manipulate:

Manipulate[
    Style[
        TraditionalForm[-Derivative[2, 0][u][x, y] - Derivative[0, 2][u][x, y] == f[x, y]], 
        FontFamily -> "Times"
    ], 
    {z, None}]
share|improve this answer
add comment

Just stumbled upon this and thought it's worth adding something here: To avoid having to specify the style for every instance of TraditionalForm output in your Manipulate, you could spell out the font in the BaseStyle option, i.e.:

SetOptions[Manipulate, BaseStyle -> {FontFamily -> "Times New Roman"}];

Manipulate[
 TraditionalForm[-Derivative[2, 0][u][x, y] - 
    Derivative[0, 2][u][x, y] == f[x, y]], {z, None}]
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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