ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Damien Thiriet <damien@thiriet.web4me.fr>
To: ntg-context@ntg.nl
Subject: Re: troubles with \MPinclusions (Taco Hoekwater)
Date: Thu, 21 Feb 2019 12:20:08 +0100	[thread overview]
Message-ID: <20190221112008.GA51198@valencay.home> (raw)
In-Reply-To: <mailman.649.1550746197.1205.ntg-context@ntg.nl>

Thanks for your answers, I could significantly reduce my long 
timeline code.

 
> 1. Variable names x and y are special and cleared before
>    every graphic. This is related to the fact that “z" is 
>    defined as a shortcut for "(x,y)”. Both of these are
>    traditional. 
> 
>    Every metapost graphic does at least this at its start:
> 
>    save x,y;
>    currentpicture := nullpicture;
>    currentpen:=defaultpen;
>   
>    so pair xx[]; would have worked just fine.
> 
>    In general, I would advice to stay away from single-letter
>    variable names inside MPinclusions, and use CamelCase
>    to avoid clashes with metafun internals.
> 

So, got one more z-related error in Metapost. I bet this is
absolutely the n.1 on help-lists. Btw, if I were a scientist, 
I'd realized that defining x as a pair is quite heretic…
And that sounds much familiar to an historian.

Damien Thiriet
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

           reply	other threads:[~2019-02-21 11:20 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <mailman.649.1550746197.1205.ntg-context@ntg.nl>]

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=20190221112008.GA51198@valencay.home \
    --to=damien@thiriet.web4me.fr \
    --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).