ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Otared Kavian <otared@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Problem with mkiv and MPgraphic
Date: Wed, 22 Oct 2008 17:12:52 +0200	[thread overview]
Message-ID: <9FF7C825-7DFD-4256-8B22-F7D10153CC3E@gmail.com> (raw)

Hi,

The following doesn't show the "swelled rule" defined below in mkiv,  
while on mkii it is fine?
So my question is: is there a new way to define MPgraphic in mkiv?

Best regards: OK

%% defining swelled ruel, or English rule...
\setupMPvariables[SwelledRule][height=2pt,breadth=.667\localhsize]
\startuniqueMPgraphic{SwelledRule}{height,breadth}
x1 = 0; x2 = x6 = .333x4; x3 = x5 = .667x4; x4 = \MPvar{breadth};
y1 = y4 = \MPvar{height}/2; y2 = y3 = \MPvar{height}; y5 = y6 = 0;
fill z1--z2--z3--z4--z5--z6--cycle;
\stopuniqueMPgraphic
\def\SwelledRule{\blank%
\setlocalhsize\midaligned{\reuseMPgraphic{SwelledRule}}\blank}
%% end swelled rule

\starttext

This file has been typeset
on \currentdate{}
at \currenttime,
with
\doifmodeelse{mkiv}
	{mkiv,
	LuaTeX revision \luatexrevision,
	(LuaTeX date stamp \luatexdatestamp),}
	{mkii,
	using the command:
	\type{texexec basic-test.tex}},
ConTeXt version \contextversion.
% LuaTeX version \luatexversion,

Below should be a swelled rule: it appears with mkii, but not in mkiv 
\dots

\SwelledRule

\stoptext

___________________________________________________________________________________
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:[~2008-10-22 15:12 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-22 15:12 Otared Kavian [this message]
2008-10-23  9:44 Otared Kavian
2008-10-23 11:17 ` Peter Rolf
2008-10-23 12:09   ` luigi scarso
2008-10-23 12:25     ` Peter Rolf
2008-10-23 12:30       ` luigi scarso
2008-10-23 12:44         ` Peter Rolf
2008-10-23 13:35           ` luigi scarso
2008-10-23 14:02             ` Peter Rolf
2008-10-23 14:13               ` Taco Hoekwater
2008-10-23 14:24                 ` luigi scarso
2008-10-23 17:04                   ` luigi scarso
2008-10-23 14:53                 ` Otared Kavian
2008-10-23 14:16               ` luigi scarso
2008-10-23 14:01           ` Otared Kavian
2008-10-23 15:28             ` Arthur Reutenauer

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=9FF7C825-7DFD-4256-8B22-F7D10153CC3E@gmail.com \
    --to=otared@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).