You can edit the generated SVG code directly to make fine adjustments.
The corresponding SVG output will be updated immediately when you
trigger a text change event by clicking outside of the textarea.
It is your own responsibility to ensure the validity of your SVG code.
Note that reloading the page will descard your editing, so please manually
save the change in an external SVG file. You can use the two textareas
in this way: one for testing, and the other for producing.
Simple labels such as particle names, momentum, data, and comments, can be
typeset with jQuery.Feyn's label option. It supports subscript,
superscript, bar and tilde accents by using the dx and dy
attributes of <tspan>. For complicated mathematical expressions,
they should be included as external SVG images with the image option.
LaTeX Previewer provides
a user-friendly utility for generating LaTeX output.
For special characters such as greek letters and mathematical operators,
it is recommended to input the unicode entity by citing its decimal number,
for example α can be accessed by α. A partial list
of frequently used characters can be found at
If you are familiar with Mathematical Markup Language (MathML), you can also
include mathematical expressions by adding the <foreignObject>
element manually. Please check caniuse.com/mathml
to see whether or not your browser has a good support for MathML.
When MathJax is available, you can set
jQuery.Feyn's mathjax option to true to typeset
mathematics in TeX or LaTeX. This functionality also relies on browsers'
support for the <foreignObject> element.
SVG files can be converted to
If your SVG code has included some external SVG files, please set jQuery.Feyn's
ajax option to true to merge their code directly,
or copy, paste, and modify them manually. Before conversion, you should
check the markup validity of your SVG code.
Chrome does not support loading local files with ajax by default
(Firefox has no problem). You should start Google Chrome with the
--disable-web-security or --allow-file-access-from-files
option, otherwise you will get a network error.
Firefox 23 or below has a
renderging the <image> element. Please update your
browser to 24+.