ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Mojca Miklavec" <mojca.miklavec.lists@gmail.com>
To: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Subject: Re: need help with creating a grid with context
Date: Wed, 10 Oct 2007 21:33:25 +0200	[thread overview]
Message-ID: <6faad9f00710101233p4042dd52n4a00f60f4751237@mail.gmail.com> (raw)
In-Reply-To: <115224fb0710100602k1f41f95cpa970ef8b5cc9bc58@mail.gmail.com>

On 10/10/07, Wolfgang Schuster wrote:
> 2007/10/10, Mojca Miklavec:
> > On 10/10/07, MASON Peter J wrote:
> >
> > > Hope to create a regular (1cm spacing) grid on page, of bullets. Ultimately
> > > over the whole page.
> >
> > Why not using MetaPost?
> >
> > \starttext
> > \startMPcode % or \startMPpage
> > for i=0 upto 10:
> >   for j=0 upto 20:
> >      fill fullcircle scaled 1mm shifted ((i,j) scaled 1cm);
> >   endfor;
> > endfor;
> > \stopMPcode
> > \stoptext
> >
> > Mojca
>
> Because TeX is faster in this situation and it takes more time to write
> the Metapost code in external file, process this file, convert it into a PDF
> file and include it into the document etc.
>
> I know what I say because this was one of the reasons why the sgf module
> place the field within TeX and not with Metapost, a matter of speed and you
> can reuse the objects.

OK, that's a good point, and I fully agree with it. It's only that I
would probably use something like that for really simple, short,
one-page documents, where I would be concerned about the speed I need
to come to a solution, not with the speed of document processing -
half a second more or less.

With the route tex -> .plt file -> gnuplot -> tex (metafun) ->
metapost (-> mpto or \sometxt) -> pdf, which I frequently use, the
situation is much much worse, but it's still acceptable. ConTeXt
became at least 10 times faster during the last three or four years.
(Or at least that's my impression.)

> You should also replace the fullcircle with drawdot in your example, drawdot
> renders better on screen and looks better.

Thanks. I always use fill fullcircle for some reason. Perhaps I should
changle my habit :)

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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


  reply	other threads:[~2007-10-10 19:33 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-10  1:06 MASON Peter J
2007-10-10 10:08 ` Mojca Miklavec
2007-10-10 13:02   ` Wolfgang Schuster
2007-10-10 19:33     ` Mojca Miklavec [this message]
2007-10-11  7:43       ` Wolfgang Schuster
  -- strict thread matches above, loose matches on Subject: below --
2007-10-10 23:33 MASON Peter J
2007-10-09 23:42 MASON Peter J
2007-10-10  8:54 ` Peter Rolf
2007-10-11  7:27   ` Wolfgang Schuster

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=6faad9f00710101233p4042dd52n4a00f60f4751237@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).