ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "George N. White III" <whiteg@dfo-mpo.gc.ca>
Cc: conTeXt <ntg-context@ntg.nl>
Subject: Re: Tables and graphs
Date: Sat, 23 Dec 2000 10:02:36 -0400	[thread overview]
Message-ID: <Pine.SGI.4.31.0012230948570.141578-100000@wendigo.bio.dfo.ca> (raw)
In-Reply-To: <20001222182608.E1291@wouter.verheijen.nl>

On Fri, 22 Dec 2000, Wouter Verheijen wrote:

> I plan to do a essay about physics with Context. The essay will
> contain a couple of tables. Most of them will be accompanied by a
> graph, displaying the same data, compared with a theoretical curve.
>
> - Which program is best suited for this? My first thought is gnuplot.
>   But that will generate (e.g.) .ps-output, thus I cannot edit the
>   graph later. Is there a solution?
>
> - Is it possible to share the measured data between the table and the
>   graph? Maybe Context can read the table as plaintext and insert the
>   \VL, \FR, \MR etc. automatically?
>
> Thanks for your advice!

I've done similar projects (although using LaTeX with the publisher's
style file).  Assuming you don't need scatterplots with large numbers of
points, you can use metapost for the plots. You can keep the data in a
convenient format and use a pair of simple programs (awk, perl, etc.) to
format the data for both table and plots.  All this can be managed with
simple makefiles so everything gets updated if you change the data.

If you aren't on unix, you may not have a make utility.  There are
both "free" and commercial versions for Win32, and there have been
several attempts to develop other tools using languages such as perl
and python that are available on most current platforms.  I suppose
there may be ways in texexec to specify some programs that should be
run before the context processing.  If the programs are simple, it
won't hurt to run them even when the output doesn't need updating,
or the programs could contain checks to omit the processing if the
output file exists and is newer than the input file.

-- 
George N. White III <WhiteG@dfo-mpo.gc.ca>  tel: 902.426.8509
  Bedford Institute of Oceanography, Nova Scotia, Canada (TZ=AST4ADT)


  parent reply	other threads:[~2000-12-23 14:02 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-12-22 17:26 Wouter Verheijen
2000-12-23  6:52 ` Johannes H?sing
2000-12-27  8:33   ` Hans Hagen
2000-12-23 14:02 ` George N. White III [this message]
     [not found] ` <Pine.SGI.4.31.0012230948570.141578-100000@wendigo.bio.dfo. ca>
2000-12-27  8:33   ` Hans Hagen
2000-12-27 20:20     ` George N. White III

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=Pine.SGI.4.31.0012230948570.141578-100000@wendigo.bio.dfo.ca \
    --to=whiteg@dfo-mpo.gc.ca \
    --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).