Projects and recovery
The editor stores active projects in browser local storage after changes. That autosave belongs to the current browser profile and exact hostname. 127.0.0.1, localhost, and a public domain each have separate storage.
File → Save downloads a version 2 .feynman.json file. Version 2 stores momentum arrows, independent labels, and free arrows. File → Open reads version 1 and 2 files after validating the structure, numeric ranges, object references, and 1 MB size limit. A version 1 file opens with an empty annotation list. Project files remain compatible with the native and local-browser editions.
Download a project file before clearing site data, switching browsers, changing hostnames, or handing the figure to a collaborator.
SVG, PDF, PNG, and JPEG
| Format | Best use | Behavior |
|---|---|---|
| SVG | Web, slides, vector editors | Vector paths and embedded DejaVu Serif font. Optional transparent background. |
| Papers, print, journal upload | Vector primitives and embedded font. The first PDF export loads its writer and font support. | |
| PNG | Pixel-perfect figures and transparent raster assets | Lossless image with optional transparency and explicit density metadata. |
| JPEG | Platforms that require JPEG | Compressed raster on a white background. Fine diagram lines can show compression artifacts. |
All four rendered formats include momentum arrows, momentum labels, independent labels, and free arrows. SVG and PDF preserve vector geometry. PNG is suitable for submission systems that require raster files, while JPEG serves systems with a narrow format list.
Size and resolution
Figure width sets the physical width from 60 to 240 mm. The canvas aspect ratio is 3:2, so the exported height is two-thirds of the width. Raster dimensions follow this conversion:
A 120 mm figure at 600 ppi becomes about 2,835 × 1,890 pixels. Choose 300 ppi for normal print, 600 ppi for fine line work, and 1200 ppi when the destination requires it. Raster export has a 40-megapixel maximum.
Line width and text size use points, which makes their intended print size independent of ppi.
Six LaTeX formats
Select LaTeX in the app bar or File → LaTeX Source. Choose a dialect, then copy the figure snippet or a complete test document. The test document includes the packages and wrapper required for compilation. Each exporter writes momentum arrows, momentum labels, independent labels, and free arrows at fixed coordinates. The dialog disables a format when the current diagram contains a feature it would lose. Custom colors, including annotation colors, block feynMF; quark-bundle spacing blocks feynMP and feynMF. Rendered image export remains available for those diagrams.
| Format | Compiler | Choose it when |
|---|---|---|
| TikZ-Feynman | pdfLaTeX, LuaLaTeX, or XeLaTeX | You want fixed positions with TikZ integration, curves, colors, labels, and markers. |
| TikZ-FeynHand | pdfLaTeX, LuaLaTeX, or XeLaTeX | You prefer manual TikZ geometry without TikZ-Feynman’s automatic layout requirements. |
| feynMP | LaTeX plus MetaPost | Your document already uses MetaPost or the feynmf bundle’s native particle styles. |
| feynMF | LaTeX plus METAFONT | You maintain an older feynMF workflow and require monochrome output. |
| PST-Feyn | LaTeX → dvips → ps2pdf, or pdfLaTeX with auto-pst-pdf | Your document uses PSTricks and you want sampled curves at the app’s coordinates. |
| axodraw2 | LaTeX, or pdfLaTeX with axohelp | You use coordinate-driven HEP diagrams or an established axodraw2 toolchain. |
The packages use different drawing engines, so native wave and coil styles can vary from the editor preview. The resource directory links each CTAN (opens in a new tab) package page and manual.
% Verification workflow
1. Open LaTeX Source in the editor.
2. Choose the target package.
3. Copy test document.
4. Save as diagram.tex.
5. Compile with the toolchain named above.
6. Copy the snippet into your paper after the test succeeds.Choose a workflow
Paper uses LaTeX
Start with TikZ-Feynman for editable source inside the document. Use PDF when a journal wants a standalone figure or your TeX environment lacks the package.
Slides or a website
Use SVG. It stays sharp and can preserve transparency. Convert only if the destination application has poor SVG support.
Image-only submission
Use PNG at the required physical width and ppi. Keep the JSON project so you can change type size without editing pixels.
Existing legacy source
Match the package already used by the document. feynMP, feynMF, PST-Feyn, and axodraw2 avoid mixing diagram systems.