feynman icon indicating copy to clipboard operation
feynman copied to clipboard

Math in Text elements doesn't work without $

Open Neurophysics-CFIN opened this issue 7 years ago • 5 comments

I cannot open diagrams exported as pdf or png on either Mac or Windows computers. Apparently they are corrupt.

Neurophysics-CFIN avatar Nov 05 '18 19:11 Neurophysics-CFIN

Hey @sunenj - thanks for reporting this.

Could you please send me the file that you get if you click Save Diagram? It will help me reproduce your problem.

AlecAivazis avatar Nov 05 '18 19:11 AlecAivazis

Yes, I've attached three diagrams here.

Archive.zip

I just noted that I could export the supplied Drell-Yan just fine.

Neurophysics-CFIN avatar Nov 05 '18 19:11 Neurophysics-CFIN

Oops didn't mean to close

Neurophysics-CFIN avatar Nov 05 '18 19:11 Neurophysics-CFIN

Thanks for uploading these. I think have found a workaround for the problem until I can make this behave as expected. In short, Text doesn't assume math mode so if I wrap the content of all of your text elements in $...$ then I am able to save it just fine.

an example diagram 15

Also, idk how often you change this or move stuff around but you might want to consider using a label on the propagators instead of free-positioned text. It will allow you to move the propgators without having to worry about dragging the text along with it.

AlecAivazis avatar Nov 05 '18 20:11 AlecAivazis

Ah, I see. Great, and thanks so much for the super fast answer and work around!

Neurophysics-CFIN avatar Nov 05 '18 20:11 Neurophysics-CFIN