ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Henning Hraban Ramm via ntg-context <ntg-context@ntg.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: Henning Hraban Ramm <texml@fiee.net>
Subject: Re: update old MP code
Date: Thu, 1 Sep 2022 18:48:25 +0200	[thread overview]
Message-ID: <2195d86d-cf75-440d-8871-a87bd00f9113@fiee.net> (raw)
In-Reply-To: <244DDAFC-C2A2-4E5E-B06B-AFDEE7E0B7E0@bittext.nl>

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

Am 01.09.22 um 18:45 schrieb Taco Hoekwater:
> 
> 
>> On 1 Sep 2022, at 18:28, Henning Hraban Ramm via ntg-context <ntg-context@ntg.nl> wrote:
>>
>> Am 01.09.22 um 15:40 schrieb Taco Hoekwater:
>>> Adding grouping makes sense:
>>>>
>>>> def Moire(expr size)(text densities)=
>>> begingroup
>>> endgroup
>>> As that at least makes it an expression instead of a statement list.
>>> But also depthless() is never defined?
>>
>> Oops, I forgot to copy that part (confusing source...)
>>
>> It still doesn’t compile:
> 
> Missing definition of “width()”, from this line:
> 
>>
>>           xs := width(q)-width(p);
> 
> Adding that should do the trick.

YES, thank you!

I never know which function is part of MetaPost/MetaFun, my editor’s 
syntax highlighting is incomplete...

Hraban

[-- Attachment #2: moireetest.tex --]
[-- Type: application/x-tex, Size: 1715 bytes --]

[-- Attachment #3: Type: text/plain, Size: 496 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

      reply	other threads:[~2022-09-01 16:48 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-01  7:29 Henning Hraban Ramm via ntg-context
2022-09-01 13:40 ` Taco Hoekwater via ntg-context
2022-09-01 16:28   ` Henning Hraban Ramm via ntg-context
2022-09-01 16:45     ` Taco Hoekwater via ntg-context
2022-09-01 16:48       ` Henning Hraban Ramm via ntg-context [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=2195d86d-cf75-440d-8871-a87bd00f9113@fiee.net \
    --to=ntg-context@ntg.nl \
    --cc=texml@fiee.net \
    /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).