Re: [jaxodraw-discuss] TeX characters with gaps
JaxoDraw: Feynman Diagrams made easy!
Brought to you by:
lukas_theussl
From: John C. <jc...@ps...> - 2018-10-17 21:55:59
|
Hi Nikolas, I've got some Perl scripts that solve this problem. They are available in the zip file at http://personal.psu.edu/jcc8/software/jaxodraw/ The top level scripts are jax2eps.pl and jax2pdf.pl, which do the conversion from an axodraw file to eps and pdf. Simply execute either of these scripts to get further information. (N.B. I am using OS-X and TeXLive/MacTeX; some corrections may be need on MS-Windows.) Notes: These scripts use some external programs, which are installed by default under TeXLive. In addition, you need a defined jaxodraw command to invoke JaxoDraw; I've provided a script that does this for OS-X. (Technically, the trick done by the scripts is to run latex twice on the TeX file produced by jaxodraw. The first time it is used to determine the correct size of the jaxodraw figure. Then the TeX file is changed to correct the size of the figure from jaxodraw's original estimate. After that latex is run again, and the result converted to the desired eps file.) If you don't want to have to remember to run this external command whenever you save a file from jaxodraw, you should know my workflow. I use latexmk (part of TeXLive and MikTeX) to do the compilation of my documents. It is configured with a "custom depedency" to automatically do the conversion of the jaxodraw file to eps (or pdf, as needed) whenever it is needed before a compilation of the document by latex (or pdflatex, etc). John P.S. Configuration for latexmk: I have the following in one of latexmk's initialization files: add_cus_dep( "xml", "eps", 0, "jax2eps" ); add_cus_dep( "xml", "pdf", 0, "jax2pdf" ); sub jax2eps { return system( "jax2eps '$_[0]'" ); } sub jax2pdf { return system( "jax2pdf '$_[0]'" ); } On 10/17/18 7:08 AM, Lukas Theussl wrote: > > Hi Nikolas, > > This is a known problem, see Bug 3 in the User Guide: > http://jaxodraw.sourceforge.net/UsrGuide/problems.html#Bugs > > A possible workaround (apart from editing the eps) is to draw an > 'invisible' object (ie with color of the background) at the edge of the > graph! > > Am 15.10.2018 um 20:50 schrieb Nikolas Kauer: >> Dear All, >> >> I produced the attached eps file with jaxodraw-2.1-0. The input file is also attached. >> The TeX label "(b)" has gaps in both round brackets. This is not a rendering issue as one can see by zooming in. I have the same problem in other graphs. It's like a "white" horizontal line is drawn close to the bottom of the graph area. >> >> Any hints how to avoid this? |