On 16-7-2010 5:00, Bowen Alan C. wrote:
I have been using
\definetextbackground[underline]
[location=text,alternative=1,background=,frame=off]
for underlining in my documents and
\startuseMPgraphic{mpos:par:columnset}
\iftracepositions show_multi_pars \else draw_multi_pars \fi
I have been using
\definetextbackground[underline]
[location=text,alternative=1,background=,frame=off]
for underlining in my documents and
\startuseMPgraphic{mpos:par:columnset}
\iftracepositions show_multi_pars \else draw_multi_pars \fi ;
path p ; p := boundingbox currentpicture
ure out it does not work. I tried the example from the metaobj
>>> manual in a tex document (it works in a metapost file):
>>>
>>> \startuseMPgraphic{objecttest}
>>> vardef newsegm...@#=
>>> assignObj(@#,"Segment");
>>> ObjPoint a,b;
):
\startuseMPgraphic{objecttest}
vardef newsegm...@#=
assignObj(@#,"Segment");
ObjPoint a,b;
ObjCode "@#...@#a=(1cm,2cm)";
enddef;
\stopuseMPgraphic
When processing this with context (MkIV) I get
! Illegal parameter number in definition of \...@mpg@objecttest.
=
vardef newsegm...@##=
as
a received numeral.
But it is not working. If I change h to "letter" in label command, it is
working.
So, I'd like to know how to put received numeral(the height of the box) as a
label.
Or, how to change the value of a variable to a string.
Here is a working sample code.
\startuseMPgra
On 13-7-2010 6:01, Stefan Müller wrote:
Hi,
I just tried to build my own object in metaobj but for some reason I
cannot figure out it does not work. I tried the example from the metaobj
manual in a tex document (it works in a metapost file):
\startuseMPgraphic{objecttest}
vardef newsegm
Hi,
I just tried to build my own object in metaobj but for some reason I
cannot figure out it does not work. I tried the example from the metaobj
manual in a tex document (it works in a metapost file):
\startuseMPgraphic{objecttest}
vardef newsegm...@#=
assignObj(@#,"Se
ors[state=start]
%Plussy — the FSFE Fellowship logo
\startuseMPgraphic{plussy}
unit := 0.2cm;
dx := 1.2;
color maincolor; maincolor = (0,0.9,0); % fixme
path p;
p := unitsquare scaled unit;
fill p withcolor maincolor;
fill p shifted ( dx*unit,0) withcolor mainco
,frame=off,offset=1ex]
> \bTD[background=linkeklammer] text \eTD
> \bTD text\\text\\text \eTD
> \bTD[background=rechteklammer] text \eTD
> \eTR
> \eTABLE
> \stoptext
> and this:
> \startuseMPgraphic{accolade}
> z1 = (-233,0) ;
> z2 = (-220,22) ;
> z
\bTR[align={middle,middle},frame=off,offset=1ex]
\bTD[background=linkeklammer] text \eTD
\bTD text\\text\\text \eTD
\bTD[background=rechteklammer] text \eTD
\eTR
\eTABLE
\stoptext
and this:
\startuseMPgraphic{accolade}
z1 = (-233,0) ;
z2 = (-220,22) ;
z3 = (-155,211) ;
z4 = (-20
code from
mailing list itself.
\chapter{Diameter Finite State Machine}
The state machine of the diameter base protocol implementation will observer
following state machine.
\startMPinclusions
input metauml;
\stopMPinclusions
\startuseMPgraphic{xx}
save A;
save B;
Class.A("Point")
mplementation will observer
> following state machine.
> \startMPinclusions
> input metauml;
> \stopMPinclusions
> \startuseMPgraphic{xx}
>
> save A;
> save B;
> Class.A("Point")
> ("+x: int",
> "+y: int") ();
owing is from a file for which I took the code from
mailing list itself.
\chapter{Diameter Finite State Machine}
The state machine of the diameter base protocol implementation will observer
following state machine.
\startMPinclusions
input metauml;
\stopMPinclusions
\startuseMPgraphic{xx}
the differences.
\setupcolors[state=start]
\setupinteraction[state=start,color=darkgreen,style=normal]
\setupnumbering[way=bysection]
\startuseMPgraphic{Circle}
draw
fullcircle scaled 2cm;
\stopuseMPgraphic
\starttext
\section{First section}
See \in{Figure}[fig:Circle].
\placefigure[here
2010/5/13 Vianney le Clément :
>> \getparameters[Shape][square={unitsquare },
>> circle={unitcircle }]
>> \starttext
>>
>> \startuseMPgraphic{test}
>> fill \Shapesquare scaled 1cm;
>> \stopuseMPgraphic
>> \useMPgraphic{tes
> \getparameters[Shape][square={unitsquare },
> circle={unitcircle }]
> \starttext
>
> \startuseMPgraphic{test}
> fill \Shapesquare scaled 1cm;
> \stopuseMPgraphic
> \useMPgraphic{test}
> \stoptext
This one
On 13-5-2010 11:13, luigi scarso wrote:
\setevalue{square}{unitsquare}
\setevalue{circle}{unitcircle}
\starttext
\startuseMPgraphic{test}
fill \getvalue{square} scaled 1cm;
\stopuseMPgraphic
\useMPgraphic{test}
\stoptext
or
> \setevalue{mynamespace:square}{unitsquare}
> \set
ive : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___
>
Also
\getparameters[Shape][square={unitsquare },
circle={unitcircle }]
\starttext
\
Vianney le Clément wrote:
Hello,
I'm having some trouble with a macro using \processaction inside a
metapost graphic. Here is a minimal example.
\def\Shape#1%
{\processaction[#1]
[square=>unitsquare,
circle=>unitcircle]}
\starttext
\startuseMPgraphic{test}
fill \S
Hello,
I'm having some trouble with a macro using \processaction inside a
metapost graphic. Here is a minimal example.
\def\Shape#1%
{\processaction[#1]
[square=>unitsquare,
circle=>unitcircle]}
\starttext
\startuseMPgraphic{test}
fill \Shape{square} scaled 1cm;
\stopu
___
> 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://
promising, but I get the
following compile error:
!mplib : mp terminal: >> "\colored [r="
>> 0.74464
! Not implemented: (string)&(known numeric).
I used the following code:
\starttext
\startuseMPgraphic {1}
numeric r, g, b ;
r := uniformdevia
h variation in color :-(
\def\r{\ctxlua{commands.getrandomcounta(0,1)}}
% Defining the colour at this point makes it kind of static again
\definecolor[my][r=\r,g=\r,b=\r]
\starttext
\startuseMPgraphic {1}
% The colour is all the same, but different in each run
for i=0 upto 5:
label(textext("\color[my]{Test
On Tuesday 11 May 2010 17:48:09 Marco wrote:
> Hi,
>
> how to get random colours for text inside textext? Take a look at the
> following example (MKIV).
>
> \definecolor [static] [r=.9, g=.7, b=.8]
> \starttext
> \startuseMPgraphic {1}
>
> def col=
> (u
Hi,
how to get random colours for text inside textext? Take a look at the
following example (MKIV).
\definecolor [static] [r=.9, g=.7, b=.8]
\starttext
\startuseMPgraphic {1}
def col=
(uniformdeviate(1),uniformdeviate(1),uniformdeviate(1))
enddef;
% These dots have a random color
for i=0
I found that the following example
\starttext
\startuseMPgraphic{test}
draw btex some text with space etex;
\stopuseMPgraphic
\useMPgraphic{test}
\stoptext
can generate the text between "btex" and "etex" correct no matter I use
MKII or MKIV.
But, when I running the followi
running MetaPost, and using \externalfigure. The following
> MetaPost sample code generate 21 graphics images (numbered .0 to
> .20), but I have no idea how to have ConTeXt generate these graphics
> without a manual external MetaPost run and have them included in a way
> that is consi
ncluded in a way
that is consistent with \startuseMPgraphic or similar.
Thanks in advance,
Troy Henderson
path p,q;
p:=fullcircle scaled 72;
L:=length p;
N:=20;
for n=0 upto N:
beginfig(n);
q:=subpath (0,n/N*L) of p;
draw q withcolor red;
Hurray!
I've got first draft version of guitar chord building macro. (With the
help of this excellent manual http://www.tug.org/docs/metapost/mpman.pdf )
% -- working version ---
\startuseMPgraphic{chordgrid}{e,B,G,D,A,E}
def fretmark(expr a,b) =
% a = string number
% b =
Hello,
Thanks to Taco, I have some progress in developing "guitar chord" command.
My current trouble is how to develop the "mark" MP macro and where to
put it? Inside startuseMPgraphic?
\startuseMPgraphic{chordgrid}{e,B,G,D,A,E}
drawoptions(withpen pencircle scaled 0
overlay circles on it using TeX? Please, an example.
First, create a metapost macro to draw a dot on a bar using two
arguments. Let's assume this is "mark(a,b)". I won't write that
metapost macro for you, you have to do that yourself.
\startuseMPgraphic{chordgrid}{e,B,G,D,A,E}
exec I receive what I
> expect.
>
> Is it a feature of Mac distribution or there is a mismatch in some
> file/directory permissions? (mptopfd, ...)
> Are there another installation steps needed after fresh MacTeX installation?
>
>
> the test file is:
>
> \startu
? (mptopfd, ...)
Are there another installation steps needed after fresh MacTeX installation?
the test file is:
\startuseMPgraphic{def}
...
\stopuseMPgraphic
\startuseMPgraphic{obr30}
\includeMPgraphic{def}
...
\stopuseMPgraphic
\starttext
test
\placefigure[here][fig1]{yyy
On 31 Mar 2010, at 03:00, luigi scarso wrote:
On Wed, Mar 31, 2010 at 2:33 AM, Marco wrote:
Hi,
the following example just prints »Hello World!«, without the square.
What's wrong?
\startuseMPgraphic{test}
fill fullsquare scaled 5cm;
\stopuseMPgraphic
\starttext
Hello World!
\useMPgr
On Wed, Mar 31, 2010 at 2:33 AM, Marco wrote:
> Hi,
>
> the following example just prints »Hello World!«, without the square.
> What's wrong?
>
> \startuseMPgraphic{test}
> fill fullsquare scaled 5cm;
> \stopuseMPgraphic
>
> \starttext
> Hello World!
> \u
Hi,
the following example just prints »Hello World!«, without the square.
What's wrong?
\startuseMPgraphic{test}
fill fullsquare scaled 5cm;
\stopuseMPgraphic
\starttext
Hello World!
\useMPgraphic{test}
\stoptext
ConTeXt ver: 2010.03.20 22:59 MKIV
this is luatex, version beta-0
isolated it in
the process. There were 3 MP graphics each one used once on each page.
After change them from
\startuseMPgraphic ... \stopuseMPgraphic
and \useMPgraphic
to
\startreusableMPgraphic ... \stopreusableMPgraphic
and \useMPgraphic
error messages disappe
Am 04.03.2010 um 15:31 schrieb Wolfgang Schuster:
> Am 04.03.10 15:17, schrieb Andreas Harder:
>> Hi all,
>>
>> if I compile the following example with the actual beta, the circle is set
>> in foreground … even if the background is not set.
>>
>> \start
Am 04.03.10 15:17, schrieb Andreas Harder:
Hi all,
if I compile the following example with the actual beta, the circle is set in
foreground … even if the background is not set.
\startuseMPgraphic{test}
fill fullcircle scaled 5cm withcolor red;
\stopuseMPgraphic
\defineoverlay[test
Hi all,
if I compile the following example with the actual beta, the circle is set in
foreground … even if the background is not set.
\startuseMPgraphic{test}
fill fullcircle scaled 5cm withcolor red;
\stopuseMPgraphic
\defineoverlay[test]{\useMPgraphic{test}}
% \setupbackgrounds[page
2010 17:34, schrieb Troy Henderson:
>> The following example produces expected output with MKII (texexec) but
>> fails the compilation process with MKIV (context).
>>
>> \startuseMPgraphic{foo}
>>input graph;
>>path p;
>>gdata("data.d",
this is only an
incompatibility and not a bug.
Best wishes, Peter
Am 02.03.2010 17:34, schrieb Troy Henderson:
> The following example produces expected output with MKII (texexec) but
> fails the compilation process with MKIV (context).
>
> \startuseMPgraphic{foo}
>input graph;
&
The following example produces expected output with MKII (texexec) but
fails the compilation process with MKIV (context).
\startuseMPgraphic{foo}
input graph;
path p;
gdata("data.d", $, augment.p($1,$2););
draw begingraph(4in,2.5in);
gdraw p;
endgraph;
\stopus
efineframedtext[FunnyText][frame=off,background=FunnyFrame]
\def\StartFrame{\startFunnyText}
\def\StopFrame {\stopFunnyText }
\def\FrameTitle#1%
{\setMPtext{FunnyFrame}{\hbox spread 1em{\hss\strut#1\hss}}}
\setMPtext{FunnyFrame}{} % initialize the text variable
\startuseMPgraphic{FunnyFrame}
pict
}]
\defineframedtext[FunnyText][frame=off,background=FunnyFrame]
\def\StartFrame{\startFunnyText}
\def\StopFrame {\stopFunnyText }
\def\FrameTitle#1%
{\setMPtext{FunnyFrame}{\hbox spread 1em{\hss\strut#1\hss}}}
\setMPtext{FunnyFrame}{} % initialize the text variable
\startuseMPgraphic{FunnyFrame}
pic
On 18-1-2010 16:47, Andreas Harder wrote:
\startuseMPgraphic{test}
current := \somestructureheadnumber[chapter][current] ;
last:= \somestructureheadnumber[chapter][last];
% current := 2 ;
% last:= 6 ;
skip:= TextHeight * (current-1)/last ;
StartPage
t
One more question appeared: How to access them in a Metapost environment? I
tried some methods but none of them seems to work.
% \setupMPvariables
% [test]
% [current={\somestructureheadnumber[chapter][current]},
%last={\somestructureheadnumber[chapter][last]}]
\startuseMPgraphi
On 11-1-2010 3:07, Aditya Mahajan wrote:
\startmode[error]
\defineoverlay[MP:background]
[\useMPgraphic{MP:backgound}]
\startuseMPgraphic{MP:backgound}
draw OverlayBox randomized 9pt withcolor blue;
\stopuseMPgraphic
\stopmode
\defineframed[boxframed][frame=on,background
]
[\useMPgraphic{MP:backgound}]
\startuseMPgraphic{MP:backgound}
draw OverlayBox randomized 9pt withcolor blue;
\stopuseMPgraphic
\stopmode
\defineframed[boxframed][frame=on,background=MP:background]
% A frame defined with \defineframe does not work
% inside Metapost, so I prevent
ed solution won't be possible without Hans but you can set
> the values in TeX (\framed, \setupTABLE) and use them in MetaPost.
>
> The following example show you what can be done.
>
> \unprotect
>
> \startuseMPgraphic{tableborder}
>
> %linecap := b
an be done.
\unprotect
\startuseMPgraphic{tableborder}
%linecap := butt ;
numeric FrameOffset, LeftRuleThickness, RightRuleThickness, TopRuleThickness,
BottomRuleThickness ;
FrameOffset := \frameddimension{frameoffset} ;
LeftRuleThickness := \frameddimension{leftrulethickness}
Hi Hans,
in MkII the following is possible without problems:
\setupcolors[state=start]
\startuseMPgraphic{frameborder}
drawoptions(withcolor \MPcolor{\framedparameter{framecolor}}) ;
draw topboundaryOverlayBox withpen pencircle scaled
\the\dimexpr\framedparameter{toprulethickness}\relax
te#1{\ctxlua{context("\%.1f", #1)}}
>
> \startMPdefinitions
> def truncatedtext(expr s) =
> textext("\truncate{" & s & "}")
> enddef ;
> \stopMPdefinitions
>
> \starttext
> \startuseMPgraphic{Figure}
> u := 1cm;
> pickup
can use lua to truncate a number.
\unexpanded\def\truncate#1{\ctxlua{context("\%.1f", #1)}}
\startMPdefinitions
def truncatedtext(expr s) =
textext("\truncate{" & s & "}")
enddef ;
\stopMPdefinitions
\starttext
\startuseMPgraphic{Figure}
u
Sorry for the question. I figured it out. I have square brackets
instead of braces in the \startuseMPgraphic line.
On Tue, Dec 1, 2009 at 3:52 PM, Curiouslearn wrote:
> Can someone please tell me why the code below does not work?
>
> Thanks a ton.
>
> \starttext
>
>
Can someone please tell me why the code below does not work?
Thanks a ton.
\starttext
\startuseMPgraphic[CS]
u:=1cm;
pickup pencircle scaled 2pt;
%Paths
path demandCS;
demandCS := (0,5u) -- (10u,0
\startuseMPgraphic{Figure}
u := 1cm;
pickup pencircle scaled 2pt; % default pen thickness
%TheFunction
vardef f(expr x) =
(10/x)-x*((0.5)**x)
enddef;
%Labels
label.lft(textext(decimal f(5)),(0,f
ance=0in,rightedgedistance=0in,topspace=0.5in,width=6.5in,height=10in]
>
> \setupcolors[state=start]
>
>
> \starttext
>
> \startuseMPgraphic{buildS22}
> numeric u;
> u := 1cm;
> w:= 2pt;
> path xaxis; path yaxis;
> xaxis :
]
\starttext
\startuseMPgraphic{buildS22}
numeric u;
u := 1cm;
w:= 2pt;
path xaxis; path yaxis;
xaxis := (0,0)--(12,0) scaled u;
yaxis := (0,0)--(0,12) scaled u;
path stLine;
path Curve;
stLine :=
function (1
>> \setuppapersize[letter][letter]
>> \setuplayout[leftedge=0in,leftmargin=1in,leftmargindistance=0in,rightmargin=1in,rightmargindistance=0in,rightedge=0in,leftedgedistance=0in,rightedgedistance=0in,topspace=0.5in,width=6.5in,height=10in]
>>
>> \setupcolors[state=start]
>>
tance=0in,topspace=0.5in,width=6.5in,height=10in]
>
> \setupcolors[state=start]
>
>
> \starttext
> \startuseMPgraphic{firstFig}
> numeric u;
> u:=1in;
> draw (0,0)--(4u,0) withpen pencircle scaled 2pt withcolor red;
\startuseMPgraphic{firstFig}
numeric u;
u:=1in;
draw (0,0)--(4u,0) withpen pencircle scaled 2pt withcolor red;
\stopuseMPgraphic
\startuseMPgraphic{secondFig}
numeric u;
u:=1in;
draw
On Sun, Nov 22, 2009 at 9:33 PM, Wolfgang Schuster
wrote:
>
> Am 22.11.2009 um 21:15 schrieb luigi scarso:
>
>> %%test-outlined.tex
>> \starttext
>> \startTEXpage
>> \startuseMPgraphic{a}
>> graphictext "\bf Fun" scaled 4 zscaled (1,1.5)
Am 22.11.2009 um 21:15 schrieb luigi scarso:
> %%test-outlined.tex
> \starttext
> \startTEXpage
> \startuseMPgraphic{a}
> graphictext "\bf Fun" scaled 4 zscaled (1,1.5)
> withdrawcolor blue
> withfillcolor .5white
> withpen pencircle scaled 5pt
>
> So does this mean that outline fonts in MetaPost are currently dead with MkIV?
%%test-outlined.tex
\starttext
\startTEXpage
\startuseMPgraphic{a}
graphictext "\bf Fun" scaled 4 zscaled (1,1.5)
withdrawcolor blue
withfillcolor .5white
withpen pencircle scaled 5pt
\stopuseMPgraphic
II.
>>
> \setuppapersize[letter][letter]
> \setupcolors[state=start]
> \setuppagenumbering[state=stop]
>
> \starttext
>
> \startuseMPgraphic{Filling}
> u := 1cm;
> w:= 2pt;
> %Axes
> path xaxis; path yaxis;
> xaxi
le, I just updated my installation of Context minimals. The
> following simple Metapost code does not compile with MKIV, but
> compiles okay with MKII.
>
\setuppapersize[letter][letter]
\setupcolors[state=start]
\setuppagenumbering[state=stop]
\starttext
\startuseMPgraphic{Filling}
minimals. The
following simple Metapost code does not compile with MKIV, but
compiles okay with MKII.
\setuppapersize[letter][letter]
\setupcolors[state=start]
\setuppagenumbering[state=stop]
\starttext
\startuseMPgraphic{Filling}
u := 1cm;
w:= 2pt;
%Axes
path xaxis
does not compile with MKIV, but
compiles okay with MKII.
\setuppapersize[letter][letter]
\setupcolors[state=start]
\setuppagenumbering[state=stop]
\starttext
\startuseMPgraphic{Filling}
u := 1cm;
w:= 2pt;
%Axes
path xaxis; path yaxis;
xaxis := (0,0)--(12,0
}
input metaobj;
\stopMPdefinitions
\startuseMPgraphic{whatevere1::mygraphic}
Is there something for luatex too ?
eh .. this is for mkiv
Hans
-
Hans Hagen | PRAGMA ADE
tions{whatever1}
> input metaobj;
> \stopMPdefinitions
>
> \startuseMPgraphic{whatevere1::mygraphic}
Is there something for luatex too ?
--
luigi
___
If your question is of interest to others as well, please
=yes,initializations=yes]
\defineMPinstance[whatever2][format=mpost]
\startMPdefinitions{whatever1}
input metaobj;
\stopMPdefinitions
\startuseMPgraphic{whatevere1::mygraphic}
.
should work
glabel withcolor is broken (mkiv and mkii).
The label at the first point is black (the 2nd comes out red).
%% minimal example %%
\setupcolors[state=start]
\usemodule[graph]
\startuseMPgraphic{test}
draw begingraph(16cm,12cm);
gdraw (0,0) -- (1,1) withcolor red ;
glabel.urt(btex
xt
\startMPinclusions
input graph
\stopMPinclusions
\startuseMPgraphic{test}
draw begingraph(16cm,12cm);
setrange(whatever,whatever,whatever,whatever);
gdraw (0,0) -- (1,1) ;
endgraph;
\stopuseMPgraphic
\startTEXpage
\useMPgra
mpgraph does not appear to work properly under mkiv.
%% minimal example %%
\starttext
\startuseMPgraphic{test}
input graph
draw begingraph(16cm,12cm);
setrange(whatever,whatever,whatever,whatever);
gdraw (0,0) -- (1,1) ;
endgraph;
\stopuseMPgraphic
\startTEXpage
> > \starttext
> > \startuseMPgraphic{dummy}
> > fill fullcircle scaled 5cm withcolor red ;
> > \stopuseMPgraphic
> > \useMPgraphic{dummy}
> > \stoptext
> >
> > Well, I get nothing on my setup as well as if I use the online compiler.
> > Ther
from metafun manual (page 9) as the
minimal ConTeXt example:
\starttext
\startuseMPgraphic{dummy}
fill fullcircle scaled 5cm withcolor red ;
\stopuseMPgraphic
\useMPgraphic{dummy}
\stoptext
Well, I get nothing on my setup as well as if I use the online compiler.
Therefore I assume that something
result whatsoever.
>>> Text parts of the document are OK, but there is no trace of the image
>>> that should be there.
>>>
>>> The following is taken directly from metafun manual (page 9) as the
>>> minimal ConTeXt example:
>>>
re is no trace of the image
>> that should be there.
>>
>> The following is taken directly from metafun manual (page 9) as the
>> minimal ConTeXt example:
>>
>> \starttext
>> \startuseMPgraphic{dummy}
>> fill fullcircle scaled 5cm withcolor red ;
>>
there.
>
> The following is taken directly from metafun manual (page 9) as the
> minimal ConTeXt example:
>
> \starttext
> \startuseMPgraphic{dummy}
> fill fullcircle scaled 5cm withcolor red ;
> \stopuseMPgraphic
> \useMPgraphic{dummy}
> \stoptext
>
> Well, I get
minimal ConTeXt example:
\starttext
\startuseMPgraphic{dummy}
fill fullcircle scaled 5cm withcolor red ;
\stopuseMPgraphic
\useMPgraphic{dummy}
\stoptext
Well, I get nothing on my setup as well as if I use the online compiler.
Therefore I assume that something must be wrong.
Could you comment on that
ed]
\definecolor[Orange][r=1.,g=.47,b=.0] % dark orange
\setupinteractionscreen[option=max]
\startbuffer[sometext]
\switchtobodyfont[sansserif,1.0cm]
\midaligned{\white \bf This is the text}
\stopbuffer
\starttext
\startuseMPgraphic{somebackground}
fill fullsquare
scaled 10cm
withcolor
\switchtobodyfont[sansserif,1.0cm]
\midaligned{\white \bf This is the text}
\stopbuffer
\starttext
\startuseMPgraphic{somebackground}
fill fullsquare
scaled 10cm
withcolor .625red ;
fill fullsquare
scaled 10cm
shifted (10cm,0)
withcolor black ;
fill fullsqu
anted.
Normally, you can just say
\setupbackgrounds[page][background=color,backgroundcolor=black]
But simpleslides resets the page background on each page so you need to
play nice with simpleslides
\usemodule[simpleslides]
\setupcolors[textcolor=white]
\startuseMPgraphic{simpleslides:MP:ho
.
%=
\setupinteraction
[state=start,
color=green,
style=]
\starttext
\startuseMPgraphic{circle}
draw fullcircle scaled 1cm;
\stopuseMPgraphic
\placefigure
[]
[fig:ref]
{Text}
{\useMPgraphic{circle}}
\in{figure}[fig:ref]
\at{figure}[fig:ref]
\stoptext
%=
This is a bug in mkiv. It
,
color=green,
style=]
\starttext
\startuseMPgraphic{circle}
draw fullcircle scaled 1cm;
\stopuseMPgraphic
\placefigure
[]
[fig:ref]
{Text}
{\useMPgraphic{circle}}
\in{figure}[fig:ref]
\at{figure}[fig:ref]
\stoptext
%=
This is a bug in mkiv. It works correctly in mkii
green,
style=]
\starttext
\startuseMPgraphic{circle}
draw fullcircle scaled 1cm;
\stopuseMPgraphic
\placefigure
[]
[fig:ref]
{Text}
{\useMPgraphic{circle}}
\in{figure}[fig:ref]
\at{figure}[fig:ref]
\stoptext
%=
Best wishes
Wo
there
is no figure number visible in my document.
%==
\starttext
\startuseMPgraphic{circle}
draw fullcircle scaled 1cm;
\stopuseMPgraphic
\placefigure
[]
[fig:ref]
{Text}
{\useMPgraphic{circle}}
\in{figure}[fig:ref]
\stoptext
%==
How can I
document.
%==
\starttext
\startuseMPgraphic{circle}
draw fullcircle scaled 1cm;
\stopuseMPgraphic
\placefigure
[]
[fig:ref]
{Text}
{\useMPgraphic{circle}}
\in{figure}[fig:ref]
\stoptext
%==
How can I fix that?
Further \about{figure}[fig:ref
:
\startuseMPgraphic{underline}
\iftracepositions
show_multi_pars
\else
draw_multi_pars
\fi ;
path p ; p := boundingbox currentpicture ;
currentpicture := currentpicture shifted (0,-StrutDepth/3) ;
setbounds currentpicture to p ;
\stopuseMPgraphic
\definetextbackground
Vyatcheslav Yatskovsky wrote:
Another question arises. The following produces grids in a column (i.e.
with line breaks). How to place MP graphics like words, in a row?
\starttext
\startuseMPgraphic{cg}
drawoptions(withpen pencircle scaled 0.1pt withcolor black) ;
draw hlingrid(0, 6, 1, 0.8cm
Another question arises. The following produces grids in a column (i.e.
with line breaks). How to place MP graphics like words, in a row?
\starttext
\startuseMPgraphic{cg}
drawoptions(withpen pencircle scaled 0.1pt withcolor black) ;
draw hlingrid(0, 6, 1, 0.8cm, 1cm) ;
draw vlingrid(0, 4, 1
Vyatcheslav Yatskovsky wrote:
Hello,
a) Can anyone explain me the practical difference between
\startuseMPgraphic and \startreusableMPgraphic ? Both the former and the
latter allow to place a picture few times.
'reuse' makes smaller pdf files as graphics are only included once
Hello,
a) Can anyone explain me the practical difference between
\startuseMPgraphic and \startreusableMPgraphic ? Both the former and the
latter allow to place a picture few times.
b) Does anyone mind if I add "Using in ConTeXt" section to
http://wiki.contextgarden.net/MetaPost ?
MPpositiongraphicrange ...raphic {#3}{#4}
\fi \fi
...
l.59 \stoptext
! ==> Fatal error occurred, no output PDF file produced!MTXrun | fatal
error, r
eturn code: 1
Here is the example:
%
\unprotect
\startuseMPgraphic{mpos:par:myexample}
path p;
for i = 1 upto nofmu
zontal and
ornamanet backgrounds are placed on all pages other than
\IncludePicture[vertical] where the vertical and ornamenet backgrounds are
placed.
If you to place a logo at a specific position, use
\startuseMPgraphic{simpleslides:MP:ornament}
StartPage ;
metapost code to draw/place
screenshots changed in next document
version. Is think there is a lot of circumstances when some
automatic effect can be needed.
\startuseMPgraphic{shadow}
fill OverlayBox shifted (5pt,-5pt) withcolor .7white ;
setbounds currentpicture to OverlayBox ;
\stopuseMPgraphic
\defineoverlay[shadow
On Tue, 5 May 2009 13:57:52 +0200
Mojca Miklavec scribit:
> On Tue, May 5, 2009 at 13:20, R. Bastian wrote:
> > It works with
> >
> > \startuseMPgraphic{fig1}
> > draw (0.0cm, 0.0cm) -- (1.1cm, 1.1cm) ;
> > \stopuseMPgraphic
> >
> > \useMPgraphi
On Tue, May 5, 2009 at 13:20, R. Bastian wrote:
> It works with
>
> \startuseMPgraphic{fig1}
> draw (0.0cm, 0.0cm) -- (1.1cm, 1.1cm) ;
> \stopuseMPgraphic
>
> \useMPgraphic{fig1}
>
> Is the "excursion" deprecated ?
I don't know the details. In
It works with
\startuseMPgraphic{fig1}
draw (0.0cm, 0.0cm) -- (1.1cm, 1.1cm) ;
\stopuseMPgraphic
\useMPgraphic{fig1}
Is the "excursion" deprecated ?
Begin forwarded message:
Date: Tue, 5 May 2009 10:47:25 +0200
From: "R. Bastian"
To: ntg-context@ntg.nl
Subject: MPgra
601 - 700 of 1079 matches
Mail list logo