ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Ajith R <ajithramayyan@yahoo.co.in>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: metafun transformation error
Date: Fri, 4 Jun 2021 11:25:11 +0000 (UTC)	[thread overview]
Message-ID: <1178642596.2880342.1622805911314@mail.yahoo.com> (raw)
In-Reply-To: <545dd3d4-ecf3-e50c-0fab-972104144059@xs4all.nl>

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

Hi,


> In order answer that you have to make a MWE that we can run without the 
> need to edit a file.

> Hans

Sorry for having assumed that sharing the code was sufficient as MWE.

Here is the trimmed version that still throws the error 


\startMPpage
StartPage ;


numeric row, col, unit; 
pair  middle;
row := 1; col := 1;
unit := 2 * cm ;
picture p, q ; p := nullpicture; q := nullpicture;
string l[];
l[0] := "2" ; l[1] := " 4"; 


for i= 0 upto row :
middle := (i * unit, 5cm);
p := thelabel( l[i], middle); 
draw p;
%q := p reflectedabout (0.5[urcorner p, ulcorner p], 0.5[lrcorner p, llcorner p]);
%draw q
endfor
StopPage ;
\stopMPpage
\stoptext

The file is also attached.
 As I told earlier, an  error is thrown if I uncomment the line that assigns q and then draws it.

Thanks for your help,
ajith

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: errortest.tex --]
[-- Type: text/x-tex, Size: 414 bytes --]


\startMPpage
StartPage ;

numeric row, col, unit; 
pair  middle;
row := 1; col := 1;
unit := 2 * cm ;
picture p, q ; p := nullpicture; q := nullpicture;
string l[];
l[0] := "2" ; l[1] := " 4"; 

for i= 0 upto row :
middle := (i * unit, 5cm);
p := thelabel( l[i], middle); 
draw p;
%q := p reflectedabout (0.5[urcorner p, ulcorner p], 0.5[lrcorner p, llcorner p]);
%draw q
endfor
StopPage ;
\stopMPpage
\stoptext


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

___________________________________________________________________________________
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:[~2021-06-04 11:25 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <561884252.127404.1622754117330.ref@mail.yahoo.com>
     [not found] ` <561884252.127404.1622754117330@mail.yahoo.com>
2021-06-04  8:15   ` Ajith R
2021-06-04  9:22     ` Hans Hagen
2021-06-04 11:25       ` Ajith R [this message]
2021-06-04 12:27         ` Hans Hagen
2021-06-04 15:08           ` Ajith R
2021-06-04 15:28             ` Hans Hagen

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=1178642596.2880342.1622805911314@mail.yahoo.com \
    --to=ajithramayyan@yahoo.co.in \
    --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).