ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* MetaPost label direction prefix
@ 2013-08-23  9:42 Marco Patzer
  2013-08-23 12:48 ` Hans Hagen
  0 siblings, 1 reply; 6+ messages in thread
From: Marco Patzer @ 2013-08-23  9:42 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 880 bytes --]

Hi,

what is the reason the label direction prefix variables (rt, bot,
llft, etc.) are prefixed with mpfun_ in MkIV (mp-mlib.mpiv)? When
new directional prefixes are being defined it fails when mplib is
used unless the mpfun_ prefix is added. And likewise, code using the
mpfun_ prefix fails on traditional MetaPost.

Is this prefix required? It breaks old code and required a branch in
every new project. And I don't really see a reason for this
incompatibility. Here is an example defining a new direction “foo”:

\starttext
  \startMPcode
    label("first", origin);

    %% MkIV
    %% pair mfun_laboff.foo ; mfun_laboff.foo := (.5,-1) ;
    %% mfun_labxf.foo := mfun_labyf.foo := 1 ;

    %% MkII
    pair laboff.foo ; laboff.foo := (.5,-1) ;
    labxf.foo := labyf.foo := 1 ;

    label.foo("second", origin);
  \stopMPcode
\stoptext

Marco

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 490 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-08-25 11:49 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-23  9:42 MetaPost label direction prefix Marco Patzer
2013-08-23 12:48 ` Hans Hagen
2013-08-23 13:14   ` Marco Patzer
2013-08-24  0:28     ` Hans Hagen
2013-08-24 12:31       ` Marco Patzer
2013-08-25 11:49         ` Hans Hagen

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).