First time user of LaTeXDraw (LD), but long-time user of PSTricks, pgfplots, etc. Created a simple plot using LD, compiled using a series of additional packages to control (primarily) the fonts used in the equations embedded in the drawing.
Compilation goes fine, and the drawing (and embedded equation) on the screen looks perfect, but when I try to export the picture using something based on .ps (like, .eps, .pdf), the generated file has a line of text at the top looking like:
In other words, all of the package information, without the \usepackage directive, or the braces.
If I export to something not .ps based (like .png), no problem. Just the image. But, for a lot of reasons, I prefer .eps output. I can use the generated PST code, but I prefer to include the .eps graphics, rather than having my .tex files littered with PST code for each figure (having 1-2 figures per page, for a 300-400 page document, adds a lot of clutter).
Pointers to the obvious thing I must be doing wrong appreciated.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
Cannot reproduce the issue on Linux.
Can you copy/paste here the information provided in the "system" tab you can find here: "Help" menu -> "About LateXDraw" menu item -> "system" tab?
Can you also provide an SVG document that triggers the issue for you.
Cheers
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I think I know what the issue might be. If I bring up LD, and go into
'Preferences', I enter the packages I want loaded for LaTeX compilations:
But, when I enter a LaTeX expression, these packages aren't 'used' during the
compilation. Here is a simple expression that requires AMS and mathtools:
$$\scalebox{0.8}{$rN\Bigl(1-\frac{N}{K}\Bigr)$}$$
If I enter this as is, nothing compiles. The only way I can get it to compile is
(i) click the equation, and (ii) to enter the packages into the little dialog
box I can access from the bottom toolbar:
That generates a perfect equation (scaled, right fonts). However, when I try to
export to .eps, the problem that I originally described emerges (I've attached
the .eps file). Here is how it renders when included in a LaTex document --
pretty obvious what the problem is:
What's also problematic is that if I look at the PST code, the first packages
(amsmath, mathtools) are commented out:
I've attached the .svg file, as requested.
On 7/4/2019 4:24 PM, ARno wrote:
Hi,
Cannot reproduce the issue on Linux.
Can you copy/paste here the information provided in the "system" tab you can
find here: "Help" menu -> "About LateXDraw" menu item -> "system" tab?
Can you also provide an SVG document that triggers the issue for you.
First time user of LaTeXDraw (LD), but long-time user of PSTricks, pgfplots, etc. Created a simple plot using LD, compiled using a series of additional packages to control (primarily) the fonts used in the equations embedded in the drawing.
Something like
Compilation goes fine, and the drawing (and embedded equation) on the screen looks perfect, but when I try to export the picture using something based on .ps (like, .eps, .pdf), the generated file has a line of text at the top looking like:
In other words, all of the package information, without the \usepackage directive, or the braces.
If I export to something not .ps based (like .png), no problem. Just the image. But, for a lot of reasons, I prefer .eps output. I can use the generated PST code, but I prefer to include the .eps graphics, rather than having my .tex files littered with PST code for each figure (having 1-2 figures per page, for a 300-400 page document, adds a lot of clutter).
Pointers to the obvious thing I must be doing wrong appreciated.
Hi,
Cannot reproduce the issue on Linux.
Can you copy/paste here the information provided in the "system" tab you can find here: "Help" menu -> "About LateXDraw" menu item -> "system" tab?
Can you also provide an SVG document that triggers the issue for you.
Cheers
I think I know what the issue might be. If I bring up LD, and go into
'Preferences', I enter the packages I want loaded for LaTeX compilations:
But, when I enter a LaTeX expression, these packages aren't 'used' during the
compilation. Here is a simple expression that requires AMS and mathtools:
$$\scalebox{0.8}{$rN\Bigl(1-\frac{N}{K}\Bigr)$}$$
If I enter this as is, nothing compiles. The only way I can get it to compile is
(i) click the equation, and (ii) to enter the packages into the little dialog
box I can access from the bottom toolbar:
That generates a perfect equation (scaled, right fonts). However, when I try to
export to .eps, the problem that I originally described emerges (I've attached
the .eps file). Here is how it renders when included in a LaTex document --
pretty obvious what the problem is:
What's also problematic is that if I look at the PST code, the first packages
(amsmath, mathtools) are commented out:
I've attached the .svg file, as requested.
On 7/4/2019 4:24 PM, ARno wrote:
ok thx. I identified the issue (that occurs on windows only, maybe mac).
Will investigate it soon.
Cheers
Thanks! I can provide more system details, if that helps.
On 7/9/2019 6:42 AM, ARno wrote:
I fixed the problem so that you can test a development version:
https://ci.inria.fr/malai/job/latexdraw_bundle/
Thank you! The 'test' may take until the end of the week.
On 7/9/2019 11:10 AM, ARno wrote: