* Re: Strange StartPage in Metapost @ 2001-09-17 9:27 ` Patrick Gundlach 2001-09-17 11:41 ` Hans Hagen 0 siblings, 1 reply; 11+ messages in thread From: Patrick Gundlach @ 2001-09-17 9:27 UTC (permalink / raw) Hi, > i lost the graphic, what was the def? %output=pdf \startreusableMPgraphic{DemoFrame} StartPage ; pickup pencircle scaled 2pt ; Field[Text][Text] := Field[Text][Text] enlarged .5cm ; draw (llcorner Field[Text][Text] -- ulcorner Field[Text][Text]); StopPage ; \stopreusableMPgraphic \defineoverlay[DemoFrame][\reuseMPgraphic{DemoFrame}] \setupbackgrounds[page][background=DemoFrame] \starttext \dorecurse{10}{\input tufte \par} \stoptext Viele Grüße, Patrick Gundlach - I TeX, therefore I am - ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Strange StartPage in Metapost 2001-09-17 9:27 ` Strange StartPage in Metapost Patrick Gundlach @ 2001-09-17 11:41 ` Hans Hagen 2001-09-18 0:07 ` Uwe Koloska 0 siblings, 1 reply; 11+ messages in thread From: Hans Hagen @ 2001-09-17 11:41 UTC (permalink / raw) Cc: ConTeXt mailing list At 11:27 AM 9/17/2001 +0200, Patrick Gundlach wrote: >Hi, > > > i lost the graphic, what was the def? > >%output=pdf > >\startreusableMPgraphic{DemoFrame} >StartPage ; >pickup pencircle scaled 2pt ; >Field[Text][Text] := Field[Text][Text] enlarged .5cm ; >draw (llcorner Field[Text][Text] -- ulcorner Field[Text][Text]); >StopPage ; >\stopreusableMPgraphic > >\defineoverlay[DemoFrame][\reuseMPgraphic{DemoFrame}] >\setupbackgrounds[page][background=DemoFrame] > >\starttext >\dorecurse{10}{\input tufte \par} >\stoptext so, what it shows is a vertical line, which is what i expect [beware for double sided texts, since there the backgrounds differ, there you can use [leftpage] and [right[age] backgrounds with their successive reusable graphics. Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Strange StartPage in Metapost 2001-09-17 11:41 ` Hans Hagen @ 2001-09-18 0:07 ` Uwe Koloska 0 siblings, 0 replies; 11+ messages in thread From: Uwe Koloska @ 2001-09-18 0:07 UTC (permalink / raw) Am Montag, 17. September 2001 13:41 hast du geschrieben: > At 11:27 AM 9/17/2001 +0200, Patrick Gundlach wrote: > >Hi, > > > > > i lost the graphic, what was the def? > > > >%output=pdf > > > >\startreusableMPgraphic{DemoFrame} > >StartPage ; > >pickup pencircle scaled 2pt ; > >Field[Text][Text] := Field[Text][Text] enlarged .5cm ; > >draw (llcorner Field[Text][Text] -- ulcorner Field[Text][Text]); > >StopPage ; > >\stopreusableMPgraphic > > > >\defineoverlay[DemoFrame][\reuseMPgraphic{DemoFrame}] The original posting has a typo in this line that results in the use of "DemoFrame" instead of defining an overlay: \defineoverlay[DemoFrame]{\reuseMPgraphic{DemoFrame}} And with this (wrong) line, the graphic doesn't has the height of the text field -- thus my question about the size. But now I know that the line Field[Text][Text] := Field[Text][Text] enlarged .5cm ; is wrong and doesn't do what I (and Patrick I suppose) thought it does ... > >\setupbackgrounds[page][background=DemoFrame] > > > >\starttext > >\dorecurse{10}{\input tufte \par} > >\stoptext > > so, what it shows is a vertical line, which is what i expect Uwe -- mailto:uwe.koloska@mailbox.tu-dresden.de http://rcswww.urz.tu-dresden.de/~koloska -- -- right now the web page is in german only but this will change as time goes by ;-) ^ permalink raw reply [flat|nested] 11+ messages in thread
* Strange StartPage in Metapost @ 2001-09-09 11:13 Patrick Gundlach 2001-09-09 12:00 ` Frans Goddijn 2001-09-10 19:58 ` Strange StartPage in Metapost Hans Hagen 0 siblings, 2 replies; 11+ messages in thread From: Patrick Gundlach @ 2001-09-09 11:13 UTC (permalink / raw) Hi out there in the deep Cyberscpace ;-), --------------------------------myfile.tex---------- \%output=pdf showframe \setupcolors[state=start] \setuppapersize[S6][S6] \startreusableMPgraphic{DemoFrame} StartPage ; pickup pencircle scaled 2pt ; Field[Text][Text] := Field[Text][Text] enlarged .5cm ; draw (llcorner Field[Text][Text] -- ulcorner Field[Text][Text]); StopPage ; \stopreusableMPgraphic \defineoverlay[DemoFrame]{\reuseMPgraphic{DemoFrame}} %\setupbackgrounds[page][background=DemoFrame] \starttext \dorecurse{10}{\input tufte \par} \stoptext ------------------------------end---------- when I texexec this, I get strange results. In my opinion, only the \input tufte should be typeset (and, of course the \showframe). But as you might see, the DemoFrame also gets typeset. But I did not connect the overlay to the background. Only when I comment out the line with \defineoverlay, the mpgraphic is not drawn. So there are two problems here: 1) why is this graphic drawn (even though I have not put it in the background)? 2) why is this placed on an incorrect place? (It seems that the page starts at the upper left corner of the text field, so the vertical line is shifted to the right and down.) This is pdfeTeX, Version 3.14159-14h-released-20010417-2.1 (Web2C 7.3.3.1) entering extended mode (./startpage.tex{/usr/share/texmf/pdftex/config/pdftex.cfg} ConTeXt ver: 2001.7.11 fmt: 2001.9.9 int: english mes: english Randomizer initialized to 931223677.This is MetaPost, Version 0.641 (Web2C 7.3.1) (startpage-mpgraph.mp [1] ) -- Viele Grüße, Patrick Gundlach ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Strange StartPage in Metapost 2001-09-09 11:13 Patrick Gundlach @ 2001-09-09 12:00 ` Frans Goddijn 2001-09-09 14:26 ` Patrick Gundlach 2001-09-10 19:58 ` Strange StartPage in Metapost Hans Hagen 1 sibling, 1 reply; 11+ messages in thread From: Frans Goddijn @ 2001-09-09 12:00 UTC (permalink / raw) Hello Patrick, I ran your file on my pc and first of all the \%output=pdf line didn't seem to work unless I changed it into \setupoutput[pdftex] Then, why is there ny \ before "showframe" in your file? I can't "read" the MPost commands so I can't figure out what you expected to see but I only get a thick vertical line on page 1 which is not there on page 2. Uncommenting the > %\setupbackgrounds[page][background=DemoFrame] does nothing. One question: I often see reference to "\input tufte" in mails and in some context files, but I don't have a file by that name on my pc. Is it something I should have of fill myself with random test lines? Groet! Frans ----- Original Message ----- From: Patrick Gundlach <pg@levana.de> To: ConTeXt mailing list <ntg-context@ntg.nl> Sent: Sunday, September 09, 2001 1:13 PM Subject: Strange StartPage in Metapost > Hi out there in the deep Cyberscpace ;-), > > --------------------------------myfile.tex---------- > \%output=pdf > showframe > \setupcolors[state=start] > \setuppapersize[S6][S6] > > \startreusableMPgraphic{DemoFrame} > StartPage ; > pickup pencircle scaled 2pt ; > Field[Text][Text] := Field[Text][Text] enlarged .5cm ; > draw (llcorner Field[Text][Text] -- ulcorner Field[Text][Text]); > StopPage ; > \stopreusableMPgraphic > > \defineoverlay[DemoFrame]{\reuseMPgraphic{DemoFrame}} > %\setupbackgrounds[page][background=DemoFrame] > > \starttext > \dorecurse{10}{\input tufte \par} > \stoptext > ------------------------------end---------- > > when I texexec this, I get strange results. > In my opinion, only the \input tufte should be typeset (and, of course the > \showframe). But as you might see, the DemoFrame also gets typeset. But I > did not connect the overlay to the background. Only when I comment out the > line with \defineoverlay, the mpgraphic is not drawn. So there are two > problems here: > > 1) why is this graphic drawn (even though I have not put it in the > background)? > 2) why is this placed on an incorrect place? (It seems that the page starts > at the upper left corner of the text field, so the vertical line is shifted > to the right and down.) > > > This is pdfeTeX, Version 3.14159-14h-released-20010417-2.1 (Web2C 7.3.3.1) > entering extended mode > (./startpage.tex{/usr/share/texmf/pdftex/config/pdftex.cfg} > > ConTeXt ver: 2001.7.11 fmt: 2001.9.9 int: english mes: english > > Randomizer initialized to 931223677.This is MetaPost, Version 0.641 (Web2C > 7.3.1) > (startpage-mpgraph.mp [1] ) > > > -- > Viele Grüße, > > Patrick Gundlach ^ permalink raw reply [flat|nested] 11+ messages in thread
* Strange StartPage in Metapost 2001-09-09 12:00 ` Frans Goddijn @ 2001-09-09 14:26 ` Patrick Gundlach 2001-09-09 15:30 ` Fun with MetaFun Frans Goddijn 0 siblings, 1 reply; 11+ messages in thread From: Patrick Gundlach @ 2001-09-09 14:26 UTC (permalink / raw) Hallo Frans and all the others out there, > I ran your file on my pc and first of all the \%output=pdf line didn't > seem to work unless I changed it into > \setupoutput[pdftex] > > Then, why is there ny \ before "showframe" in your file? that was a copy and paste error ;-) it should say: %output=pdf \showframe > I can't "read" the MPost commands so I can't figure out what you expected > to see but I only get a thick vertical line on page 1 which is not there > on page 2. Uncommenting the > > > %\setupbackgrounds[page][background=DemoFrame] > > does nothing. this line should be on the left edge of the text area. And it should not appear with the above line commented. > One question: I often see reference to "\input tufte" in mails and in > some context files, but I don't have a file by that name on my pc. Is it > something I should have of fill myself with random test lines? in the new context versions there is a file called tufte.tex: pg@levana:/opt/context$ find . -name tufte.tex ./2001.07.02/texmf/tex/context/sample/tufte.tex ./2001.07.11/texmf/tex/context/sample/tufte.tex and also these files: douglas.tex knuth.tex materie.tex reich.tex tufte.tex zapf.tex -- Viele Grüße, Patrick Gundlach ^ permalink raw reply [flat|nested] 11+ messages in thread
* Fun with MetaFun 2001-09-09 14:26 ` Patrick Gundlach @ 2001-09-09 15:30 ` Frans Goddijn 0 siblings, 0 replies; 11+ messages in thread From: Frans Goddijn @ 2001-09-09 15:30 UTC (permalink / raw) > that was a copy and paste error ;-) Ah, I'll do some copy-and-paste below, see if it works at your place. > this line should be on the left edge of > the text area. And it should not > appear with the above line commented That's weird. Maybe you could make that line using \hrule and place it as a logo. But Hans will probably see what's wrong in your file. > in the new context versions there is a file called tufte.tex: I'll download that sometime and just take out the tufte and other test text files. Right now, my ConTeXt runs fine so I hesitate to experiment too much by updating it all. While re-making my own letterhead to work with ConTeXt, I enjoy more freedom and I changed the logo. I kerned my initials fg to look like a logo ligature and I wrapped that with a MetaFun line that gets randomized. Lots of fun, now every one of my letters has a wild new logo line around the fg initials! Sometimes it's like a big sloppy garbage bag around the initials, then it's a highly artistic type of flag or the outlines of a continent... fun! \steluitvoerin[pdftex] \stelpapierformaatin [A4][A4] \stellayoutin [plaats=midden, markering=aan, hoogte=midden, % kopwit=30mm, kopwit=5mm, hoofd=30mm, voet=20mm, marge=10mm, rugwit=30mm, breedte=midden] \stelkorpsin [ptm,phv,fg,loc,12pt] \stelnummeringin [variant=dubbelzijdig, plaats={voet,midden}, letter=\oldstyle] \stelvoetnootdefinitiein[plaats=links] \stelwitruimtein[middel] \startreusableMPgraphic{omcirkeld} draw fulldiamond xyscaled (OverlayWidth,OverlayHeight) randomized (30*OverlayLineWidth) withpen pencircle scaled OverlayLineWidth withcolor OverlayLineColor ; path b ; b := boundingbox currentpicture ; setbounds currentpicture to b enlarged 10pt ; \stopreusableMPgraphic \defineoverlay[omcirkeld][\reuseMPgraphic{omcirkeld}] \unprotected \defineframedtext [omcirkeld] [\c!kader=\v!uit, \c!achtergrond=omcirkeld, \c!breedte=\v!passend, \c!offset=1ex] \setupcolors[state=start] % usage: \omcirkeld [framecolor=green] {Frans} \font\fgsop=cmmi12 at 14pt \font\fgkopletter=cmr12 at 14pt \font\fgkopcijfer=cmmi12 at 14pt \font\fgsubkopletter=cmr12 at 10pt \font\fgsubkopcijfer=cmmi12 at 10pt \def\fglogo% {\vbox \regelmidden{\omcirkeld{\fgsop f\lower.3pt\hbox{\kern-3.3pt g}}} }} \definieerbeeldmerk [groot logo] [hoofd] [rechts] [commando=\fglogo] \starttekst \plaatsbeeldmerken[groot logo] tekst \stoptekst ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Strange StartPage in Metapost 2001-09-09 11:13 Patrick Gundlach 2001-09-09 12:00 ` Frans Goddijn @ 2001-09-10 19:58 ` Hans Hagen 2001-09-12 22:27 ` Uwe Koloska 1 sibling, 1 reply; 11+ messages in thread From: Hans Hagen @ 2001-09-10 19:58 UTC (permalink / raw) Cc: ConTeXt mailing list At 01:13 PM 9/9/2001 +0200, Patrick Gundlach wrote: >\defineoverlay[DemoFrame]{\reuseMPgraphic{DemoFrame}} [ ] you got me for a moment: the last {} should be [] now, context silently recovers from a missing second arg and teh reusable graphic ends up on the page as expected [in the main text flow] Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Strange StartPage in Metapost 2001-09-10 19:58 ` Strange StartPage in Metapost Hans Hagen @ 2001-09-12 22:27 ` Uwe Koloska 2001-09-15 9:15 ` Patrick Gundlach 2001-09-17 8:14 ` Hans Hagen 0 siblings, 2 replies; 11+ messages in thread From: Uwe Koloska @ 2001-09-12 22:27 UTC (permalink / raw) Am Montag, 10. September 2001 21:58 hast du geschrieben: > At 01:13 PM 9/9/2001 +0200, Patrick Gundlach wrote: > >\defineoverlay[DemoFrame]{\reuseMPgraphic{DemoFrame}} > > the last {} should be [] > > now, context silently recovers from a missing second arg and teh reusable > graphic ends up on the page as expected [in the main text flow] But why is the graphic not as large as the page part "text" Field[Text][Text] ? Uwe -- mailto:uwe.koloska@mailbox.tu-dresden.de http://rcswww.urz.tu-dresden.de/~koloska -- -- right now the web page is in german only but this will change as time goes by ;-) ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Strange StartPage in Metapost 2001-09-12 22:27 ` Uwe Koloska @ 2001-09-15 9:15 ` Patrick Gundlach 2001-09-17 8:14 ` Hans Hagen 1 sibling, 0 replies; 11+ messages in thread From: Patrick Gundlach @ 2001-09-15 9:15 UTC (permalink / raw) Hallo Uwe, > > >\defineoverlay[DemoFrame]{\reuseMPgraphic{DemoFrame}} > But why is the graphic not as large as the page part "text" > Field[Text][Text] you have seen the line with: Field[Text][Text] := Field[Text][Text] enlarged .5cm ; ??? Remove it and try again. Still not the same size? Here, it is the same as the border shown in \showframe. -- Viele Grüße, Patrick Gundlach ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Strange StartPage in Metapost 2001-09-12 22:27 ` Uwe Koloska 2001-09-15 9:15 ` Patrick Gundlach @ 2001-09-17 8:14 ` Hans Hagen 1 sibling, 0 replies; 11+ messages in thread From: Hans Hagen @ 2001-09-17 8:14 UTC (permalink / raw) Cc: ConTeXt mailing list At 12:27 AM 9/13/2001 +0200, Uwe Koloska wrote: >Am Montag, 10. September 2001 21:58 hast du geschrieben: > > At 01:13 PM 9/9/2001 +0200, Patrick Gundlach wrote: > > >\defineoverlay[DemoFrame]{\reuseMPgraphic{DemoFrame}} > > > > the last {} should be [] > > > > now, context silently recovers from a missing second arg and teh reusable > > graphic ends up on the page as expected [in the main text flow] > > >But why is the graphic not as large as the page part "text" > Field[Text][Text] i lost the graphic, what was the def? Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- ^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2001-09-18 0:07 UTC | newest] Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- [not found] <Your message of "Mon, 17 Sep 2001 10:14:35 +0200." <5.1.0.14.1.20010917101415.02f38ae8@server-1> 2001-09-17 9:27 ` Strange StartPage in Metapost Patrick Gundlach 2001-09-17 11:41 ` Hans Hagen 2001-09-18 0:07 ` Uwe Koloska 2001-09-09 11:13 Patrick Gundlach 2001-09-09 12:00 ` Frans Goddijn 2001-09-09 14:26 ` Patrick Gundlach 2001-09-09 15:30 ` Fun with MetaFun Frans Goddijn 2001-09-10 19:58 ` Strange StartPage in Metapost Hans Hagen 2001-09-12 22:27 ` Uwe Koloska 2001-09-15 9:15 ` Patrick Gundlach 2001-09-17 8:14 ` Hans Hagen
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).