Template for external gnuplots and converter scripts for LyX [was: Re: Help with gnuplot xtemplate needed]
Tobias Hilbricht
hilbricht at linopus.de
Mon Apr 22 18:10:15 UTC 2024
Am Sonntag, dem 21.04.2024 um 23:18 +0200 schrieb Pavel Sanda:
> On Sun, Apr 21, 2024 at 03:03:15PM +0200, Tobias Hilbricht wrote:
> >
> > https://wiki.lyx.org/Tools/GnuplotInLyX
>
> What is the advantage here compared to just using .gp filename
> directly
> in graphics inset?
>
> Pavel
Pavel,
thank you for asking. When just using .gp filename directly as graphics
inset the fonts in the plot are not the same as document fonts. E. g.
in default settings you have CM fonts in the document and Helvetica in
the gnuplot. Furthermore, direct graphic insets do not render LaTeX
math in a gnuplot.
With gnuplots as external material (gnuplot.xtemplate) something
similar to the inkscape.xtemplate and the xfig.xtemplate happens:
Labels and numbers appear in the document font, which looks way better
and is less confusing than having different fonts in the plot. And
LaTeX math input is rendered.
I have attached a PDF showing the difference and a sample another-
gnuplot-example.gp which contains LaTeX math.
Tobias
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Gnuplot_examples_in_LyX.pdf
Type: application/pdf
Size: 128540 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-users/attachments/20240422/357a5594/attachment-0001.pdf>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: another-gnuplot-example.gp
Type: application/x-gnuplot
Size: 344 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-users/attachments/20240422/357a5594/attachment-0001.bin>
More information about the lyx-users
mailing list