Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't change CommonDefaultFormatTypes in $FrontEnd in install.m #30

Closed
rolfmertig opened this issue Dec 29, 2017 · 1 comment

Comments

@rolfmertig
Copy link
Member

commented Dec 29, 2017

  • Your Mathematica version

11.2.0 for Microsoft Windows (64-bit) (September 11, 2017)

  • Your FeynCalc version

9.2.0

  • Did you try to reinstall FeynCalc (stable version) using the automatic installer to make sure that you have the latest bugfixes?

Yes

  • Please provide a minimal working example that illustrates the problem. Please explain the difference between the current behavior and the expected behavior.

The problem is that in installation.m the option CommonDefaultFormatTypes is set for $FrontEnd. And, since the explanation how to reset it is not correct in all version ( it should be CurrentValue[$FrontEnd, {CommonDefaultFormatTypes, "Output"}] = StandardForm) the problem is that for all subsequent Mathematica FrontEnd sessions the default output format type is TraditionalForm. The fix is to use CurrentValue[$FrontEndSession, {CommonDefaultFormatTypes, "Output"}] = TraditionalForm in install.m . Then any subequent Mathematica FrontEnd session will not be influenced by FeynCalc. (the other setting of $FrontEnd is probably just fine).

vsht added a commit that referenced this issue Jan 29, 2018
issue #30. In particular, FeynCalc will now change only the
output format of the current front end session, not the global
Mathematica option as before. This behavior is controlled by the
new global option $FCTraditionalFormOutput.

Furthermore, we introduced two new functions
FCEnableTraditionalFormOutput and FCDisableTraditionalFormOutput
that allow us to switch between StandardForm and TraditionalForm on the
fly.

Last but not least, from now on FCConfig.m will be generated by the
automatic installer.
vsht added a commit that referenced this issue Jan 29, 2018
issue #30. In particular, FeynCalc will now change only the
output format of the current front end session, not the global
Mathematica option as before. This behavior is controlled by the
new global option $FCTraditionalFormOutput.

Furthermore, we introduced two new functions
FCEnableTraditionalFormOutput and FCDisableTraditionalFormOutput
that allow us to switch between StandardForm and TraditionalForm on the
fly.

Last but not least, from now on FCConfig.m will be generated by the
automatic installer.ttt
@vsht

This comment has been minimized.

Copy link
Member

commented Jan 29, 2018

Should be now fixed. From now on the automatic installer will create FCConfig.m on the fly and set
$FCTraditionalFormOutput=True; if TraditionalForm is desired. This will only modify
the local front end session without touching the global Mathematica options.

@vsht vsht added the bug label Jan 29, 2018
@vsht vsht self-assigned this Jan 29, 2018
@vsht vsht closed this Feb 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.