This repository is currently under construction and for private use. Therefore there is no guarantee that it will work well on other platforms.
This alert will be removed once I (personally) think this is ready to face the public.
This repository offers a quick, minimal setup of mathematica for particle physicists, inspired by EverettYou/Mathematica-for-physics, which offers a comprehensive and detailed setup, giving a fantastic experience of using mathematica if you are a condensed matter theorist.
This repository, on the contrary, is designed for theoretical particle physicists. Some of the key modifications are related to conflicted packages, including:
- Some packages, like the LoopIntegrate and the PauliAlgebra, conflicts with FeynCalc and trigger some alerts. I prefer to keep the FeynCalc. If there is anyway to make them consistent, I'll be very excited to learn.
- The DiagramEditor is out of date since Mathematica v12.2. The function
Canvas[]
is now a new function of MMA itself. It reports error message every time you load it.
Other of them are personal habits. I prefer to keep the original default settings like code suggestions and RGB definition for named colors.
Furthermore, I'm gradually adding some other stylesheets, packages, and private functions into it.
- Academic theme without changing any MMA color definitions. Main reference is StackExchange: Is it possible to define a new PlotTheme?, which is the main part of Mathematica-for-Physicists/Theme. The author of this code is exactly EverettYou.
- Cambria Article stylesheet, with some modified shortcuts.
- CMU Article stylesheet: a beautiful, modern stylesheet. The required font, the CMU font, has to be installed separately.
- Source Code Article stylesheet: a theme that mimics the built-in "source code" theme in Mathematica.
- Modified default stylesheet: basically the default stylesheet of Mathematica, but with some modified shortcuts. The font of the input and code cell are changed from bold to regular.
- FeynCalc and FeynArts.
- Group Math: a package for group algebra.
- DRalgo: dimension-reduction formalism to compute the effective potential at finite temperature.
Use log-scale frame ticks in plots. Usage: inside any plot functions that allow for FrameTicks
option, run FrameTicks->{{LogTicks[min,max,step],True},{Other axes}}
, where the min
and max
is for the Log10
value of the plotted variable.
The function code is from one of my collaborator, and it seems he got it somewhere else.
See this stackexchange answer.
-
To download, click the "download ZIP" button to the right -->
-
To install everything:
-
unzip this repository in a folder,
-
Install CMU fonts in the folder "CMU fonts". Method depends on your operation system.
-
open
install.m
in Mathematica, -
click the
Run Package
button to the top right. It may ask you some questions. If it's asking for permissions, allow it. If it's asking for whether you want some features of FeynCalc, answer it according to what you want. -
quit Mathematica and restart.
-