[NTG-context] gnuplot: `! Undefined control sequence.` with format specifier %

2011-12-11 Thread Paul Menzel
Dear Mojca and ConTeXt folks,


I compiled gnuplot 4.5 from source (master) and got everything running.
Mojca, thank you so much!

Trying the example from the gnuplot page in the Wiki [1]

\usemodule[gnuplot]

\setupGNUPLOT[terminal=mp,option=color]

% general settings for the whole document
\startGNUPLOTinclusions

   # you may use TeX commands to format the titles and axes
   set title '\bf Trigonometry'
   set xlabel '$x$'
   set ylabel '$y$'
   set format y '\%.1f'
\stopGNUPLOTinclusions

\startGNUPLOTscript[tan]
   plot tan(x) t '$\tan(x)$'
\stopGNUPLOTscript

\startGNUPLOTscript[sin]
   plot 4*sin(x)+x t '$4\sin(x)+x$', x t '$x$' lt 3
\stopGNUPLOTscript

\useGNUPLOTgraphic[tan]
\useGNUPLOTgraphic[sin][width=10cm]

even with the comments removed as above I get the following though.

[1.1] [1.1] [1.1]
! Undefined control sequence.
l.66 \0
   .0%
? 
[1.1]
! Undefined control sequence.
l.71 \1
   0.0%
? 
[1.1]
! Undefined control sequence.
l.76 \2
   0.0%
? 
[1.1]
! Undefined control sequence.
l.81 \3
   0.0%
? ^C! Interruption.
to be read again 
   0
l.81 \30
.0%
?

I hope that is not related to the used ConTeXt version.

ConTeXt  ver: 2011.11.25 21:29 MKII  fmt: 2011.11.25  int: 
english/english

Actually I hope that it is since then upgrading would fix my issue. ;-)


Thanks,

Paul


[1] http://wiki.contextgarden.net/Gnuplot


signature.asc
Description: This is a digitally signed message part
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] gnuplot: `! Undefined control sequence.` with format specifier %

2011-12-11 Thread Mojca Miklavec
On Mon, Dec 12, 2011 at 00:51, Paul Menzel wrote:
 Dear Mojca and ConTeXt folks,


 I compiled gnuplot 4.5 from source (master) and got everything running.
 Mojca, thank you so much!

 Trying the example from the gnuplot page in the Wiki [1]

        \usemodule[gnuplot]

        \setupGNUPLOT[terminal=mp,option=color]

        % general settings for the whole document
        \startGNUPLOTinclusions

           # you may use TeX commands to format the titles and axes
           set title '\bf Trigonometry'
           set xlabel '$x$'
           set ylabel '$y$'
           set format y '\%.1f'

This should have been without the backslash.

In beginning the text was processed with TeX, not it is taken
literally (% doesn't start the comment any more), so maybe it's a
leftover from the very early days. I will check the wiki.

 Actually I hope that it is since then upgrading would fix my issue. ;-)

... however I still have some problems. For some reason ConTeXt only
generates dvi files from metapost code which has never been the case
before. I need to figure out what is going on.

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] gnuplot: `! Undefined control sequence.` with format specifier %

2011-12-11 Thread Mojca Miklavec
On Mon, Dec 12, 2011 at 00:51, Paul Menzel wrote:
 Dear Mojca and ConTeXt folks,


 I compiled gnuplot 4.5 from source (master) and got everything running.
 Mojca, thank you so much!

 Trying the example from the gnuplot page in the Wiki [1]

        \usemodule[gnuplot]

        \setupGNUPLOT[terminal=mp,option=color]

But one question. Why do you say that you compile the latest source of
gnuplot (which finally has context terminal built in, after 5 or 6
years), and yet you use the mp terminal instead of the default
context (or at least tikz)? The mp terminal has been there
forever, and hardly ever improved. It also doesn't integrate too well
(if you change the typeface, that won't be reflected in you plots).

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] gnuplot: `! Undefined control sequence.` with format specifier %

2011-12-11 Thread Paul Menzel
Am Montag, den 12.12.2011, 01:02 +0100 schrieb Mojca Miklavec:
 On Mon, Dec 12, 2011 at 00:51, Paul Menzel wrote:

  I compiled gnuplot 4.5 from source (master) and got everything running.
  Mojca, thank you so much!
 
  Trying the example from the gnuplot page in the Wiki [1]
 
 \usemodule[gnuplot]
 
 \setupGNUPLOT[terminal=mp,option=color]
 
 % general settings for the whole document
 \startGNUPLOTinclusions
 
# you may use TeX commands to format the titles and axes
set title '\bf Trigonometry'
set xlabel '$x$'
set ylabel '$y$'
set format y '\%.1f'
 
 This should have been without the backslash.

 In beginning the text was processed with TeX, not it is taken
 literally (% doesn't start the comment any more), so maybe it's a
 leftover from the very early days. I will check the wiki.

I see. Thank you. It does not complain anymore.

  Actually I hope that it is since then upgrading would fix my issue. ;-)
 
 ... however I still have some problems. For some reason ConTeXt only
 generates dvi files from metapost code which has never been the case
 before. I need to figure out what is going on.

I am also getting other errors now and even moving the ConTeXt file to a
new directory I keep getting this error from `mpost`.

fonts   : using map file: original-ams-euler
[1.1] [1.1] [1.1] [1.1] [1.1] [1.1] [1.1] [1.1] [1.1] [1.1] [1.1] [1.1]
[1.1] [1.1] [1.1] [1.1]
systems : end file gnup-gnuplot-1-mp-temp at line 130
(/srv/filme/context/tex/texmf-context/tex/context/base/cont-err.mkii
systems : no file 'cont-sys.tex', using 'cont-sys.rme' instead
) )
Output written on gnup-gnuplot-1-mp-temp.dvi (16 pages, 1360 bytes).
Transcript written on gnup-gnuplot-1-mp-temp.log.
TeXExec | runtime: 0.244803

This is MetaPost, version 1.504 (kpathsea version 6.0.0)

mpost: Not writing to .log (openout_any = p).
! I can't write on file `.log'.
Please type another transcript file name:


Thanks,

Paul


signature.asc
Description: This is a digitally signed message part
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] gnuplot: `! Undefined control sequence.` with format specifier %

2011-12-11 Thread Mojca Miklavec
On Mon, Dec 12, 2011 at 01:20, Paul Menzel wrote:
 Am Montag, den 12.12.2011, 01:02 +0100 schrieb Mojca Miklavec:

 ... however I still have some problems. For some reason ConTeXt only
 generates dvi files from metapost code which has never been the case
 before. I need to figure out what is going on.

 I am also getting other errors now and even moving the ConTeXt file to a
 new directory I keep getting this error from `mpost`.

        fonts           : using map file: original-ams-euler
        [1.1] [1.1] [1.1] [1.1] [1.1] [1.1] [1.1] [1.1] [1.1] [1.1] [1.1] [1.1]
        [1.1] [1.1] [1.1] [1.1]
        systems         : end file gnup-gnuplot-1-mp-temp at line 130
        (/srv/filme/context/tex/texmf-context/tex/context/base/cont-err.mkii
        systems         : no file 'cont-sys.tex', using 'cont-sys.rme' instead
        ) )
        Output written on gnup-gnuplot-1-mp-temp.dvi (16 pages, 1360 bytes).
        Transcript written on gnup-gnuplot-1-mp-temp.log.
        TeXExec | runtime: 0.244803

        This is MetaPost, version 1.504 (kpathsea version 6.0.0)

        mpost: Not writing to .log (openout_any = p).
        ! I can't write on file `.log'.
        Please type another transcript file name:

Wow! I have never seen this one (metapost unable to write the log file :) :) :)

It seems that there are some problems with mptopdf converter.

But in any way - can you please try to remove
\setupGNUPLOT[terminal=...] command?

I just realized that I forgot to update a whole lot of information on
that wiki page (in particular there is no single mention that the
terminal has been included into official CVS). I also assume that the
windows builds from Tatsuro should contain the terminal, but I have
never really tested them.

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] gnuplot: `! Undefined control sequence.` with format specifier %

2011-12-11 Thread Paul Menzel
Am Montag, den 12.12.2011, 01:13 +0100 schrieb Mojca Miklavec:
 On Mon, Dec 12, 2011 at 00:51, Paul Menzel wrote:

  I compiled gnuplot 4.5 from source (master) and got everything running.
  Mojca, thank you so much!
 
  Trying the example from the gnuplot page in the Wiki [1]
 
 \usemodule[gnuplot]
 
 \setupGNUPLOT[terminal=mp,option=color]
 
 But one question. Why do you say that you compile the latest source of
 gnuplot (which finally has context terminal built in, after 5 or 6
 years), and yet you use the mp terminal instead of the default
 context (or at least tikz)? The mp terminal has been there
 forever, and hardly ever improved. It also doesn't integrate too well
 (if you change the typeface, that won't be reflected in you plots).

Thank you for the follow up. I just blindly copied the example from the
Wiki and did not pay any attention. In my thesis, I of course use the
ConTeXt terminal.


Thanks,

Paul


PS: Do you have a BibTeX entry for your gnuplot module?


signature.asc
Description: This is a digitally signed message part
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___