ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Problem with mkiv and MPgraphic
@ 2008-10-23  9:44 Otared Kavian
  2008-10-23 11:17 ` Peter Rolf
  0 siblings, 1 reply; 16+ messages in thread
From: Otared Kavian @ 2008-10-23  9:44 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi everyone,

Sorry for posting this message again: I am not sure it went through…

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 16+ messages in thread
* Problem with mkiv and MPgraphic
@ 2008-10-22 15:12 Otared Kavian
  0 siblings, 0 replies; 16+ messages in thread
From: Otared Kavian @ 2008-10-22 15:12 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


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

end of thread, other threads:[~2008-10-23 17:04 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-23  9:44 Problem with mkiv and MPgraphic 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
  -- strict thread matches above, loose matches on Subject: below --
2008-10-22 15:12 Otared Kavian

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