Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.apps.gnuplot > #1860 > unrolled thread

epslatex terminal problem on Ubuntu

Started byKyunghoon Lee <aeronova@gmail.com>
First post2013-05-27 19:48 -0700
Last post2013-05-29 20:11 -0700
Articles 4 — 3 participants

Back to article view | Back to comp.graphics.apps.gnuplot


Contents

  epslatex terminal problem on Ubuntu Kyunghoon Lee <aeronova@gmail.com> - 2013-05-27 19:48 -0700
    Re: epslatex terminal problem on Ubuntu sfeam <sfeam@users.sourceforge.net> - 2013-05-27 21:58 -0700
    Re: epslatex terminal problem on Ubuntu Christoph Bersch <usenet@bersch.net> - 2013-05-28 09:23 +0200
      Re: epslatex terminal problem on Ubuntu Kyunghoon Lee <aeronova@gmail.com> - 2013-05-29 20:11 -0700

#1860 — epslatex terminal problem on Ubuntu

FromKyunghoon Lee <aeronova@gmail.com>
Date2013-05-27 19:48 -0700
Subjectepslatex terminal problem on Ubuntu
Message-ID<d5c1fee4-0e81-4ca8-916f-725802e74ea7@googlegroups.com>
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.

[toc] | [next] | [standalone]


#1861

Fromsfeam <sfeam@users.sourceforge.net>
Date2013-05-27 21:58 -0700
Message-ID<ko1d8s$2ra$1@dont-email.me>
In reply to#1860
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.



> 
> 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.

[toc] | [prev] | [next] | [standalone]


#1862

FromChristoph Bersch <usenet@bersch.net>
Date2013-05-28 09:23 +0200
Message-ID<ko1lpa$4kf$1@dont-email.me>
In reply to#1860
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

[toc] | [prev] | [next] | [standalone]


#1867

FromKyunghoon Lee <aeronova@gmail.com>
Date2013-05-29 20:11 -0700
Message-ID<6260ac11-adae-4445-86a2-5a17c6f6f276@googlegroups.com>
In reply to#1862
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.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.graphics.apps.gnuplot


csiph-web