\startMPpage
draw ...
\stopMPpage,
it will do the syntax highligting for metapost inside the \start-
\stop pair.
There are still some bugs present (see comments in file), but I
don't know how yet to get rid of them.
I downloaded SpellChecker and SuperTab (autocomplete) today from
the vim website
) and move the
attached file to syntax\context.vim.
If you have something like
\startMPpage
draw ...
\stopMPpage,
it will do the syntax highligting for metapost inside the \start-\stop
pair.
There are still some bugs present (see comments in file), but I don't
know how yet to get rid of them.
I
(Sorry for responding to two separate mails, I'm a bit rushed, going on
a three-day holiday.)
Hans Hagen wrote:
Mojca Miklavec wrote:
If you have something like
\startMPpage
draw ...
\stopMPpage,
it will do the syntax highligting for metapost inside the \start-\stop
pair.
That's
to describe my problem. I have
no ouptput of btex-etex in any case...
a more simple version:
\setupoutput[pdftex]
\starttext
\startMPpage
draw btex TEST etex;
\stopMPpage
\stoptext
anyhow, what does
texexec --automp
produce
Hans
All,
This test file:
\starttext
\setupcolors[state=start]
\startMPpage
colorcircle(10cm,red,green,blue) ;
\stopMPpage
\stoptext
If I follow this procedure:
f:/context/texutil --purgeall
f:/context/texexec --pdf test
Then I get a nice document when opened in Acrobat Reader.
However
from Scite as also from the cmd.box.
I thought that may be you should check your cont-sys.tex file, there
should exist two lines as follows:
\runMPgraphicstrue
\runMPTEXgraphicstrue
Willi
David Arnold wrote:
All,
This test file:
\starttext
\setupcolors[state=start]
\startMPpage
;
\stopreusableMPgraphic
\startbuffer[TestPage]
\reuseMPgraphic{TestPage}
\stopbuffer
\startMPpage
StartPage ;
\stopMPpage
%
-Mensaje original-
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
nombre de David Arnold
Enviado el: jueves, 04 de noviembre de
Maurice Diamantini wrote:
\setupcolors[state=start] \starttext \startMPpage
your mp code
\stopMPpage \stoptext
That gives you a stand alone pdf graphic that you can embed later
The problem is probably due to my installation (texlive 2003 installed
in a non standard directory)
Everything works
, and for reusability)
normally nothing has to go in there
you can make stand alond graphics with context doing:
\setupcolors[state=start] \starttext \startMPpage
your mp code
\stopMPpage \stoptext
That gives you a stand alone pdf graphic that you can embed later
5 - about metapost:
How can I build
for the sake of environnement robustness, and for reusability)
normally nothing has to go in there
you can make stand alond graphics with context doing:
\setupcolors[state=start] \starttext \startMPpage
your mp code
\stopMPpage \stoptext
That gives you a stand alone pdf graphic that you can embed
\runMPTEXgraphicstrue
\useMETAFUNformattrue
\newprettytrue
\protectbufferstrue
\protect \endinput
%
This is my file:
%
\starttext
\startMPpage
draw textext.origin(x);
draw fullcircle scaled 2cm;
\stopMPpage
\stoptext
The following example works on [EMAIL PROTECTED], but on my computer it
only writes unknown at the place of x. btex etex also doesn't work
in ConTeXt (metaplay) on my computer, although it does without any
problems in metapost/mptopdf.
\starttext
\startMPpage
draw textext.origin(x);
draw
:
\starttext
\startMPpage[offset=4cm]
z1=(0,1cm); z2=(3cm,1cm);
dotlabel.top(btex $z_1$ etex,z1);
dotlabel.top(btex $z_2$ etex,z2);
draw textext($\string\underbrace{\hbox to
decimal(xpart(z2)-xpart(z1))pt{\hss}}$) shifted .5[z1,z2];
\stopMPpage
\stoptext
or:
\starttext
\let
Hi Hans,
So we are dancing in a circle? - No problem, I detected in an old file,
that I used \startTEXpage instead of \startMPpage. When issuing
\startTEXpage the figures compile perfectly an I get the pagesized to
the boundingbox of the picture!
Thanks for your guidance
Willi
Hans Hagen
At 23:45 16/01/2004, you wrote:
Hi all,
Currently I am preparing a series of figures. I use the approach given in
Metafun:
\startuseMPgraphic{test}
...
code
...
\stopuseMPgraphic
\starttext
\startMPpage
\includeMPgraphic{test}
\stopMPpage
% \useMPgraphic
\useMPgraphic{test
Hi Hans,
Hm, tried to use
\starttext
\startMPpage
\useMPgraphic{\Pict}
\stopMPpage
\stoptext
error:
useMPgraphic
! Isolated expression.
to be read again
{
l.224 \useMPgraphic {
Test} ;
?
Otherwise this works:
\starttext
\useMPgraphic
At 18:47 24/01/2004, you wrote:
Hi Hans,
Hm, tried to use
\starttext
\startMPpage
\useMPgraphic{\Pict}
\includeMPgraphic{...}
Hans
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context
At 09:27 08/10/2003, you wrote:
Yes, indeed! But compiling code
beginfig(100)
fill unitsquare scaled 123 withcolor (.2,.3,.4);
endfig;
end
\starttext \startMPpage
...
\stopMPpage \stoptext
The last alert means Memory violating. A remedy for such problems
=start]
\startMPinclusions
vardef cutbetween (expr p,a,b)=
if (xpart (p intersectiontimes a))
(xpart (p intersectiontimes b)):
((p cutbefore b) cutafter a)
else:
(p cutbefore b)--(p cutafter a)
fi
enddef;
\stopMPinclusions
\starttext
\startMPpage
save c, A, B ; path c, A, B
801 - 819 of 819 matches
Mail list logo