From prsingh at davidson.edu Fri May 7 21:22:12 2021 From: prsingh at davidson.edu (Singh, Pranjal) Date: Fri, 7 May 2021 20:22:12 +0000 Subject: [PyFeyn] PyFen Package Inquiry Message-ID: Hello Reader, Hope you are doing well. My name in Pranjal Singh and I am an undergraduate Physics major at Davidson College. I am currently working on a project for class and hoping to use the PyFeyn package for visualization of Feynman diagrams, however, I am having trouble with the LaTeX hepnames and the hepparticles and maybemath packages. I know how to work in Python but am unfamiliar with using LaTeX packages within python. After downloading the LaTeX packages, I am uncertain on how to incorporate the .sty files into the code. I was hoping for some guidance on the matter as I would really love to use the PyFeyn package. Thank you. Have a great weekend! Sincerely, Pranjal Singh -------------- next part -------------- An HTML attachment was scrubbed... URL: From andy.buckley at cern.ch Mon May 10 09:49:05 2021 From: andy.buckley at cern.ch (Andy Buckley) Date: Mon, 10 May 2021 09:49:05 +0100 Subject: [PyFeyn] PyFen Package Inquiry In-Reply-To: References: Message-ID: <33CDD050-AA1C-4ADF-88D4-7EA68473EA5C@getmailspring.com> Hi Pranjal, The Python code is just calling latex in the background (via the pyx library -- https://pyx-project.org/ ), so you download the style files and put them in the latex search path. There will be a standard location on your system, but you can add a local one, e.g. in your home directory, by putting something like "export LATEXINPUTS=$HOME/mytex//" in your .bashrc and creating a ~/mytex directory with package files in (the double-slash means that location will be searched recursively) I'm afraid that due to lack of time, I'm not able to develop pyfeyn anymore, and evolutions in the latex ecosystem mean that other approaches such as TikZ may work better these days. But it should still be runnable -- good luck! Dr Andy Buckley, Senior Lecturer & Royal Society Research Fellow Particle Physics Experiment Group, University of Glasgow, UK On May 7 2021, at 9:22 pm, Singh, Pranjal wrote: > > Hello Reader, > > > Hope you are doing well. My name in Pranjal Singh and I am an undergraduate Physics major at Davidson College. I am currently working on a project for class and hoping to use the PyFeyn package for visualization of Feynman diagrams, however, I am having trouble with the LaTeX hepnames and the hepparticles and maybemath packages. > > I know how to work in Python but am unfamiliar with using LaTeX packages within python. After downloading the LaTeX packages, I am uncertain on how to incorporate the .sty files into the code. I was hoping for some guidance on the matter as I would really love to use the PyFeyn package. Thank you. Have a great weekend! > > Sincerely, > Pranjal Singh > _______________________________________________ > PyFeyn mailing list > PyFeyn at projects.hepforge.org > https://www.hepforge.org/lists/listinfo/pyfeyn -------------- next part -------------- An HTML attachment was scrubbed... URL: