* MP figures in the background @ 2003-12-15 8:24 Zunbeltz Izaola [not found] ` <Pine.OSF.4.44.0312150902060.31717-100000@lcdx00.wm.lc.ehu. es> 0 siblings, 1 reply; 6+ messages in thread From: Zunbeltz Izaola @ 2003-12-15 8:24 UTC (permalink / raw) Hi, I'm doing a christmars card in ConTeXt!. I've the following setup \setuppapersize[CD][A4] \setuplayout[marking=on,location=middle] \starttext \startuseMPgraphic{dummy} ... ... \stopuseMPgraphic \defineoverlay[backfigure][\useMPgraphic{dummy}] \setupbackground[paper][background=backfigure] \hbox{} \stoptext I need the \hbox{} because there has to be something to typeset. The next thing i want to do is to have a second page. I use the \page[yes] command. The problem is that with this the background apears to in the second page, and i don't want that. How can i define a background figure only for certain page? Thanks in advance, Zunbeltz ^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <Pine.OSF.4.44.0312150902060.31717-100000@lcdx00.wm.lc.ehu. es>]
* Re: MP figures in the background [not found] ` <Pine.OSF.4.44.0312150902060.31717-100000@lcdx00.wm.lc.ehu. es> @ 2003-12-15 9:47 ` Hans Hagen 2003-12-15 10:02 ` Zunbeltz Izaola 2003-12-17 21:56 ` Zunbeltz Izaola 0 siblings, 2 replies; 6+ messages in thread From: Hans Hagen @ 2003-12-15 9:47 UTC (permalink / raw) At 09:24 15/12/2003, you wrote: >Hi, > >I'm doing a christmars card in ConTeXt!. I've the following setup > >\setuppapersize[CD][A4] >\setuplayout[marking=on,location=middle] > >\starttext >\startuseMPgraphic{dummy} >... >... >\stopuseMPgraphic > >\defineoverlay[backfigure][\useMPgraphic{dummy}] >\setupbackground[paper][background=backfigure] >\hbox{} >\stoptext >\starttext >\startuseMPgraphic{dummy} >... >... >\stopuseMPgraphic > >\defineoverlay[backfigure][\useMPgraphic{dummy}] >\setupbackground[paper][background=backfigure] >\hbox{} >\stoptext \defineoverlay[page][\useMPgraphic{dummy}] \setupbackground[page][background=page] \startstandardmakeup some text \stopstandardmakeup \setupbackground[page][background=] rest of text on next page or: \definelayer[page] \setlayer[page]{\useMPgraphic{dummy}] \startstandardmakeup some text \stopstandardmakeup rest of text on next page Hans (who right now is going to print this years christmas card -) ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: MP figures in the background 2003-12-15 9:47 ` Hans Hagen @ 2003-12-15 10:02 ` Zunbeltz Izaola 2003-12-17 21:56 ` Zunbeltz Izaola 1 sibling, 0 replies; 6+ messages in thread From: Zunbeltz Izaola @ 2003-12-15 10:02 UTC (permalink / raw) On Mon, 15 Dec 2003, Hans Hagen wrote: > At 09:24 15/12/2003, you wrote: > > >Hi, > > > >I'm doing a christmars card in ConTeXt!. I've the following setup > > > >\setuppapersize[CD][A4] > >\setuplayout[marking=on,location=middle] > > > >\starttext > >\startuseMPgraphic{dummy} > >... > >... > >\stopuseMPgraphic > > > >\defineoverlay[backfigure][\useMPgraphic{dummy}] > >\setupbackground[paper][background=backfigure] > >\hbox{} > >\stoptext > > >\starttext > >\startuseMPgraphic{dummy} > >... > >... > >\stopuseMPgraphic > > > >\defineoverlay[backfigure][\useMPgraphic{dummy}] > >\setupbackground[paper][background=backfigure] > >\hbox{} > >\stoptext > > \defineoverlay[page][\useMPgraphic{dummy}] > > \setupbackground[page][background=page] > > \startstandardmakeup > some text > \stopstandardmakeup > > \setupbackground[page][background=] > > rest of text on next page > > or: > > \definelayer[page] \setlayer[page]{\useMPgraphic{dummy}] > > \startstandardmakeup > some text > \stopstandardmakeup > > rest of text on next page > Thanks for the replay. I can't test it know, by i'm sure it will work :-) > Hans (who right now is going to print this years christmas card -) > I think the copyright for my christmas card should be your. I have stold the idea of using one image and ramdoly distribuite and change colors for your wonderfull PRAGMA christmas cards! Zunbeltz > _______________________________________________ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context > ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: MP figures in the background 2003-12-15 9:47 ` Hans Hagen 2003-12-15 10:02 ` Zunbeltz Izaola @ 2003-12-17 21:56 ` Zunbeltz Izaola [not found] ` <Pine.OSF.4.44.0312172247310.18202-100000@lcdx00.wm.lc.ehu. es> 1 sibling, 1 reply; 6+ messages in thread From: Zunbeltz Izaola @ 2003-12-17 21:56 UTC (permalink / raw) > > >Hi, > > > >I'm doing a christmars card in ConTeXt!. I've the following setup > > > >\setuppapersize[CD][A4] > >\setuplayout[marking=on,location=middle] > > > >\starttext > >\startuseMPgraphic{dummy} > >... > >... > >\stopuseMPgraphic > > > >\defineoverlay[backfigure][\useMPgraphic{dummy}] > >\setupbackground[paper][background=backfigure] > >\hbox{} > >\stoptext > > >\starttext > >\startuseMPgraphic{dummy} > >... > >... > >\stopuseMPgraphic > > > >\defineoverlay[backfigure][\useMPgraphic{dummy}] > >\setupbackground[paper][background=backfigure] > >\hbox{} > >\stoptext > > \defineoverlay[page][\useMPgraphic{dummy}] > > \setupbackground[page][background=page] > > \startstandardmakeup > some text > \stopstandardmakeup > > \setupbackground[page][background=] > > rest of text on next page > > or: > > \definelayer[page] \setlayer[page]{\useMPgraphic{dummy}] > > \startstandardmakeup > some text > \stopstandardmakeup > > rest of text on next page Hi Hans! I'm in trouble with this method. (I supose the error is mine). I can draw the MP graphic using \useMPgraphic, but when i use \defineoverlay[bihotzak][\useMPgraphic{bihotz}] \setupbackgrounds[paper][background=bihotzak] I get the following error systems : randomizer starts with 150693575 [MP to PDF] (./mpgraph.1) layout : calculating backgrounds [MP to PDF] (./mpgraph.4000 ! Dimension too large. \handleMPboundingbox ... 2 \advance \dimen 0 #4bp \dimen 0=\MPxscale \dimen ... l.2 %%BoundingBox: -6 -141 --32768 --32768 I put my file in the end > > Hans (who right now is going to print this years christmas card -) > Zunbeltz (who is working hard to print a christamas card :-) \setupoutput[pdftex] \setupcolors[state=start] \setuplayout[location=middle,marking=on] \setuppagenumber[state=stop] %\setuppapersize[CD][A4] %\useexternalfigure[bihotzirudia][biho.mps][width=12cm,height=12cm] \starttext \startuseMPgraphic{bihotz} u = 0.017mm; z0 = (10,16.2)*u; z1 = (14,17.8)*u; z2 = (19.5,12.5)*u; z3 = (10,0)*u; z4 = (0.5,12.5)*u; z5 = (6,17.8)*u; z6 = (10,16.2)*u; % penwidth = 3cm; pickup pencircle scaled 0.4; randomseed := 12346; color color[],colourout,colourin; color1 = 0.9red; color2 = (red+0.4yellow); path heart; heart := z0..z1{right}..z2{down}..{dir-110}z3{dir90}..{dir 90}z4.. {right}z5..z6; pair shiftvector; picture heartpicture[]; draw heart withcolor color1; fill heart..cycle withcolor color2 ; heartpicture0 := currentpicture; currentpicture:= nullpicture; draw heart withcolor color2; fill heart..cycle withcolor color1; heartpicture1 := currentpicture; currentpicture:= nullpicture; % scalation := 0.001mm; pair shiftvector; draw heartpicture0 scaled 0.01mm; for i=1 upto 1: shiftvector := (uniformdeviate 12, uniformdeviate 12); if uniformdeviate 2 > 1: draw heartpicture0 shifted shiftvector scaled 1cm;% scaled scalation; else: draw heartpicture1 shifted shiftvector scaled 1cm;% scaled scalation; fi; endfor; setbounds currentpicture to unitsquare scaled 12cm; \stopuseMPgraphic %\definecolor[color1][r=0.9,] %\definecolor[color2][r=1,y=0.4] \useMPgraphic{bihotz} %\useMPgraphic{bihotz} \defineoverlay[bihotzak][\useMPgraphic{bihotz}] %\setlayer[page]{\externalfigure[bihotzirudia]} %\externalfigure[biho]%[width=12cm] %\defineoverlay[page] %[width=12cm] \setupbackgrounds[paper][background=bihotzak] \startstandardmakeup some text \stopstandardmakeup %\setupbackgrounds[page][background=] %\page[yes] %\leftaligned{2004 bihotz} %\leftaligned{2004 \color[color2]{urterako}} %\blank %\rightaligned{Zure Ciruelitoa} \stoptext ^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <Pine.OSF.4.44.0312172247310.18202-100000@lcdx00.wm.lc.ehu. es>]
* Re: MP figures in the background [not found] ` <Pine.OSF.4.44.0312172247310.18202-100000@lcdx00.wm.lc.ehu. es> @ 2003-12-18 7:54 ` Hans Hagen 2003-12-18 8:42 ` Zunbeltz Izaola 0 siblings, 1 reply; 6+ messages in thread From: Hans Hagen @ 2003-12-18 7:54 UTC (permalink / raw) >Hi Hans! >I'm in trouble with this method. (I supose the error is mine). >I can draw the MP graphic using \useMPgraphic, but when i use > >\defineoverlay[bihotzak][\useMPgraphic{bihotz}] >\setupbackgrounds[paper][background=bihotzak] > >I get the following error >systems : randomizer starts with 150693575 >[MP to PDF] (./mpgraph.1) >layout : calculating backgrounds >[MP to PDF] (./mpgraph.4000 >! Dimension too large. >\handleMPboundingbox ... 2 \advance \dimen 0 #4bp > \dimen 0=\MPxscale >\dimen ... >l.2 %%BoundingBox: -6 -141 --32768 --32768 strange, it works here; anyhow, you use very smalls numbers and (0.017mm) on the one end and big ones later on, and somehow you end up with a boundingbox of 32K bp which is pretty large, The solution is in changing some dimensions: roughly design at the size you want and use xysized(..,..) to scale thing sto proportions Hans ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: MP figures in the background 2003-12-18 7:54 ` Hans Hagen @ 2003-12-18 8:42 ` Zunbeltz Izaola 0 siblings, 0 replies; 6+ messages in thread From: Zunbeltz Izaola @ 2003-12-18 8:42 UTC (permalink / raw) ~ On Thu, 18 Dec 2003, Hans Hagen wrote: > > > strange, it works here; > I'm using the last texlive distribution, maybe need i to download the beta?, and if so, what it the way of updating (donwload the file, unzip and rebuild formats?) Zunbeltz > anyhow, you use very smalls numbers and (0.017mm) on the one end and big > ones later on, and somehow you end up with a boundingbox of 32K bp which is > pretty large, > > The solution is in changing some dimensions: roughly design at the size you > want and use xysized(..,..) to scale thing sto proportions > > Hans > > _______________________________________________ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context > ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2003-12-18 8:42 UTC | newest] Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2003-12-15 8:24 MP figures in the background Zunbeltz Izaola [not found] ` <Pine.OSF.4.44.0312150902060.31717-100000@lcdx00.wm.lc.ehu. es> 2003-12-15 9:47 ` Hans Hagen 2003-12-15 10:02 ` Zunbeltz Izaola 2003-12-17 21:56 ` Zunbeltz Izaola [not found] ` <Pine.OSF.4.44.0312172247310.18202-100000@lcdx00.wm.lc.ehu. es> 2003-12-18 7:54 ` Hans Hagen 2003-12-18 8:42 ` Zunbeltz Izaola
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).