https://github.com/avitase/feynmaker
Docker container that helps to create Feynman diagrams as PDF files with the Feynmf LaTeX package.
Science Score: 23.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
○DOI references
-
✓Academic publication links
Links to: arxiv.org -
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (7.4%) to scientific vocabulary
Keywords
Repository
Docker container that helps to create Feynman diagrams as PDF files with the Feynmf LaTeX package.
Statistics
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 0
Topics
Metadata Files
README.md
Feynmaker
The container exposes a way to create Feynman diagrams as PDF files using the famous Feynmf package. The idea is to mount your current directory to /input (read-only) and the desired output directory for the PDF file to /output. Say you want to generate a Feynman diagram from example.tex:
```
cat example.tex \begin{fmfgraph*}(35,25) \fmfbottom{i1,d1,o1} \fmftop{i2,d2,o2} \fmf{fermion}{i1,v1} \fmf{fermion,label=$\uquark,,\cquark,,\tquark$,label.side=left}{v1,v2} \fmf{fermion}{v2,o1}
\fmf{fermion}{v3,i2}
\fmf{fermion,label=$\uquarkbar,,\cquarkbar,,\tquarkbar$,label.side=left}{v4,v3}
\fmf{fermion}{o2,v4}
\fmfv{l=$\bquarkbar$,l.a=180}{i2}
\fmfv{l=$\dquark$,l.a=180}{i1}
\fmfv{l=$\bquark$,l.a=0}{o1}
\fmfv{l=$\dquarkbar$,l.a=0}{o2}
\fmffreeze
\fmf{photon,label=$W$}{v3,v1}
\fmf{photon,label=$W$}{v2,v4}
\fmfdotn{v}{4}
\end{fmfgraph*}
by calling `./feynmaker.sh example.tex`.
This will wrap the content of [example.tex](example.tex) with the template defined in [template.tex](template.tex) and run the necessary `latex`, `mpost` and `pdflatex` commands for you and eventually exports the resulting PDF file to your current working directory (this is the default for the mount point of `/output`, defined in [feynmaker.sh](feynmaker.sh).)
rm -f exmaple.pdf ./feynmaker.sh example.tex > /dev/null && ls -1t | head -n1 example.pdf ```
You can specify a dedicated build directory by passing --output-dir=my-fancy-build-directory to ./feynmaker.sh. This directory will be mounted to /output/ and inhabit your desired PDF file.
Docker Pull Command
The container is accessible via the Docker Hub: docker pull avitase/feynmaker.
You can create your own Dockerfile and install additional dependencies of your project via apt-get or define your own template file.
Owner
- Name: Nis Meinert
- Login: avitase
- Kind: user
- Company: Pasteur Labs
- Repositories: 9
- Profile: https://github.com/avitase
GitHub Events
Total
Last Year
Issues and Pull Requests
Last synced: 7 months ago
All Time
- Total issues: 0
- Total pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Total issue authors: 0
- Total pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0