ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Mojca Miklavec <mojca.miklavec.lists@gmail.com>
Subject: Re: present for mojca
Date: Fri, 6 Jan 2006 13:35:43 +0100	[thread overview]
Message-ID: <6faad9f00601060435y21918502i8e3405e53744a312@mail.gmail.com> (raw)
In-Reply-To: <43BD68E9.5060606@wxs.nl>

[-- Attachment #1: Type: text/plain, Size: 3931 bytes --]

Hans, great! I love the design (including the fact that one graphic
can be reused with multiple "terminals").

Just a few comments:

replace
      \immediate\write\scratchwrite{set terminal "\@@GNUPLOTmethod"}%
with
      \immediate\write\scratchwrite{set terminal \@@GNUPLOToutput}%
(No quotes and ps should be postscript.)

{\executesystemcommand{start gnuplot #1.gpd}}

Here both "guplot filename" and "start gnuplot filename" work equally
well (but even if "start" is left there, I would rename "pgnuplot"
into "gnuplot").
Something is terribly wrong with the windows machine I'm currently
working on, but on linux it worked OK (except for problems with text
in the metapost sample, but I have to figure out what went wrong
first).

When executing these lines on MikTeX:

 {\doifelse\operatingsystem{mswin}
     {\executesystemcommand{start gnuplot
\GNUPLOTfile.gpd}\message{[win]}}     {\executesystemcommand{gnuplot
\GNUPLOTfile.gpd}\message{[lin]}}}

I got [lin] a couple of times and no traces of any gnuplot work
(though gnuplot compiled the two remaining files ok when called
separately). But this has nothing to do with the module itself. Most
probably problem with permissions. write18 was enabled.

On 1/5/06, Hans Hagen wrote:
> Mojca Miklavec wrote:
>
> did \def\par{;} work out ok?

No, it didn't. Neither under linux nor under windows. So this remains
the only serious thing to fix.

The example you sent worked (almost) OK, but since it had only one
line in the \startGNUPLOTinclusions. As soon as I add
set terminal mp color
(which only overrides the already defined "set terminal mp" on the
proper place, so it's OK)

I get:

set terminal mp
^M set title trigonometry^Mset terminal mp color^M
set output "m-gnuplot-gnuplot-1-mp"
^Mplot sin(x)^M
quit

gnuplot didn't complain about ^M, but it can't have more than one line
compressed in one.

> >The problem is not in \def\par{} I guess. It doesn't have any
> >influence on the way how input lines appear in the file. Even if I
> >redefined the \par and put strange chars in there, it didn't have any
> >influence.
> >
> >
> strange, maybe i have a better tex binary

;)

It's 1.30.0 on linux (from your distribution) and 1.21a under MikTeX.

> ok, quit then
>
> >2. The default file extension is .plt (instead of gpd; the ending
> >really doesn't matter, but this one is recognized by default when you
> >"open file" from gnuplot)
> >
> hm, we don't want to overwrite files, do we?

Does the ending matter in (not)overwriting files?

I would only change
\immediate\openout\scratchwrite=\GNUPLOTfile.gpd
into
\immediate\openout\scratchwrite=\GNUPLOTfile.plt
(or even \scratchwrite=\GNUPLOTfile-\@@GNUPLOTsuffix.plt, so that the
files don't overwrite each other)

and
gnuplot \GNUPLOTfile.gpd
into
gnuplot \GNUPLOTfile.plt

but that's only cosmetics, doesn't really change the functionality.

> that's a big list ... why isn't there a context mode?

Perhaps because nobody (including me) knew that there's a module to
support gnuplot inside ConTeXt source :).

Well ... after I spent approximately 2 or 3 hours to figure out how to
compile it I started writing the code. It's true that it's tempting to
do just anything else except learning during the period of exams, but
it will nevertheless take me some time to finish, so please don't
expect anything that soon.

Besides that: PDF support has been written 5 years ago and it is still
not present in standard binaries. I have no idea how much time is
needed once the support is written so that:
- a new version appears
- it's included in distributions
- people/admins upgrade the software

> >PS: Does this module really mean that I have no more excuses for not
> >finishing my report(s) for physics in time? ;)
> >
> no, worse, you now can finish it faster
>
> see attached file (bottom of file); should be enough to get your reports
> done

So ... I have to get back to work then ;)

Thanks again,
    Mojca

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

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

      reply	other threads:[~2006-01-06 12:35 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-02 10:34 gnuplot for Mojca Peter Münster
2006-01-03  8:18 ` Mojca Miklavec
2006-01-03 17:49   ` Peter Münster
2006-01-03 20:27     ` Mojca Miklavec
2006-01-03 21:19       ` Hans Hagen
2006-01-03 21:22       ` Hans Hagen
2006-01-03 22:07       ` Hans Hagen
2006-01-03 22:41         ` Peter Münster
2006-01-04  8:55           ` Hans Hagen
2006-01-04 14:45           ` present for mojca Hans Hagen
2006-01-04 15:34             ` Tobias Burnus
2006-01-04 16:14               ` Hans Hagen
2006-01-05 15:57                 ` Mojca Miklavec
2006-01-05 18:43                   ` Hans Hagen
2006-01-06 12:35                     ` Mojca Miklavec [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6faad9f00601060435y21918502i8e3405e53744a312@mail.gmail.com \
    --to=mojca.miklavec.lists@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).