![](https://csdnimg.cn/release/download_crawler_static/12262016/bg4.jpg)
21 Page 4 of 19 Eur. Phys. J. C (2019) 79 :21
Tabl e 1 Running
‘InstallCoDEx’ can be
customized using its options
Options Default Detail
AutoDisableInsufficient- None True → warning messages for notebooks created with
VersionWarning newer Mathematica version automatically disabled
a
None → user will be asked by a dialog
False → warnings will not be disabled
AutoOverwriteCoDEx- None True → Previous installations automatically deleted
Directory None → user will be asked by a dialog
False → the directory will be overwritten
InstallCoDEx- False True → Install latest development version
DevelopmentVersion False → Install the latest stable version
InstallCoDExTo "path" Specifies custom full path to installation directory
a
Needed to generate documentation in older versions
cally loaded inside the Mathematica environment by using
the command
1
In[1]:= Import["https://github.com/
effExTeam/CoDEx-1.0.0/raw/master/
install.m"];
This loads two functions in the working kernel:
‘InstallCoDEx’ and ‘InstallCoDExQuiet’. A typ-
ical way of running them is
In[2]:= InstallCoDEx[]
One can use InstallCoDExQuiet instead of
InstallCoDEx, which is equivalent to running
In[2]:= InstallCoDEx[AutoDisableInsufficientVersionWarning→
→
→True,
AutoOverwriteCoDExDirectory→
→
→True]
3.1.2 Download archive file
There is a provision to download and install the program
locally (Table 1).
The CoDEx package is available in both .zip and .tar for-
mat in its ‘Github’ repository. While using the
‘Install’ option from the Notebook menu inside Math-
ematica or manually extracting the downloaded archive
file in the ‘Applications’ folder inside the
$UserBaseDirectory works perfectly, installing
CoDEx is made a lot easier by downloading and importing
the installer file ‘install.m’ available here.
If for some reason you choose to download the archive
files and install CoDEx from them, this can still be done,
1
This requires a live internet connection and Mathematica should be
able to connect to the internet.
using InstallCoDEx. You just need to run it in a slightly
different way.
You need to copy the path of the downloaded archive
(e.g. if you are working in Windows and have downloaded
the .zip file to the ‘Downloads’ folder, your path will
be "C:\...\Downloads\CoDEx.zip". Let us call it
"path" from now).
Then run this command in your notebook after importing
the ‘install.m’ file:
In[1]:= $PathToCoDExArchive = "path";
InstallCoDEx[]
This goes through exactly the same steps as in the previ-
ous section, but instead of downloading the archive from the
server, one uses the local file. After this, the package can
always be loaded in Mathematica using
In[2]:= Needs["CoDEx‘"]
The installer file is not our creation (Table 2). We have edited
and simplified the installer for FeynRules [55].
3.2 How to build the Lagrangian
3.2.1 Building the Lagrangian: an example
Let us demonstrate this with a toy example where the
Lagrangian is given in its traditional form (Fig. 1):
123