|
From: Dmitry <unk...@gm...> - 2025-02-26 07:09:53
|
> so your command needs to be
>
> set term tikz standalone preamble "\\usepackage{derivative}"
>
> This has nothing to do with tikz.
Hi Ethan,
set term tikz standalone preamble "\\usepackage{derivative}"
Does not work either, fails with the same error.
$ gnuplot
G N U P L O T
Version 6.1.0 last modified 2025-02-19
Copyright (C) 1986-1993, 1998, 2004, 2007-2025
Thomas Williams, Colin Kelley and many others
gnuplot home: http://www.gnuplot.info
mailing list: gnu...@li...
faq, bugs, etc: type "help FAQ"
immediate help: type "help" (plot window: hit 'h')
Terminal type is now qt
gnuplot> set term tikz standalone preamble "\\usepackage{derivative}"
Terminal type is now 'tikz'
/usr/share/gnuplot/6.1/lua/gnuplot-tikz.lua:1773: bad argument
#1 to 'load' (function expected, got string)
stack traceb
gnuplot> set term tikz standalone header "\\usepackage{derivative}"
Terminal type is now 'tikz'
/usr/share/gnuplot/6.1/lua/gnuplot-tikz.lua:1773: bad argument
#1 to 'load' (function expected, got string)
stack traceb
gnuplot> set term cairolatex header "\\usepackage{derivative}"
Terminal type is now 'cairolatex'
Options are ' pdf input header "\usepackage{derivative}" blacktext
nobackground noenhanced fontscale 0.6 size 5.00in, 3.00in '
gnuplot>
On 26.02.2025 02:43, Ethan Merritt wrote:
> On Tuesday, 25 February 2025 02:15:22 PST Dmitry wrote:
>> So, documentation says that we can add latex preamble with tikz terminal
>> as *preamble "<preamble string>".*
>>
>> But this actually does not work, it fails with
>>
>> /usr/share/gnuplot/6.1/lua/gnuplot-tikz.lua:1773: bad argument #1 to
>> 'load' (function expected, got string)
>>
>> Instead of *preamble "<preamble string>" *one should use *preamble
>> '<preamble string>' *(single quotes vs double quotes).
> Remember that inside double quotes backslash is an escape character,
> so your command needs to be
>
> set term tikz standalone preamble "\\usepackage{derivative}"
>
> This has nothing to do with tikz. It is the usual difference between string
> handling in single vs double quotes.
>
> Ethan
>
>
>
>
>> I'm not sure if its bug or it's wrong documentation. Below I listed the
>> full console output
>>
>> Thanks!
>>
>>
>>> $ gnuplot
>>>
>>> G N U P L O T
>>> Version 6.1.0 last modified 2025-02-19
>>>
>>> Copyright (C) 1986-1993, 1998, 2004, 2007-2025
>>> Thomas Williams, Colin Kelley and many others
>>>
>>> gnuplot home: http://www.gnuplot.info
>>> mailing list: gnu...@li...
>>> faq, bugs, etc: type "help FAQ"
>>> immediate help: type "help" (plot window: hit 'h')
>>>
>>> Terminal type is now qt
>>> gnuplot> set terminal lua tikz standalone preamble
>>> "\usepackage{derivative}"
>>>
>>> Terminal type is now 'lua'
>>> /usr/share/gnuplot/6.1/lua/gnuplot-tikz.lua:1773: bad
>>> argument #1 to 'load' (function expected, got string)
>>> stack traceb
>>>
>>> gnuplot> set terminal lua tikz standalone preamble
>>> '\usepackage{derivative}'
>>>
>>> Terminal type is now 'lua'
>>> Options are 'latex preamble "\\usepackage{derivative}" color
>>> standalone nogparrows notikzarrows nogppoints picenvironment
>>> nooriginreset bitmap rgbimage noclip notightboundingbox noexternalimages '
>>> gnuplot>
>> _______________________________________________
>> gnuplot-info mailing list
>> gnu...@li...
>> Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info
>>
>
>
>
|