ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* gnuplot: `! Undefined control sequence.` with format specifier %
@ 2011-12-11 23:51 Paul Menzel
  2011-12-12  0:02 ` Mojca Miklavec
  2011-12-12  0:13 ` gnuplot: `! Undefined control sequence.` with format specifier % Mojca Miklavec
  0 siblings, 2 replies; 8+ messages in thread
From: Paul Menzel @ 2011-12-11 23:51 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 1867 bytes --]

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

[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: gnuplot: `! Undefined control sequence.` with format specifier %
  2011-12-11 23:51 gnuplot: `! Undefined control sequence.` with format specifier % Paul Menzel
@ 2011-12-12  0:02 ` Mojca Miklavec
  2011-12-12  0:20   ` Paul Menzel
  2011-12-12  0:13 ` gnuplot: `! Undefined control sequence.` with format specifier % Mojca Miklavec
  1 sibling, 1 reply; 8+ messages in thread
From: Mojca Miklavec @ 2011-12-12  0:02 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: gnuplot: `! Undefined control sequence.` with format specifier %
  2011-12-11 23:51 gnuplot: `! Undefined control sequence.` with format specifier % Paul Menzel
  2011-12-12  0:02 ` Mojca Miklavec
@ 2011-12-12  0:13 ` Mojca Miklavec
  2011-12-12  0:30   ` Paul Menzel
  1 sibling, 1 reply; 8+ messages in thread
From: Mojca Miklavec @ 2011-12-12  0:13 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: gnuplot: `! Undefined control sequence.` with format specifier %
  2011-12-12  0:02 ` Mojca Miklavec
@ 2011-12-12  0:20   ` Paul Menzel
  2011-12-12  0:27     ` Mojca Miklavec
  2011-12-12  0:28     ` [solved] gnuplot: mpost: Not writing to .log (openout_any = p). (was: `! Undefined control sequence.` with format specifier %) Paul Menzel
  0 siblings, 2 replies; 8+ messages in thread
From: Paul Menzel @ 2011-12-12  0:20 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 2261 bytes --]

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

[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: gnuplot: `! Undefined control sequence.` with format specifier %
  2011-12-12  0:20   ` Paul Menzel
@ 2011-12-12  0:27     ` Mojca Miklavec
  2011-12-12  0:28     ` [solved] gnuplot: mpost: Not writing to .log (openout_any = p). (was: `! Undefined control sequence.` with format specifier %) Paul Menzel
  1 sibling, 0 replies; 8+ messages in thread
From: Mojca Miklavec @ 2011-12-12  0:27 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [solved] gnuplot: mpost: Not writing to .log (openout_any = p). (was: `! Undefined control sequence.` with format specifier %)
  2011-12-12  0:20   ` Paul Menzel
  2011-12-12  0:27     ` Mojca Miklavec
@ 2011-12-12  0:28     ` Paul Menzel
  2011-12-12  8:55       ` [solved] gnuplot: mpost: Not writing to .log (openout_any = p) Hans Hagen
  1 sibling, 1 reply; 8+ messages in thread
From: Paul Menzel @ 2011-12-12  0:28 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 1173 bytes --]

Am Montag, den 12.12.2011, 01:20 +0100 schrieb Paul Menzel:

[…]

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

Once again I was hit by missing `\{start,stop}text` lines.


Thanks and sorry for the noise,

Paul

[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: gnuplot: `! Undefined control sequence.` with format specifier %
  2011-12-12  0:13 ` gnuplot: `! Undefined control sequence.` with format specifier % Mojca Miklavec
@ 2011-12-12  0:30   ` Paul Menzel
  0 siblings, 0 replies; 8+ messages in thread
From: Paul Menzel @ 2011-12-12  0:30 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 1061 bytes --]

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?

[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [solved] gnuplot: mpost: Not writing to .log (openout_any = p).
  2011-12-12  0:28     ` [solved] gnuplot: mpost: Not writing to .log (openout_any = p). (was: `! Undefined control sequence.` with format specifier %) Paul Menzel
@ 2011-12-12  8:55       ` Hans Hagen
  0 siblings, 0 replies; 8+ messages in thread
From: Hans Hagen @ 2011-12-12  8:55 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Paul Menzel

On 12-12-2011 01:28, Paul Menzel wrote:
> Am Montag, den 12.12.2011, 01:20 +0100 schrieb Paul Menzel:
>
> […]
>
>> 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:
>
> Once again I was hit by missing `\{start,stop}text` lines.

even then .. mp cannot write the log because you configuration is 
paranoid (which is what the p means in openout_any) so you need to fix 
your cnf file

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-12-12  8:55 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-11 23:51 gnuplot: `! Undefined control sequence.` with format specifier % Paul Menzel
2011-12-12  0:02 ` Mojca Miklavec
2011-12-12  0:20   ` Paul Menzel
2011-12-12  0:27     ` Mojca Miklavec
2011-12-12  0:28     ` [solved] gnuplot: mpost: Not writing to .log (openout_any = p). (was: `! Undefined control sequence.` with format specifier %) Paul Menzel
2011-12-12  8:55       ` [solved] gnuplot: mpost: Not writing to .log (openout_any = p) Hans Hagen
2011-12-12  0:13 ` gnuplot: `! Undefined control sequence.` with format specifier % Mojca Miklavec
2011-12-12  0:30   ` Paul Menzel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).