Group Abstract Group Abstract

Message Boards Message Boards

0
|
4.6K Views
|
8 Replies
|
1 Total Like
View groups...
Share
Share this post:

Changing output default to StandardForm / TraditionalForm

Posted 1 year ago

Hi All,

I problem I have all the time is my notebooks switching to TraditionalForm instead of StandardForm and being unable to switch back. The switch happens because I used FeynCalc often, and that resets the default to be TraditionalForm output.

However, TraditionalForm is just incompatible with doing actual computations so I prefer to switch back rather than manually putting StandardForm[] around everything I evaluate. However, when I open the Options window from the Format tab, I go into Cell Options > New Cell Defaults > CommonDefaultFormatTypes, when I try to change Output to StandardForm, I can never apply the change! Attached is a screen shot of what I see.

How do I get this change to be more consistent? This drives me crazy, and the guess work of kernel quitting, restarting, blah blah until finally the default resets by some magic is a terrible solution.

Thanks!enter image description here

POSTED BY: chris jackson
8 Replies
Posted 13 days ago

I've never used this code with text. I think I'd better do some more research.

Sinval

POSTED BY: Sinval Santos
Posted 14 days ago

Hi Ulrich,

In my case, the only thing that worked was the code mentioned above:

CurrentValue[$FrontEnd,{"CommonDefaultFormatTypes"->"Output"}]=StandardForm

Sinval

POSTED BY: Sinval Santos
Posted 13 days ago
CurrentValue[$FrontEnd, {"CommonDefaultFormatTypes" -> "Text"}] = 
  TraditionalForm;

When I execute this code in a notebook, it does not put all newly created text cells (Alt+7) into TraditionalForm.

POSTED BY: Ulrich Utiger
Posted 15 days ago

I have the opposite problem. I want the style "text" (ALT+7) to be in TraditionalForm in order to display math expressions correctly. However, whatever I do it switches to StandardForm: when I define DefaultFormatType->TraditionalForm in my default stylesheet for the text style or in Cell Options/New Cell Defaults/CommonDefaultFormatTypes/"Text"->TraditionalForm. Any ideas?

POSTED BY: Ulrich Utiger

My experience with formulas in text cells is that I start an inline cell with control-(, on Mac, and the formula shows in TraditionalForm automatically.

POSTED BY: Gianluca Gorni
Posted 14 days ago

Yes, I know that but this is unfeasible if you have a lot of inline math. I learned that you cannot enough comment your code because otherwise in some weeks or months when you get back to it you have almost forgotten all.

It's just one of another annoying bug of Mathematica that despite clearly telling it to display text in TraditionalForm it does just the contrary of what you want it to do...

POSTED BY: Ulrich Utiger
Posted 1 year ago

Hi Chis, I'm not a Mathematica expert, but try this. Type the following command into your current document:

CurrentValue[$FrontEnd,{"CommonDefaultFormatTypes"->"Output"}]=StandardForm;

His change will be applied to all documents.To restore the previous format:

CurrentValue[$FrontEnd,{"CommonDefaultFormatTypes"->"Output"}]=TraditionalForm;

Hope this helps.

POSTED BY: Sinval Santos
POSTED BY: Lori Johnson
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard