Re: [NTG-context] troubles with \MPinclusions

2019-02-21 Thread Taco Hoekwater
90u) ; > x[1]:= (40u,90u) ; > x[2]:= (90u,90u) ; > x[3]:= (140u,90u) ; > \stopMPinclusions > > \startreusableMPgraphic{test} > draw p ; > \stopreusableMPgraphic > > \starttext >\reuseMPgraphic{test} > \stoptext > > (1) %%

Re: [NTG-context] troubles with \MPinclusions

2019-02-21 Thread Hans Hagen
) -- (150u,0) -- (150u,95u) -- (0,95u) -- cycle ; pair x[] ; x[0]:= (20u,90u) ; x[1]:= (40u,90u) ; x[2]:= (90u,90u) ; x[3]:= (140u,90u) ; \stopMPinclusions \startreusableMPgraphic{test} draw p ; \stopreusableMPgraphic \starttext \reuseMPgraphic{test} \stoptext (1

[NTG-context] troubles with \MPinclusions

2019-02-21 Thread Damien Thiriet
; pair x[] ; x[0]:= (20u,90u) ; x[1]:= (40u,90u) ; x[2]:= (90u,90u) ; x[3]:= (140u,90u) ; \stopMPinclusions \startreusableMPgraphic{test} draw p ; \stopreusableMPgraphic \starttext \reuseMPgraphic{test} \stoptext (1) %% \setuppapersize[A4,landscape

Re: [NTG-context] Metapost graphic in setupbackground

2019-02-08 Thread Jan U. Hasecke
s to a Metapost graphic. >> >> But only the first page has the defined background. >> >> I also tried with >> >> \startuseMPgraphic >> >> with no success >> >> --- mwe --- >> >> \startreusableMPgraphic{kreis} >> draw fullcircle

Re: [NTG-context] Metapost graphic in setupbackground

2019-02-08 Thread Wolfgang Schuster
--- \startreusableMPgraphic{kreis} draw fullcircle scaled 70mm withcolor red withpen pencircle scaled 6mm; \stopreusableMPgraphic \definelayer[kreisbackground][width=70mm,height=70mm] \definelayer[kreisbackground][state=repeat] Wolfgang

[NTG-context] Metapost graphic in setupbackground

2019-02-08 Thread Jan U. Hasecke
Hi all, I make my first steps with Metapost. I would like to set the background of all pages to a Metapost graphic. But only the first page has the defined background. I also tried with \startuseMPgraphic with no success --- mwe --- \startreusableMPgraphic{kreis} draw fullcircle scaled

Re: [NTG-context] insert natural table at the top left of some png

2018-10-15 Thread Damien Thiriet
, 2018 at 11:15:00PM +0200, Hans Hagen wrote: > \definecolor[canaux][h=81b3e0] > > \startreusableMPgraphic{voies} > drawarrow > (0,0) -- (20,0) > withcolor black ; > \stopreusableMPgraphic > > \startreusableMPgraphic{canaux} > draw

Re: [NTG-context] insert natural table at the top left of some png

2018-10-15 Thread Hans Hagen
on the png with ImageMagick or GIMP, or have a nicer output with ConTeXt. I wrote this legend file. \definecolor[canaux][h=81b3e0] \startreusableMPgraphic{voies} path p; p:= (0,0) -- (20,0) ; drawarrow p withcolor black ; \stopreusableMPgraphic \startreusableMPgraphic{canaux} path p; p:= (0,0

[NTG-context] insert natural table at the top left of some png

2018-10-15 Thread Damien Thiriet
a nicer output with ConTeXt. I wrote this legend file. \definecolor[canaux][h=81b3e0] \startreusableMPgraphic{voies} path p; p:= (0,0) -- (20,0) ; drawarrow p withcolor black ; \stopreusableMPgraphic \startreusableMPgraphic{canaux} path p; p:= (0,0) -- (20,0) ; drawarrow p withcolor \MPcolor

Re: [NTG-context] Vertical space around displayed formulas

2017-01-18 Thread Otared Kavian
TE RIGHT-POINTING TRIANGLE > \definefontfamily[slidesfont][math][TeX Gyre Pagella Math] > > \setupbodyfont[slidesfont] > > % Foreground/background color > \setupcolors[textcolor=colorone] > \setupbackgrounds[page][background=color, backgroundcolor=nearlywhite] > > % Header >

[NTG-context] Vertical space around displayed formulas

2017-01-18 Thread Nicola
WHITE DIAMOND, left-join, WHITE RIGHT-POINTING TRIANGLE \definefontfamily[slidesfont][math][TeX Gyre Pagella Math] \setupbodyfont[slidesfont] % Foreground/background color \setupcolors[textcolor=colorone] \setupbackgrounds[page][background=color, backgroundcolor=nearlywhite] % Heade

Re: [NTG-context] Ka-Pow comic book effect?

2016-07-18 Thread Alan BRASLAU
ector-ka-pow-comic-speech-bubble-cartoon-180152483.jpg > > I would like to use it for one of my slides for my talk at TUG 2016. \startreusableMPgraphic{star} fill dir(90)--dir(-60)--dir(150)--dir(30)--dir(-120)--cycle xscaled \overlaywidth yscaled \overlayheight scaled 3/

[NTG-context] Vertically centered text in each page

2016-02-19 Thread Nicola
Inspired by Aditya's "make a presentation in 40 commits" example, I have defined my own environment for slides. A part of it looks like this: %%% \startreusableMPgraphic{header:background} fill OverlayBox leftenlarged BackSpace rig

Re: [NTG-context] Setting expansion depth limit for metapost

2016-02-18 Thread Hans Hagen
Trying to prepare minimal working example of this problem I 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

Re: [NTG-context] Setting expansion depth limit for metapost

2016-02-18 Thread Michal Suszko
of this problem I 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 disapp

Re: [NTG-context] TikZ and wrong drawing order

2015-06-11 Thread Hans Hagen
by the background. Here's an example: \usemodule [tikz] \definesymbol[1] [{\tikz\shade[shading=ball,ball color=blue] (0,0) circle (.2cm);}] \startreusableMPgraphic{bullet} fill fullcircle scaled (1EmWidth) withshademethod circular withcolor red shadedinto blue

Re: [NTG-context] TikZ and wrong drawing order

2015-06-11 Thread Mojca Miklavec
On Thu, Jun 11, 2015 at 11:12 PM, Hans Hagen wrote: On 6/11/2015 7:27 PM, Mojca Miklavec wrote: \usemodule [tikz] \definesymbol[1] [{\tikz\shade[shading=ball,ball color=blue] (0,0) circle (.2cm);}] \startreusableMPgraphic{bullet} fill fullcircle scaled (1EmWidth

Re: [NTG-context] TikZ and wrong drawing order

2015-06-11 Thread Hans Hagen
On 6/12/2015 12:28 AM, Mojca Miklavec wrote: On Thu, Jun 11, 2015 at 11:12 PM, Hans Hagen wrote: On 6/11/2015 7:27 PM, Mojca Miklavec wrote: \usemodule [tikz] \definesymbol[1] [{\tikz\shade[shading=ball,ball color=blue] (0,0) circle (.2cm);}] \startreusableMPgraphic{bullet

[NTG-context] mpgraphics confusion

2013-05-09 Thread Meer, H. van der
I am a bit confused about the metafum graphis. In the manual (2012) I read (screen version after page 203 section 3.3) the following. \startuseMPgraphic-\useMPgraphic this graphic is calculated each time it is placed. \startreusableMPgraphic-\reuseMPgraphic for graphics that don't change

Re: [NTG-context] mpgraphics confusion

2013-05-09 Thread Marco Patzer
On 2013–05–09 Meer, H. van der wrote: I am a bit confused about the metafum graphis. In the manual (2012) I read (screen version after page 203 section 3.3) the following. \startuseMPgraphic-\useMPgraphic this graphic is calculated each time it is placed. \startreusableMPgraphic

Re: [NTG-context] Reusing MP graphics

2013-03-12 Thread Hans Hagen
and if this is expected? \startreusableMPgraphic{foo} draw textext(abcdefghi); picture p; p := currentpicture; \stopreusableMPgraphic \startreusableMPgraphic{bar} addto currentpicture also p; %% not printed draw textext(A); %% distorted \stopreusableMPgraphic \starttext \reuseMPgraphic{foo

[NTG-context] Reusing MP graphics

2013-03-11 Thread Marco Patzer
Hi, I have two questions concerning MP graphics. What's going on here? The “abcdefghi” text is not displayed in the second graphic and the “A” is stretched to match the size of the first graphic. Can someone explain why this happens and if this is expected? \startreusableMPgraphic{foo} draw

Re: [NTG-context] MetaPost instance mechanism broken

2012-11-26 Thread Marco Patzer
(uniformdeviate 1, uniformdeviate 1, uniformdeviate 1); \stopuseMPgraphic \defineoverlay [alpha] [\useMPgraphic{alpha}] \startreusableMPgraphic{beta} fill unitsquare xyscaled (\overlaywidth, \overlayheight) withcolor (uniformdeviate 1, uniformdeviate 1, uniformdeviate 1); \stopreusableMPgraphic

Re: [NTG-context] Using MPgraphics as externalfigures?

2012-08-03 Thread Mari Voipio
), this solution looks like a winner for now. \defineframed [graphicframe] [frame=on,offset=none] \define[1]\MPframed {\graphicframe{\useMPgraphic{#1}}} \startuseMPgraphic{first} fill fullcircle scaled 2cm withcolor red; \stopuseMPgraphic \startreusableMPgraphic{second} fill

Re: [NTG-context] Using MPgraphics as externalfigures?

2012-08-02 Thread Marco Patzer
into the bowels of ConTeXt to get it done... \defineframed [graphicframe] [frame=on,offset=none] \define[1]\MPframed {\graphicframe{\useMPgraphic{#1}}} \startuseMPgraphic{first} fill fullcircle scaled 2cm withcolor red; \stopuseMPgraphic \startreusableMPgraphic{second} fill fullsquare

Re: [NTG-context] Escaping a special character in a MetaPost figure within a ConTeXt document fails

2011-12-01 Thread Raymond LeClair
Thanks for the reply! Found I needed to use \letterbackslash\letterhash for this to work. Does that make sense? On Nov 30, 2011, at 10:37 AM, Aditya Mahajan wrote: Try: using \letterhash instead of \# or \startasciimode \def \FrontMatterTitle { \startreusableMPgraphic

[NTG-context] Escaping a special character in a MetaPost figure within a ConTeXt document fails

2011-11-30 Thread Raymond LeClair
\FrontMatterTitle { \startreusableMPgraphic{frontmattertitle:\overlaywidth:\overlayheight} matter_paper_width := 4.25in; matter_paper_height := 6.875in; front_left_margin := 0.3889in; top_margin := 0.3472in; draw (0, 0)--(matter_paper_width, matter_paper_height) withpen

Re: [NTG-context] Escaping a special character in a MetaPost figure within a ConTeXt document fails

2011-11-30 Thread Aditya Mahajan
Try: using \letterhash instead of \# or \startasciimode \def \FrontMatterTitle { \startreusableMPgraphic{frontmattertitle:\overlaywidth:\overlayheight} matter_paper_width := 4.25in; matter_paper_height := 6.875in; front_left_margin := 0.3889in; top_margin

[NTG-context] \startstaticMPfigure

2011-09-19 Thread Meer, H. van der
\starttext Circle centered \usestaticMPfigure[center][width=1cm] at origin with radius \usestaticMPfigure[radius][width=1cm] $r=1\,\text{cm}$. \stoptext By the way, is transparency still working as in the wiki example below, or has transparency vanished? \startreusableMPgraphic{a} fill unitsquare

Re: [NTG-context] \startstaticMPfigure

2011-09-19 Thread Peter Rolf
\startreusableMPgraphic{a} fill unitsquare scaled 1cm withcolor yellow; fill unitsquare shifted (0.5,0.5) scaled 1cm withcolor transparent (1,0.5,red); \stopreusableMPgraphic \placefigure[force,none]{}{\reuseMPgraphic{a}} Thanks in advance Hans van der Meer

Re: [NTG-context] MKIV strange results in Adobe Reader

2011-09-11 Thread Otso Helenius
,backgroundcolor=black] \startreusableMPgraphic{variympyrat} vardef ColorCircle (expr method, factor, ca, cb, cc) = save u, p ; path p ; p := fullcircle shifted (1/4,0); image (fill p rotated 90 withcolor transparent(method,factor,ca); fill p rotated 210 withcolor transparent(method,factor,cb); fill p

Re: [NTG-context] simpleslides + combinepages != qpdf

2011-05-02 Thread Reviczky, Adam
\startreusableMPgraphic{ignite} input logo_ignite; \stopreusableMPgraphic \starttext \reuseMPgraphic{ignite} \stoptext %handout.tex \setuppapersize [A4][A4] % or [A4,landscape][A4,landscape] \setuplayout [header=0pt,footer=1cm,backspace=1cm,topspace=1cm,width=middle,height=middle] \setupfootertexts

Re: [NTG-context] simpleslides + combinepages != qpdf

2011-05-02 Thread Hartmut Henkel
/raw.php?i=VqvcWniu % slides.tex \startreusableMPgraphic{ignite} input logo_ignite; \stopreusableMPgraphic \starttext \reuseMPgraphic{ignite} \stoptext %handout.tex \setuppapersize [A4][A4] % or [A4,landscape][A4,landscape] \setuplayout [header=0pt,footer=1cm,backspace=1cm

Re: [NTG-context] simpleslides + combinepages != qpdf

2011-05-02 Thread Hartmut Henkel
example: Get logo_ignite.mp from: http://pastebin.com/raw.php?i=VqvcWniu % slides.tex \startreusableMPgraphic{ignite} input logo_ignite; \stopreusableMPgraphic \starttext \reuseMPgraphic{ignite} \stoptext %handout.tex \setuppapersize [A4][A4] % or [A4,landscape][A4

Re: [NTG-context] Position of MetaPost graphics

2011-04-04 Thread Tim Steenvoorden
width: .. (x,x*sin(x)) endfor; \stopMPinclusions \startreusableMPgraphic{rightwave} LoadPageState; pickup pencircle scaled 1pt; draw origin -- (TextWidth,0) -- wave xscaled (CutSpace/width) yscaled (LineHeight/width) shifted (TextWidth,0); %setbounds currentpicture

Re: [NTG-context] Position of MetaPost graphics

2011-04-04 Thread Wolfgang Schuster
; width := periods * 2*pi; wave:= origin for x=0 step 0.1 until width: .. (x,x*sin(x)) endfor; \stopMPinclusions \startreusableMPgraphic{rightwave} LoadPageState; pickup pencircle scaled 1pt; draw origin -- (TextWidth,0) -- wave xscaled (CutSpace/width) yscaled

[NTG-context] Floating picture and footnotes

2011-03-23 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I encountered a bit strange effects when using footnotes in the area which is formed by a floating object. Consider the following example: --- \setupinteraction[state=start] % Heads \setupheads[aligntitle=float] % Graphics \startreusableMPgraphic{Dgm} draw (0,8cm)--(0,0)--(5cm,0

[NTG-context] No bleeding with 2UP arranging

2010-10-01 Thread Vianney le Clément
Hello, When using 2UP arranging, the pages are clipped to their bounding box, loosing any bleeding. Example: \setuppapersize[A6][A4,landscape] \setuparranging[2UP] \setuplayout[location=middle] \setuppagenumbering[alternative=doublesided] \showframe \startreusableMPgraphic{background} StartPage

Re: [NTG-context] Building a guitar chord using MP

2010-04-10 Thread R. Bastian
On Fri, 09 Apr 2010 21:05:06 +0300 Vyatcheslav Yatskovsky yatskov...@gmail.com scribit: Hello, I have interesting task. I want to build a picture of a guitar chord using metapost. For now, I only knew how to make a chord grid: \startreusableMPgraphic{chordgrid} drawoptions(withpen

[NTG-context] Building a guitar chord using MP

2010-04-09 Thread Vyatcheslav Yatskovsky
Hello, I have interesting task. I want to build a picture of a guitar chord using metapost. For now, I only knew how to make a chord grid: \startreusableMPgraphic{chordgrid} drawoptions(withpen pencircle scaled 0.4pt withcolor black) ; draw hlingrid(0, 5, 1, 0.8cm, 1cm) ; draw vlingrid(0, 4

Re: [NTG-context] Setting expansion depth limit for metapost

2010-03-19 Thread Michal Suszko
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 disappeared. Michał

[NTG-context] A Metapost question

2009-09-11 Thread Vyatcheslav Yatskovsky
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 ? Regards

Re: [NTG-context] A Metapost question

2009-09-11 Thread Hans Hagen
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; so does

Re: [NTG-context] beta: \abortinputifdefined (mkiv)

2009-03-20 Thread Peter Rolf
] \startreusableMPgraphic{FOO} path p; p:= unitsquare xyscaled(10cm,2cm); linear_shade(p,1,red,blue); \stopreusableMPgraphic \starttext \useMPgraphic{FOO} \page[yes] \useMPgraphic{FOO} \stoptext The interesting thing is, that it works after the third run. After you delete all temporary files (tuo,tui) you

Re: [NTG-context] beta: \abortinputifdefined (mkiv)

2009-03-20 Thread luigi scarso
. hmm ... need example ... \setupcolors[state=start] \startreusableMPgraphic{FOO} path p; p:= unitsquare xyscaled(10cm,2cm); linear_shade(p,1,red,blue); \stopreusableMPgraphic \starttext \useMPgraphic{FOO} \page[yes] \useMPgraphic{FOO} \stoptext The interesting thing

[NTG-context] PiechartMP module and SetupPercent

2008-10-03 Thread batela
Dear Sirs, I want to include in my document some nice pie charts with the piechartmp module, but i'm find some problems in set the percent symbol. The sentence SetupPercent( this, %) don't work. Did you know a way to fix that? Thanks a lot best regards \startreusableMPgraphic{P1} input

Re: [NTG-context] MetaPost graphics within formulas

2008-07-26 Thread Oliver Buerschaper
The bounding box of the graphic is set on the base line. So you have to add some artificial depth to the graphic. \starttext \startreusableMPgraphic{tetrahedral} begingroup u := 10pt; draw (0,0)--(2u,0)--(u,sqrt(3)*u)--cycle; draw boundingbox

Re: [NTG-context] MetaPost graphics within formulas

2008-07-26 Thread Peter Rolf
Oliver Buerschaper schrieb: The bounding box of the graphic is set on the base line. So you have to add some artificial depth to the graphic. \starttext \startreusableMPgraphic{tetrahedral} begingroup save u; u := 10pt; draw (0,0)--(2u,0)--(u,sqrt(3)*u

Re: [NTG-context] MetaPost graphics within formulas

2008-07-25 Thread Peter Rolf
. \starttext \startreusableMPgraphic{tetrahedral} begingroup u := 10pt; draw (0,0)--(2u,0)--(u,sqrt(3)*u)--cycle; draw boundingbox currentpicture withpen pensquare scaled .1; endgroup; \stopreusableMPgraphic \def\Tetrahedral{\lower5pt\hbox{\reuseMPgraphic

Re: [NTG-context] some more graphictext

2008-04-26 Thread Peter Rolf
] \usetypescript[palatino][texnansi] \setupbodyfont[palatino,10pt] \definefont [ONEfont] [Palatino at 40pt] \stopMPenvironment \startreusableMPgraphic{ONE} graphictext \ONEfont 1 withdrawcolor blue withfillcolor black withpen pencircle scaled 1pt ; \stopreusableMPgraphic

[NTG-context] some more graphictext

2008-04-22 Thread Peter Rolf
,10pt] \definefont [ONEfont] [Palatino at 40pt] \stopMPenvironment \startreusableMPgraphic{ONE} graphictext \ONEfont 1 withdrawcolor blue withfillcolor black withpen pencircle scaled 1pt ; \stopreusableMPgraphic \starttext {\bf Bold} {\it Italic} {\bf\it BoldItalic

[NTG-context] ghosts in mpost?

2008-02-15 Thread Olivier
Hi everyone, I ran into trouble while trying to compile \startreusableMPgraphic{try} label(textext{$x\vphantom{y}z$}, origin); \stopreusableMPgraphic \reuseMPgraphic{try} Is this a bug? Olivier ___ If your

Re: [NTG-context] ghosts in mpost?

2008-02-15 Thread Taco Hoekwater
Olivier wrote: Hi everyone, I ran into trouble while trying to compile \startreusableMPgraphic{try} label(textext{$x\vphantom{y}z$}, origin); \stopreusableMPgraphic \reuseMPgraphic{try} Is this a bug? Well, the error message is not nice, and maybe an \unexpanded in front

Re: [NTG-context] ghosts in mpost?

2008-02-15 Thread Olivier
Hi Taco, Quoting Taco Hoekwater : -- was [EMAIL PROTECTED] on Feb 15, 2008 at 05:25:16PM -- \startreusableMPgraphic{try} label(textext{$x\vphantom{y}z$}, origin); \stopreusableMPgraphic \reuseMPgraphic{try} Well, the error message is not nice, and maybe an \unexpanded in front

[NTG-context] System commands are disabled

2007-10-13 Thread Leo
---start-8--- \starttext \startreusableMPgraphic{return} drawarrow (0,0)-- (1EmWidth,0)-- (1EmWidth,-.5ExHeight)-- (.5EmWidth,-.5ExHeight) ; \stopreusableMPgraphic \definesymbol[return][\reuseMPgraphic{return}] \setupcolors[state=start] \def\vcrlf{\symbol[return]\crlf\strut\kern1em

[NTG-context] drawoptions in \startMPinclusions

2007-06-14 Thread nicola
Hi, the following code \startMPinclusions drawoptions(withpen pencircle scaled 1mm); u := 1cm; \stopMPinclusions \startreusableMPgraphic{foo} draw origin--(u,u); \stopreusableMPgraphic \starttext \midaligned{\reuseMPgraphic{foo}} \stoptext produces a line with default thickness, not 1mm wide

Re: [NTG-context] drawoptions in startMPinclusions

2007-06-14 Thread Aditya Mahajan
Quoting nicola [EMAIL PROTECTED]: Hi, the following code \startMPinclusions drawoptions(withpen pencircle scaled 1mm); u := 1cm; \stopMPinclusions \startreusableMPgraphic{foo} draw origin--(u,u); \stopreusableMPgraphic \starttext \midaligned{\reuseMPgraphic{foo}} \stoptext

Re: [NTG-context] Pagesize papersize: Writing jobname/date outside page area

2007-04-17 Thread Thomas A. Schmitz
\ of \lastpage} \egroup \stopbuffer \startreusableMPgraphic{Cross} StartPage; %topleft z5ctl = ulcorner Page ; z6ctl = (x5ctl - 1cm,y5ctl) ; z7ctl = (x5ctl + 1cm,y5ctl) ; z8ctl = (x5ctl,y5ctl - 1cm) ; z9ctl = (x5ctl,y5ctl + 1cm) ; draw z6ctl--z7ctl ; draw z8ctl--z9ctl ; %topright z5ctr = urcorner Page

Re: [NTG-context] unicode in metafun?

2007-04-07 Thread nicola
.: \definetypeface[myface][rm][Xserif][Charis SIL][default][encoding=uc] \starttext \startreusableMPgraphic{fig} u := 1cm; draw origin--(0,u)--(0,2u)--(0,3u); dotlabel.lft(\sometxt{Q}, origin); dotlabel.rt(\sometxt{R}, origin); dotlabel.lft(\sometxt{Ã

[NTG-context] postscript problem

2007-01-19 Thread Peter Rolf
\par l.19 ? The file is converted by mptopdf, if I remove that blank line. Here is a minimal example. \setupoutput[pdftex] \setuppagenumber[state=stop] \startreusableMPgraphic{foo} draw unitsquare xyscaled(4cm,4cm) withpen pencircle scaled 1pt shifted(1cm,1cm

[NTG-context] deep (?) error when page break occures inside of startlines together with MPgraphics

2006-11-22 Thread Vit Zyka
-- \def\MPclipFourR#1#2#3% {\startreusableMPgraphic{clip:fourR:#1#2#3}{} draw fullcircle; \stopreusableMPgraphic \reuseMPgraphic{clip:fourR:#1#2#3}{}} \defineoverlay [StatusAchtergrondR] [\MPclipFourR{\overlaywidth}{\overlayheight

[NTG-context] bfrange block CMap error in pdf file

2006-10-01 Thread Sanjoy Mahajan
This file produces just a boldface 'a' via metafun: = bf.tex == \setuppagenumbering[location=] \starttext \startreusableMPgraphic{fig} label (\sometxt{\bf a}, (0,0)); \stopreusableMPgraphic \reuseMPgraphic{fig} \stoptext = bf.tex == 'xpdf bf.pdf

Re: [NTG-context] btex..etex fails in reusableMPgraphic (2006.09.28 beta)

2006-09-30 Thread Sanjoy Mahajan
btex.tex === \starttext \startreusableMPgraphic{fig} label(btex in b/e tex etex, origin); \stopreusableMPgraphic outside btex..etex\quad \reuseMPgraphic{fig} \stoptext works here

Re: [NTG-context] MPenvironment \def gives Parameters must be numbered consecutively

2006-09-30 Thread Sanjoy Mahajan
there) I hadn't thought of that. Do you mean something like (which I couldn't get to compile): \starttext \startreusableMPgraphic{fig} \def\hello{hhh} % perhaps in an environment file label(\sometxt{\hello}, origin); \stopreusableMPgraphic \reuseMPgraphic{fig} \stoptext -Sanjoy `Never

[NTG-context] ## in \def in \sometxt fails with static MP figure

2006-09-30 Thread Sanjoy Mahajan
== Alas using \def\2#1#2{\vbox{\halign{#\hfil\cr#1\cr#2\cr}}} leads to a different error (illegal parameter number). But using a reusable graphic works: yy.tex = \def\2#1#2{\vbox{\halign{##\hfil\cr#1\cr#2\cr}}} \starttext \startreusableMPgraphic{fig

Re: [NTG-context] \sometxt bodyfontsize in staticMPfigure (2006.09.27 beta)

2006-09-29 Thread Hans Hagen
= In the reusableMPgraphic method, the outside and inside texts have their baselines aligned: = with-reusable12.tex \starttext \startreusableMPgraphic{fig} label(\sometxt{in sometxt},origin

Re: [NTG-context] MPenvironment \def gives Parameters must be numbered consecutively

2006-09-29 Thread Hans Hagen
Sanjoy Mahajan wrote: This test file (beta 2006.09.28): 1.tex \starttext \startMPenvironment \def\2#1#2{\vbox{\halign{\hfil##\hfil\cr #1\cr #2\cr}}} \stopMPenvironment \startreusableMPgraphic{fig} label(btex sun etex, origin

Re: [NTG-context] btex..etex fails in reusableMPgraphic (2006.09.28 beta)

2006-09-29 Thread Hans Hagen
Sanjoy Mahajan wrote: Unless I'm doing something very silly, the following should and I am almost certain did work, but it fails with the 2006.09.28 beta: btex.tex === \starttext \startreusableMPgraphic{fig} label(btex in b/e tex etex, origin

Re: [NTG-context] btex..etex fails in reusableMPgraphic (2006.09.28 beta)

2006-09-29 Thread Sanjoy Mahajan
Hans Hagen wrote: btex.tex === \starttext \startreusableMPgraphic{fig} label(btex in b/e tex etex, origin); \stopreusableMPgraphic outside btex..etex\quad \reuseMPgraphic{fig} \stoptext works here

Re: [NTG-context] \sometxt bodyfontsize in staticMPfigure (2006.09.27 beta)

2006-09-28 Thread Hans Hagen
} label(\sometxt{in sometxt},origin); \stopstaticMPfigure outside sometxt \usestaticMPfigure[fig] \stoptext produces a small in sometxt and a large outside sometxt. With this file both are large, as I expected \sometxt to work: \setupbodyfont[20pt] \starttext \startreusableMPgraphic

[NTG-context] btex..etex fails in reusableMPgraphic (2006.09.28 beta)

2006-09-28 Thread Sanjoy Mahajan
Unless I'm doing something very silly, the following should and I am almost certain did work, but it fails with the 2006.09.28 beta: btex.tex === \starttext \startreusableMPgraphic{fig} label(btex in b/e tex etex, origin); \stopreusableMPgraphic outside btex

Re: [NTG-context] \sometxt bodyfontsize in staticMPfigure (2006.09.27 beta)

2006-09-28 Thread Sanjoy Mahajan
, the outside and inside texts have their baselines aligned: = with-reusable12.tex \starttext \startreusableMPgraphic{fig} label(\sometxt{in sometxt},origin); \stopreusableMPgraphic outside sometxt\quad \reuseMPgraphic{fig} \stoptext

[NTG-context] MPenvironment ignored for btex..etex (or should I use sometxt)?

2006-09-28 Thread Sanjoy Mahajan
I'm not sure what's going on here, but this file fails (2006.09.28 beta): [well I have a better idea now after writing out the whole email, see the end...] === 3.tex = \starttext \startMPenvironment \def\2{hello} \stopMPenvironment \startreusableMPgraphic{fig

[NTG-context] MPenvironment \def gives Parameters must be numbered consecutively

2006-09-28 Thread Sanjoy Mahajan
This test file (beta 2006.09.28): 1.tex \starttext \startMPenvironment \def\2#1#2{\vbox{\halign{\hfil##\hfil\cr #1\cr #2\cr}}} \stopMPenvironment \startreusableMPgraphic{fig} label(btex sun etex, origin); \stopreusableMPgraphic \reuseMPgraphic{fig

[NTG-context] \sometxt bodyfontsize in staticMPfigure (2006.09.27 beta)

2006-09-27 Thread Sanjoy Mahajan
},origin); \stopstaticMPfigure outside sometxt \usestaticMPfigure[fig] \stoptext produces a small in sometxt and a large outside sometxt. With this file both are large, as I expected \sometxt to work: \setupbodyfont[20pt] \starttext \startreusableMPgraphic{fig} label(\sometxt{in sometxt},origin

Re: [NTG-context] transparent metafun colors turn nearly black

2006-09-25 Thread Sanjoy Mahajan
(I wonder if the live context has been having the same problem?) I tried to fix it after Taco reported the exact problem. Plese test if it's working now. Thanks, the live context works! I tested this file: \setupcolors[state=start] \starttext \startreusableMPgraphic{a} fill

Re: [NTG-context] staticMPfigures can overrun output streams

2006-09-25 Thread Sanjoy Mahajan
In another thread, Hans mentioned the 2006.09.25 beta. I tested it against this test file and it works great: \starttext \dorecurse{20}{\startreusableMPgraphic{\recurselevel} draw fullcircle scaled 3mm; \stopreusableMPgraphic \placefigure[here,none]{}{\reuseMPgraphic{\recurselevel}}} \stoptext

Re: [NTG-context] does metafun require texexec --final?

2006-09-23 Thread Sanjoy Mahajan
-remembering what Aditya said in the previous thread on metafun. So the following works (changing the r changes the result right away without requiring --final or requiring two texexec runs): = cut here == \runMPgraphicstrue \starttext \startreusableMPgraphic{a} r := 1cm; fill

[NTG-context] transparent metafun colors turn nearly black

2006-09-23 Thread Sanjoy Mahajan
an essential command? cut here \runMPgraphicstrue \setupcolors[state=start] \starttext \startreusableMPgraphic{a} % _inline_specials_ := true; % had hopes for this line, but no luck % next line taken as an example from mp-spec.mp fill fullcircle scaled 10cm

Re: [NTG-context] does metafun require texexec --final?

2006-09-23 Thread Wolfgang Schuster
== \runMPgraphicstrue \starttext \startreusableMPgraphic{a} r := 1cm; fill fullcircle scaled r; \stopreusableMPgraphic \placefigure[force,none]{}{\reuseMPgraphic{a}} the figure above should be a small circle \stoptext = cut here == To see where

Re: [NTG-context] transparent metafun colors turn nearly black

2006-09-23 Thread Peter Rolf
cut here \runMPgraphicstrue \setupcolors[state=start] \starttext \startreusableMPgraphic{a} % _inline_specials_ := true; % had hopes for this line, but no luck % next line taken as an example from mp-spec.mp fill fullcircle scaled 10cm withcolor transparent(8,.3,red

Re: [NTG-context] transparent metafun colors turn nearly black

2006-09-23 Thread Sanjoy Mahajan
file is not right. To make sure it wasn't a caching problem, I added a bit of text to the end, to see whether the new PDF file had it (it did). \runMPgraphicstrue \runMPTEXgraphicstrue \setupcolors[state=start] \starttext \startreusableMPgraphic{a} fill fullcircle scaled 10cm withcolor transparent

Re: [NTG-context] transparent metafun colors turn nearly black

2006-09-23 Thread Peter Rolf
\runMPTEXgraphicstrue \setupcolors[state=start] \starttext \startreusableMPgraphic{a} fill fullcircle scaled 10cm withcolor transparent(1,0.5,green) ; \stopreusableMPgraphic \placefigure[force,none]{}{\reuseMPgraphic{a}} \stoptext -Sanjoy ___ ntg-context

[NTG-context] trouble with \startMPinclusions[+]

2006-09-22 Thread Sanjoy Mahajan
code to make there be a fixed current color before each figure?] === cut here = \starttext \startreusableMPgraphic{a} fill fullcircle scaled 1cm; \stopreusableMPgraphic \placefigure[force,none]{}{\reuseMPgraphic{a}} hello % instead, just \startMPinclusions works

[NTG-context] does metafun require texexec --final?

2006-09-22 Thread Sanjoy Mahajan
\startreusableMPgraphic{a} r := 1cm; fill fullcircle scaled r; \stopreusableMPgraphic \placefigure[force,none]{}{\reuseMPgraphic{a}} the figure above should be a small circle \stoptext === cut here == -Sanjoy ___ ntg-context mailing list ntg-context

[NTG-context] runMPgraphicstrue produces undefined figure

2006-09-12 Thread Sanjoy Mahajan
\starttext \startreusableMPgraphic{a} fill fullcircle scaled 2cm; \stopreusableMPgraphic \placefigure[here,none]{}{\reuseMPgraphic{a}} \input tufte \stoptext = cut here === The figure is a square saying 'undefined'. Taking away

Re: [NTG-context] runMPgraphicstrue produces undefined figure

2006-09-12 Thread Aditya Mahajan
=== \runMPgraphicstrue \starttext \startreusableMPgraphic{a} fill fullcircle scaled 2cm; \stopreusableMPgraphic \placefigure[here,none]{}{\reuseMPgraphic{a}} \input tufte \stoptext = cut here === The figure

Re: [NTG-context] metafun \sometxt: should black be black or textcolor?

2006-08-07 Thread Mojca Miklavec
\scratchbox\MPheight \wd\scratchbox\MPwidth \dp\scratchbox\zeropoint\relax \dopackageMPgraphic\scratchbox \egroup \endinput} \starttext \color[red]{\startMPcode draw fullcircle scaled 5cm ; draw btex test etex ; \stopMPcode red} \startreusableMPgraphic{test} draw fullcircle

Re: [NTG-context] metafun \sometxt: should black be black or textcolor?

2006-08-06 Thread Hans Hagen
\dopackageMPgraphic\scratchbox \egroup \endinput} \starttext \color[red]{\startMPcode draw fullcircle scaled 5cm ; draw btex test etex ; \stopMPcode red} \startreusableMPgraphic{test} draw fullcircle scaled 5cm ; draw btex test etex ; \stopreusableMPgraphic \color[red]{red

Re: [NTG-context] scaling reusableMPgraphic some ConTeXt programming

2006-07-24 Thread Hans Hagen
}% counter name has to depend on #2 \doglobal\increment\abc % assigning the value #1 to it would also be OK \startreusableMPgraphic{gpg:#2:#1}#3\stopreusableMPgraphic} How can I give a better name than \abc to the counter (the name should depend on #2 in order to be unique)? why do

[NTG-context] scaling reusableMPgraphic some ConTeXt programming

2006-07-23 Thread Mojca Miklavec
a new counter for the first time when you use it \doif{#1}{1}{\doglobal\newcounter\abc}% counter name has to depend on #2 \doglobal\increment\abc % assigning the value #1 to it would also be OK \startreusableMPgraphic{gpg:#2:#1}#3\stopreusableMPgraphic} How can I give

Re: [NTG-context] clipping problem

2006-07-10 Thread Hans Hagen
% interface=en output=pdftex % Time-stamp: Montag, 03 Juli 2006 21:04:46; cliptest.tex % \setupcolors[state=start] \startreusableMPgraphic{cliptest} path p ; u:= 64bp ; p:= unitsquare xyscaled(u,u) ; fill p withcolor green ; fill p

Re: [NTG-context] clipping problem

2006-07-10 Thread Peter Rolf
[state=start] \startreusableMPgraphic{cliptest} path p ; u:= 64bp ; p:= unitsquare xyscaled(u,u) ; fill p withcolor green ; fill p xshifted u withcolor blue ; fill p xshifted 2u withcolor green ; fill p yshifted u withcolor blue ; fill p shifted (u,u) withcolor red

Re: [NTG-context] clipping problem

2006-07-06 Thread Peter Rolf
, 03 Juli 2006 21:04:46; cliptest.tex % \setupcolors[state=start] \startreusableMPgraphic{cliptest} path p ; u:= 64bp ; p:= unitsquare xyscaled(u,u) ; fill p withcolor green ; fill p xshifted u withcolor blue ; fill p xshifted 2u withcolor green ; fill p yshifted u

[NTG-context] clipping problem

2006-07-03 Thread Peter Rolf
=start] \startreusableMPgraphic{cliptest} path p ; u:= 64bp ; p:= unitsquare xyscaled(u,u) ; fill p withcolor green ; fill p xshifted u withcolor blue ; fill p xshifted 2u withcolor green ; fill p yshifted u withcolor blue ; fill p shifted (u,u) withcolor red ; fill p

Re: [NTG-context] mfun-004.tex \startuseMPgraphic

2005-12-19 Thread Hans Hagen
shifted (-1cm,-1cm) ; \stopuseMPgraphic \startlinecorrection[blank] \startMPcode \includeMPgraphic{axis} drawpoint 1cm,1.5cm ; \stopMPcode \stoplinecorrection If the axis graphic is going to be reused over and over again, why didn't you use \startreusableMPgraphic? in that case i should have

Re: [NTG-context] distance with \godown

2005-10-20 Thread Willi Egger
Hello Jessica, Hm, indeed your code does give a somewhat strange behaviour. - I played with it a bit and I changed the following things. 1. Make alle MP-graphics which are static \startreusableMPgraphic..\stopreusableMPgraphic. Use in the layerdefinitions \reuseMPgraphic{} -- This makes

[NTG-context] Q: footline and more the oneline with pic

2005-10-06 Thread Alexander Lazic
pencircle scaled linewidth; endfor;) enddef; \stopusableMPgraphic %% .25white = Dunkelgrau 75% %% .75white = Standardgrau 25% \startreusableMPgraphic{bars} \includeMPgraphic{bar} draw Bar(TextWidth,2mm,1mm,1mm) withcolor .75white; \stopreusableMPgraphic % picture p ; p : \startreusableMPgraphic

Re: [NTG-context] Q: about \externalfile from metafun-p.pdf

2005-10-03 Thread Alexander Lazic
On Son 02.10.2005 22:36, Christopher Creutzig wrote: Alexander Lazic wrote: 2.) i have try \startreusableMPgraphic{sin} sin (1); \stopreusableMPgraphic{sin} This {sin} at the end is wrong; it's interpreted as text. This have i understand ;-) I called it sin, sorry for confusion

Re: [NTG-context] Q: about \externalfile from metafun-p.pdf

2005-10-02 Thread Alexander Lazic
On Son 02.10.2005 19:54, Christopher Creutzig wrote: Probably a typo in metafun-p.pdf; try \externalfigure instead. Thanx this works ;-) Oh btw: i have see in the syntax-diagramm sin. 1.) is this the sinus function? 2.) i have try --- \startreusableMPgraphic{sin} sin (1

  1   2   >