Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

epslatex terminal problem on Ubuntu

784 views
Skip to first unread message

Kyunghoon Lee

unread,
May 27, 2013, 10:48:36 PM5/27/13
to
Dear all,

I tried pngcairo and postscript terminals with the simple demo (found at http://gnuplot.sourceforge.net/demo_4.6/simple.1.gnu) and worked fine. However if I tried the epslatex terminal as below

set terminal epslatex size 3.5,2.62 color
set output 'simple.1.tex'

set key inside left top vertical Right noreverse enhanced autotitles box linetype -1 linewidth 1.000
set samples 50, 50
plot [-10:10] sin(x),atan(x),cos(atan(x))

, I got the following error saying "No configuration file gnuplot.cfg found":

No configuration file gnuplot.cfg found.
(./mytest.aux)
*geometry detected driver: dvips*
! Extra }, or forgotten $.
\@imakepicbox ...t@ #1\unitlength {\mb@l #4\mb@r }
\mb@b \kern \z@ }
l.169 \gplbacktext

I'd appreciate if someone could help me with this problem.

K. Lee.

sfeam

unread,
May 28, 2013, 12:58:01 AM5/28/13
to
Kyunghoon Lee wrote:

> Dear all,
>
> I tried pngcairo and postscript terminals with the simple demo (found
> at http://gnuplot.sourceforge.net/demo_4.6/simple.1.gnu) and worked
> fine. However if I tried the epslatex terminal as below
>
> set terminal epslatex size 3.5,2.62 color
> set output 'simple.1.tex'
>
> set key inside left top vertical Right noreverse enhanced autotitles
> box linetype -1 linewidth 1.000 set samples 50, 50
> plot [-10:10] sin(x),atan(x),cos(atan(x))
>
> , I got the following error saying "No configuration file gnuplot.cfg
> found":

The file gnuplot.cfg should have been installed in your local tex/latex
repository. I don't know where that is on Ubuntu, but on my system it
gets installed in $TEXMFLOCAL/tex/latex/gnuplot/
After placing it there, the inventory of tex modules needs to be
updated with the command texconfig rehash
Both of these steps should have been performed when you installed the
gnuplot package. If not you could report it to Ubuntu as a bug in the
installation package.

Be that as it may, the entire contents of gnuplot.cfg consists of
7 lines:
%% A configuration file for the epslatex terminal by Harald Harders.
%% This file is part of Gnuplot.
%%
\usepackage[T1]{fontenc}
\endinput
%%
%% End of file `gnuplot.cfg'.

You can install it manually as described above.
If in fact Ubuntu doesn't provide the latex support files in its
gnuplot package then you are probably also missing the files for
the tikz terminal:
gnuplot-lua-tikz-common.tex
gnuplot-lua-tikz.sty
gnuplot-lua-tikz.tex

These can be generated by running the script
lua /usr/local/share/gnuplot/4.6/lua/gnuplot-tikz.lua style
and then manually installed in $TEXMFLOCAL/tex/latex/gnuplot/ as above.

Christoph Bersch

unread,
May 28, 2013, 3:23:23 AM5/28/13
to
Hi,

Am 28.05.2013 04:48, schrieb Kyunghoon Lee:
>
> I tried pngcairo and postscript terminals with the simple demo (found at http://gnuplot.sourceforge.net/demo_4.6/simple.1.gnu) and worked fine. However if I tried the epslatex terminal as below
>
> set terminal epslatex size 3.5,2.62 color
> set output 'simple.1.tex'
>
> set key inside left top vertical Right noreverse enhanced autotitles box linetype -1 linewidth 1.000
> set samples 50, 50
> plot [-10:10] sin(x),atan(x),cos(atan(x))
>
> , I got the following error saying "No configuration file gnuplot.cfg found":

this is not the error, but rather an information.

>
> No configuration file gnuplot.cfg found.
> (./mytest.aux)
> *geometry detected driver: dvips*
> ! Extra }, or forgotten $.
> \@imakepicbox ...t@ #1\unitlength {\mb@l #4\mb@r }
> \mb@b \kern \z@ }
> l.169 \gplbacktext

This is the error. What does mytest.tex contain?

With your above mentioned example I do not get any error, for a
standalone image:

set terminal epslatex size 3.5,2.62 color standalone
set output 'simple1.tex'

set key inside left top vertical Right noreverse enhanced autotitles box
linetype -1 linewidth 1.000
set samples 50, 50
plot [-10:10] sin(x),atan(x),cos(atan(x))

And then compiling with
latex simple1.tex && dvips simple1.dvi && ps2pdf simple1.ps

Note, that I changed the output name to 'simple1.tex', the extra point
before '1' makes trouble.

Christoph

Kyunghoon Lee

unread,
May 29, 2013, 11:11:34 PM5/29/13
to
Dear sfeam & Christoph,

As sfeam pointed out, the problem was caused by missing gnuplot.cfg, and after having the file, the problem was gone. Here's what I did to copy gnuplot.cfg:

1. install gnuplot-doc package.

2. copy gnuplot.cfg to texmf

$ sudo mkdir /usr/local/share/texmf/latex
$ sudo mkdir /usr/local/share/texmf/latex/gnuplot
$ sudo cp /usr/share/doc/gnuplot-doc/examples/gnuplot.cfg /usr/local/share/texmf/latex/gnuplot
$ sudo texconfig rehash

Note that the contents of gnuplot.cfg is different from what sfeam described:

$ cat /usr/share/doc/gnuplot-doc/examples/gnuplot.cfg
% LaTeX configuration file for usage with gnuplot-generated LaTeX files
% (epslatex terminal with standalone option).
% Here, used by epslatex.dem.
\usepackage{exscale}
\endinput

Thank you for your help!

K. Lee.
0 new messages