[NTG-context] Re: Override starttyping environment
Hello David, > [before={\startframedtext[width=\makeupwidth, and > \startalignment[middle] don't work together. Perhaps you can put your \startmatlab in a framed box with specific width and frame=off. P. -- ConTeXt wiki: http://contextgarden.net ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Re: \setuplayout --- what do parameters mean?
Hi David, [...] > I have a hard time working out what it means. I know I can do \showframe, > but that doesn't indicate everything I need to see. Does anyone have a > macro that shows ALL of these parameters in a visual way, similar to that > on page 182 of the Latex User Guide, 2nd ed., Lamport? Well, I don't own a Lamport, and probably not many ConTeXt users own one, so your description could be more verbose. Nevertheless you might want to have a look at http://levana.de/context/ there is somewhere a module that should do something like this. But there is still a bug in there when the margins are too small. Patrick -- ConTeXt wiki: http://contextgarden.net ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
RE: [NTG-context] Re: \setuplayout --- what do parameters mean?
Patrick, Found it. Excellent source. I am working away at it as we speak. Thanks. -Original Message- From: Patrick Gundlach [mailto:[EMAIL PROTECTED] Sent: Thursday, November 04, 2004 2:08 PM To: [EMAIL PROTECTED] Subject: [NTG-context] Re: \setuplayout --- what do parameters mean? Hi David, [...] > I have a hard time working out what it means. I know I can do > \showframe, but that doesn't indicate everything I need to see. Does > anyone have a macro that shows ALL of these parameters in a visual > way, similar to that on page 182 of the Latex User Guide, 2nd ed., > Lamport? Well, I don't own a Lamport, and probably not many ConTeXt users own one, so your description could be more verbose. Nevertheless you might want to have a look at http://levana.de/context/ there is somewhere a module that should do something like this. But there is still a bug in there when the margins are too small. Patrick -- ConTeXt wiki: http://contextgarden.net ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \reuseMPgraphic error
Matthias, This was allowed at one time. It is straight out of the Metafun manual. At 02:03 PM 11/4/04 -0500, you wrote: > >On Nov 4, 2004, at 1:07 PM, David Arnold wrote: > >> All, >> >> This file: >> >> \setupoutput[pdf] >> >> \startreusableMPgraphic{layout 1} >> pickup pencircle scaled 1mm; >> fill unitsquare xyscaled (7cm,8cm) withcolor 0.85white; >> fill unitsquare xyscaled (5cm,5cm) shifted (1cm,1.5cm) withcolor >> 0.625yellow; >> fill unitsquare xyscaled (5cm,1cm) shifted (1cm,0.5cm) withcolor >> 0.625red; >> fill unitsquare xyscaled (5cm,1cm) shifted (1cm,6.5cm) withcolor >> 0.625red; >> draw unitsquare xyscaled (5cm,7cm) shifted (1cm,0.5cm) withcolor >> 0.25white; >> drawarrow (2cm,8cm)--top (2cm,7.5cm); >> drawarrow (0cm,7cm)--lft(1cm,7cm); >> clip currentpicture to unitsquare xyscaled (7cm,8cm); >> \stopreusableMPgraphic >> >> >> \startreusableMPgraphic{layout 2} >> \includeMPgraphic{layout 1} > >^ >is that allowed? (it works without) > > >> clip currentpicture to unitsquare scaled 3cm shifted (0,5cm); >> currentpicture:=currentpicture scaled 2 shifted (0,-8cm); >> setbounds currentpicture to unitsquare xyscaled (6cm,8cm); >> \stopreusableMPgraphic >> >> >> >> \setupcolors[state=start] >> >> \starttext >> >> Now is the time for all good men to come to the aid of their country. >> Now is the time for all good men to come to the aid of their country. >> Now is the time for all good men to come to the aid of their country. >> Now is the time for all good men to come to the aid of their country. >> Now is the time for all good men to come to the aid of their country. >> Now is the time for all good men to come to the aid of their country. >> Now is the time for all good men to come to the aid of their country. >> Now is the time for all good men to come to the aid of their country. >> >> \hbox >> {\reuseMPgraphic{layout 1}\hskip1cm >> \reuseMPgraphic{layout 2}} >> >> Now is the time for all good men to come to the aid of their country. >> Now is the time for all good men to come to the aid of their country. >> Now is the time for all good men to come to the aid of their country. >> Now is the time for all good men to come to the aid of their country. >> Now is the time for all good men to come to the aid of their country. >> Now is the time for all good men to come to the aid of their country. >> Now is the time for all good men to come to the aid of their country. >> Now is the time for all good men to come to the aid of their country. >> >> \page >> Now is the time for all good men to come to the aid of their country. >> Now is the time for all good men to come to the aid of their country. >> Now is the time for all good men to come to the aid of their country. >> Now is the time for all good men to come to the aid of their country. >> Now is the time for all good men to come to the aid of their country. >> Now is the time for all good men to come to the aid of their country. >> Now is the time for all good men to come to the aid of their country. >> Now is the time for all good men to come to the aid of their country. >> >> \startlinecorrection[blank] >> \hbox >> {\reuseMPgraphic{layout 1}\hskip1cm >> \reuseMPgraphic{layout 2}} >> \stoplinecorrection >> >> Now is the time for all good men to come to the aid of their country. >> Now is the time for all good men to come to the aid of their country. >> Now is the time for all good men to come to the aid of their country. >> Now is the time for all good men to come to the aid of their country. >> Now is the time for all good men to come to the aid of their country. >> Now is the time for all good men to come to the aid of their country. >> Now is the time for all good men to come to the aid of their country. >> Now is the time for all good men to come to the aid of their country. >> >> \stoptext >> >> >> Produces this error: >> >> ERROR: Undefined control sequence. >> >> --- TeX said --- >> \getobject ...->\blabelgroup \let \dohandleobject >> \dogetobject \csname >> \r!ob... >> \includeMPgraphic {layout 1} >> clip currentpicture to >> unitsquare >> sc... >> >> \nonowriteMPgraphicline ... \long \edef \ascii {#1 >> }\expandafter >> \flushMPgrap... >> >> \shortMPflushN ...nowriteMPgraphicline #1#2\MPend >> \expandafter >> \shortMPflush... >> ...itsquare scaled 3cm shifted (0,5cm); >> >> currentpicture:=currentpi... >> >> \writeMPgraphicshortN ... \space \shortMPflushN #1 >> \empty ;\relax >> ;\egroup >> ... >> l.40 \reuseMPgraphic{layout 2}} >> >> --- HELP --- >> TeX encountered an unknown command name. You probably misspelled the >> name. If this message occurs when a LaTeX command is being processed, >> the command is probably in the wrong place---for example, the error >> can be produced by an \i
Re: [NTG-context] \reuseMPgraphic error
On Nov 4, 2004, at 1:07 PM, David Arnold wrote: All, This file: \setupoutput[pdf] \startreusableMPgraphic{layout 1} pickup pencircle scaled 1mm; fill unitsquare xyscaled (7cm,8cm) withcolor 0.85white; fill unitsquare xyscaled (5cm,5cm) shifted (1cm,1.5cm) withcolor 0.625yellow; fill unitsquare xyscaled (5cm,1cm) shifted (1cm,0.5cm) withcolor 0.625red; fill unitsquare xyscaled (5cm,1cm) shifted (1cm,6.5cm) withcolor 0.625red; draw unitsquare xyscaled (5cm,7cm) shifted (1cm,0.5cm) withcolor 0.25white; drawarrow (2cm,8cm)--top (2cm,7.5cm); drawarrow (0cm,7cm)--lft(1cm,7cm); clip currentpicture to unitsquare xyscaled (7cm,8cm); \stopreusableMPgraphic \startreusableMPgraphic{layout 2} \includeMPgraphic{layout 1} ^ is that allowed? (it works without) clip currentpicture to unitsquare scaled 3cm shifted (0,5cm); currentpicture:=currentpicture scaled 2 shifted (0,-8cm); setbounds currentpicture to unitsquare xyscaled (6cm,8cm); \stopreusableMPgraphic \setupcolors[state=start] \starttext Now is the time for all good men to come to the aid of their country. Now is the time for all good men to come to the aid of their country. Now is the time for all good men to come to the aid of their country. Now is the time for all good men to come to the aid of their country. Now is the time for all good men to come to the aid of their country. Now is the time for all good men to come to the aid of their country. Now is the time for all good men to come to the aid of their country. Now is the time for all good men to come to the aid of their country. \hbox {\reuseMPgraphic{layout 1}\hskip1cm \reuseMPgraphic{layout 2}} Now is the time for all good men to come to the aid of their country. Now is the time for all good men to come to the aid of their country. Now is the time for all good men to come to the aid of their country. Now is the time for all good men to come to the aid of their country. Now is the time for all good men to come to the aid of their country. Now is the time for all good men to come to the aid of their country. Now is the time for all good men to come to the aid of their country. Now is the time for all good men to come to the aid of their country. \page Now is the time for all good men to come to the aid of their country. Now is the time for all good men to come to the aid of their country. Now is the time for all good men to come to the aid of their country. Now is the time for all good men to come to the aid of their country. Now is the time for all good men to come to the aid of their country. Now is the time for all good men to come to the aid of their country. Now is the time for all good men to come to the aid of their country. Now is the time for all good men to come to the aid of their country. \startlinecorrection[blank] \hbox {\reuseMPgraphic{layout 1}\hskip1cm \reuseMPgraphic{layout 2}} \stoplinecorrection Now is the time for all good men to come to the aid of their country. Now is the time for all good men to come to the aid of their country. Now is the time for all good men to come to the aid of their country. Now is the time for all good men to come to the aid of their country. Now is the time for all good men to come to the aid of their country. Now is the time for all good men to come to the aid of their country. Now is the time for all good men to come to the aid of their country. Now is the time for all good men to come to the aid of their country. \stoptext Produces this error: ERROR: Undefined control sequence. --- TeX said --- \getobject ...->\blabelgroup \let \dohandleobject \dogetobject \csname \r!ob... \includeMPgraphic {layout 1} clip currentpicture to unitsquare sc... \nonowriteMPgraphicline ... \long \edef \ascii {#1 }\expandafter \flushMPgrap... \shortMPflushN ...nowriteMPgraphicline #1#2\MPend \expandafter \shortMPflush... ...itsquare scaled 3cm shifted (0,5cm); currentpicture:=currentpi... \writeMPgraphicshortN ... \space \shortMPflushN #1 \empty ;\relax ;\egroup ... l.40 \reuseMPgraphic{layout 2}} --- HELP --- TeX encountered an unknown command name. You probably misspelled the name. If this message occurs when a LaTeX command is being processed, the command is probably in the wrong place---for example, the error can be produced by an \item command that's not inside a list-making environment. The error can also be caused by a missing \documentstyle command. Any ideas? ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] \reuseMPgraphic error
All, This file: \setupoutput[pdf] \startreusableMPgraphic{layout 1} pickup pencircle scaled 1mm; fill unitsquare xyscaled (7cm,8cm) withcolor 0.85white; fill unitsquare xyscaled (5cm,5cm) shifted (1cm,1.5cm) withcolor 0.625yellow; fill unitsquare xyscaled (5cm,1cm) shifted (1cm,0.5cm) withcolor 0.625red; fill unitsquare xyscaled (5cm,1cm) shifted (1cm,6.5cm) withcolor 0.625red; draw unitsquare xyscaled (5cm,7cm) shifted (1cm,0.5cm) withcolor 0.25white; drawarrow (2cm,8cm)--top (2cm,7.5cm); drawarrow (0cm,7cm)--lft(1cm,7cm); clip currentpicture to unitsquare xyscaled (7cm,8cm); \stopreusableMPgraphic \startreusableMPgraphic{layout 2} \includeMPgraphic{layout 1} clip currentpicture to unitsquare scaled 3cm shifted (0,5cm); currentpicture:=currentpicture scaled 2 shifted (0,-8cm); setbounds currentpicture to unitsquare xyscaled (6cm,8cm); \stopreusableMPgraphic \setupcolors[state=start] \starttext Now is the time for all good men to come to the aid of their country. Now is the time for all good men to come to the aid of their country. Now is the time for all good men to come to the aid of their country. Now is the time for all good men to come to the aid of their country. Now is the time for all good men to come to the aid of their country. Now is the time for all good men to come to the aid of their country. Now is the time for all good men to come to the aid of their country. Now is the time for all good men to come to the aid of their country. \hbox {\reuseMPgraphic{layout 1}\hskip1cm \reuseMPgraphic{layout 2}} Now is the time for all good men to come to the aid of their country. Now is the time for all good men to come to the aid of their country. Now is the time for all good men to come to the aid of their country. Now is the time for all good men to come to the aid of their country. Now is the time for all good men to come to the aid of their country. Now is the time for all good men to come to the aid of their country. Now is the time for all good men to come to the aid of their country. Now is the time for all good men to come to the aid of their country. \page Now is the time for all good men to come to the aid of their country. Now is the time for all good men to come to the aid of their country. Now is the time for all good men to come to the aid of their country. Now is the time for all good men to come to the aid of their country. Now is the time for all good men to come to the aid of their country. Now is the time for all good men to come to the aid of their country. Now is the time for all good men to come to the aid of their country. Now is the time for all good men to come to the aid of their country. \startlinecorrection[blank] \hbox {\reuseMPgraphic{layout 1}\hskip1cm \reuseMPgraphic{layout 2}} \stoplinecorrection Now is the time for all good men to come to the aid of their country. Now is the time for all good men to come to the aid of their country. Now is the time for all good men to come to the aid of their country. Now is the time for all good men to come to the aid of their country. Now is the time for all good men to come to the aid of their country. Now is the time for all good men to come to the aid of their country. Now is the time for all good men to come to the aid of their country. Now is the time for all good men to come to the aid of their country. \stoptext Produces this error: ERROR: Undefined control sequence. --- TeX said --- \getobject ...->\blabelgroup \let \dohandleobject \dogetobject \csname \r!ob... \includeMPgraphic {layout 1} clip currentpicture to unitsquare sc... \nonowriteMPgraphicline ... \long \edef \ascii {#1 }\expandafter \flushMPgrap... \shortMPflushN ...nowriteMPgraphicline #1#2\MPend \expandafter \shortMPflush... ...itsquare scaled 3cm shifted (0,5cm); currentpicture:=currentpi... \writeMPgraphicshortN ... \space \shortMPflushN #1 \empty ;\relax ;\egroup ... l.40 \reuseMPgraphic{layout 2}} --- HELP --- TeX encountered an unknown command name. You probably misspelled the name. If this message occurs when a LaTeX command is being processed, the command is probably in the wrong place---for example, the error can be produced by an \item command that's not inside a list-making environment. The error can also be caused by a missing \documentstyle command. Any ideas? ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \setuplayout --- what do parameters mean?
Am 04.11.2004 um 03:43 schrieb David Arnold: I have a hard time working out what it means. I know I can do \showframe, Try \showlayout Grüßlis vom Hraban! --- http://www.fiee.net/texnique/ ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \typebuffer and tabs / specify code type
On Wed, Nov 03, 2004 at 02:19:19PM +0100, Eckhart Guthöhrlein wrote: > On Wed, Nov 03, 2004 at 01:39:45PM +0100, Hans Hagen wrote: > > Eckhart Guthöhrlein wrote: > > >Hi all, > > > > > >I'm using \typebuffer to typeset some metapost code. How can I tell it > > >to either ignore tabs or treat them like 1,2,3,... spaces, instead of > > >printing ^^I? > > >Another question: There has been a thread on telling \typebuffer what > > >type of code on this list some time ago, without a final solution. Is > > >there a switch to use metapost or whatever appropriate highlighting? > > > > \setuptyping[tab=on] % or off > > That does not work here. Example file: > > \starttext > \startbuffer[ex] > draw unitsquare scaled 1cm; > \stopbuffer > % \setuptype[tab=on] > % \setuptype[tab=off] > % \setuptyping[tab=on] > \setuptyping[tab=off] > \typebuffer[ex] > \stoptext > > None of the \setuptyp* has any effect, I alwas get ^^I^^I for the two > tabs. I have furthermore observed that typing of files via \typefile as well as \starttyping..\stoptyping are affected, opposed to \typebuffer. \typefile and the typing environment do never print ^^I for a tab, but either a space or several spaces, depending on the tab=on/off option. This behavior is what I would like to have for \typebuffer, too. How to do it? -- Eckhart ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] No color even though \setupcolors[state=start]
Put your text between \startproduct ... \stopproduct Matthias On Nov 4, 2004, at 12:07 PM, David Arnold wrote: All, Can anyone tell me why I am not getting any color (red and yellow)? \startuseMPgraphic{layout 1} pickup pencircle scaled 1mm; fill unitsquare xyscaled (7cm,8cm) withcolor 0.85white; fill unitsquare xyscaled (5cm,5cm) shifted (1cm,1.5cm) withcolor 0.625yellow; fill unitsquare xyscaled (5cm,1cm) shifted (1cm,0.5cm) withcolor 0.625red; fill unitsquare xyscaled (5cm,1cm) shifted (1cm,6.5cm) withcolor 0.625red; fill unitsquare xyscaled (5cm,7cm) shifted (1cm,0.5cm) withcolor 0.25white; drawarrow (2cm,8cm)--top (2cm,7.5cm); drawarrow (0cm,7cm)--lft(1cm,7cm); clip currentpicture to unitsquare xyscaled (7cm,8cm); \stopuseMPgraphic \startuseMPgraphic{layout 2} \includeMPgraphic{layout 1} clip currentpicture to unitsquare scaled 3cm shifted (0,5cm); currentpicture:=currentpicture scaled 2 shifted (0,-8cm); setbounds currentpicture to unitsquare xyscaled (6cm,8cm); \stopuseMPgraphic \setupcolors[state=start] \starttext \startlinecorrection[blank] \hbox {\useMPgraphic{layout 1}\hskip1cm \useMPgraphic{layout 2}} \stoplinecorrection \stoptext ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] No color even though \setupcolors[state=start]
All, Duh! draw, not fill! Sorry. At 09:07 AM 11/4/04 -0800, you wrote: >All, > >Can anyone tell me why I am not getting any color (red and yellow)? > >\startuseMPgraphic{layout 1} >pickup pencircle scaled 1mm; >fill unitsquare xyscaled (7cm,8cm) withcolor 0.85white; >fill unitsquare xyscaled (5cm,5cm) shifted (1cm,1.5cm) withcolor 0.625yellow; >fill unitsquare xyscaled (5cm,1cm) shifted (1cm,0.5cm) withcolor 0.625red; >fill unitsquare xyscaled (5cm,1cm) shifted (1cm,6.5cm) withcolor 0.625red; >fill unitsquare xyscaled (5cm,7cm) shifted (1cm,0.5cm) withcolor 0.25white; draw unitsquare xyscaled (5cm,7cm) shifted (1cm,0.5cm) withcolor 0.25white; >drawarrow (2cm,8cm)--top (2cm,7.5cm); >drawarrow (0cm,7cm)--lft(1cm,7cm); >clip currentpicture to unitsquare xyscaled (7cm,8cm); >\stopuseMPgraphic > >\startuseMPgraphic{layout 2} >\includeMPgraphic{layout 1} >clip currentpicture to unitsquare scaled 3cm shifted (0,5cm); >currentpicture:=currentpicture scaled 2 shifted (0,-8cm); >setbounds currentpicture to unitsquare xyscaled (6cm,8cm); >\stopuseMPgraphic > > >\setupcolors[state=start] > >\starttext > >\startlinecorrection[blank] >\hbox >{\useMPgraphic{layout 1}\hskip1cm >\useMPgraphic{layout 2}} >\stoplinecorrection > >\stoptext > >___ >ntg-context mailing list >[EMAIL PROTECTED] >http://www.ntg.nl/mailman/listinfo/ntg-context > > ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] No color even though \setupcolors[state=start]
All, Can anyone tell me why I am not getting any color (red and yellow)? \startuseMPgraphic{layout 1} pickup pencircle scaled 1mm; fill unitsquare xyscaled (7cm,8cm) withcolor 0.85white; fill unitsquare xyscaled (5cm,5cm) shifted (1cm,1.5cm) withcolor 0.625yellow; fill unitsquare xyscaled (5cm,1cm) shifted (1cm,0.5cm) withcolor 0.625red; fill unitsquare xyscaled (5cm,1cm) shifted (1cm,6.5cm) withcolor 0.625red; fill unitsquare xyscaled (5cm,7cm) shifted (1cm,0.5cm) withcolor 0.25white; drawarrow (2cm,8cm)--top (2cm,7.5cm); drawarrow (0cm,7cm)--lft(1cm,7cm); clip currentpicture to unitsquare xyscaled (7cm,8cm); \stopuseMPgraphic \startuseMPgraphic{layout 2} \includeMPgraphic{layout 1} clip currentpicture to unitsquare scaled 3cm shifted (0,5cm); currentpicture:=currentpicture scaled 2 shifted (0,-8cm); setbounds currentpicture to unitsquare xyscaled (6cm,8cm); \stopuseMPgraphic \setupcolors[state=start] \starttext \startlinecorrection[blank] \hbox {\useMPgraphic{layout 1}\hskip1cm \useMPgraphic{layout 2}} \stoplinecorrection \stoptext ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
RE: [NTG-context] \setuplayout --- what do parameters mean?
Hi David, I use the following code...which I borrowed and adapted from someone else (I think it was from Patrick Gundlach's http://levana.de/context/) to explore graphically the meanings of the parameters of \setuplayout. I used it when developing my own style for presentations...I am aware it may not be perfect but I hope it does help you Greetings Jose Ignacio Marin The code (the unknown commands like \Location \Style etc... are for you to substitute with values you want) % \setuplayout [ location=\Location, style=\Style, marking=\Marking, scale=\Scale, nx=\Nx, ny=\Ny, dx=\Dx, dy=\Dy, lines=\Lines, grid=\Grid, bottomspace=\BottomSpace, cutspace=\CutSpace, horoffset=\HorOffset, veroffset=\VerOffset, backspace=\BackSpace, leftmargin=\LeftMargin, leftmargindistance=\LeftMarginDistance, width=\Width, rightmargin=\LeftMargin, rightmargindistance=\LeftMarginDistance, topspace=\TopSpace, header=\Header, headerdistance=\HeaderDistance, height=\Height, footerdistance=\FooterDistance, footer=\Footer, paperwidth=\PaperWidth, paperheight=\PaperHeight, leftedge=\LeftEdge, leftedgedistance=\LeftEdgeDistance, rightedge=\RightEdge, rightedgedistance=\RightEdgeDistance, top=\Top, topdistance=\TopDistance, bottom=\Bottom, bottomdistance=\BottomDistance ] % PAGE TEST \startreusableMPgraphic{TestPage} StartPage; path p; fill Page withcolor .95white; % backspace and topspace p:= ulcorner Page -- llcorner Page -- llcorner Page shifted (BackSpace,0) -- ulcorner Page shifted (BackSpace,0) -- cycle; fill p withcolor transparent(1,0.5,green); p:= ulcorner Page -- urcorner Page -- urcorner Page shifted (0,-TopSpace) -- ulcorner Page shifted (0,-TopSpace) -- cycle; fill p withcolor transparent(1,0.5,blue); % a red bottom... p:= (Hstep[LeftEdge], Vstep[Bottom]) -- (Hstep[RightEdge],Vstep[Bottom]) -- (Hstep[RightEdge],Vstep[Bottom]+Vsize[Bottom]) -- (Hstep[LeftEdge], Vstep[Bottom]+Vsize[Bottom]) -- cycle; fill p withcolor transparent(1,0.5,red); % leftmargin and rightmargin p:= (Hstep[LeftMargin],Vstep[Text])-- (Hstep[LeftMargin] + Hsize[LeftMargin],Vstep[Text]) -- (Hstep[LeftMargin] + Hsize[LeftMargin],Vstep[Text]+Vsize[Text])-- (Hstep[LeftMargin],Vstep[Text]+Vsize[Text])-- cycle; draw p withpen pencircle scaled .5mm withcolor blue dashed evenly; p:= (Hstep[RightMargin], Vstep[Text])-- (Hstep[RightMargin] + Hsize[RightMargin],Vstep[Text]) -- (Hstep[RightMargin] + Hsize[RightMargin],Vstep[Text]+Vsize[Text])-- (Hstep[RightMargin], Vstep[Text]+Vsize[Text])-- cycle; draw p withpen pencircle scaled .5mm withcolor blue dashed evenly; % leftedge and rightedge p:= (Hstep[LeftEdge],Vstep[Text])-- (Hstep[LeftEdge] + Hsize[LeftEdge],Vstep[Text]) -- (Hstep[LeftEdge] + Hsize[LeftEdge],Vstep[Text]+Vsize[Text])-- (Hstep[LeftEdge],Vstep[Text]+Vsize[Text])-- cycle; draw p withpen pencircle scaled .5mm withcolor red dashed evenly; p:= (Hstep[RightEdge], Vstep[Text])-- (Hstep[RightEdge] + Hsize[RightEdge],Vstep[Text]) -- (Hstep[RightEdge] + Hsize[RightEdge],Vstep[Text]+Vsize[Text])-- (Hstep[RightEdge], Vstep[Text]+Vsize[Text])-- cycle; draw p withpen pencircle scaled .5mm withcolor red dashed evenly; % let's draw the header (notice that Vsize[Header] and HeaderHeight %are the same!) p:= (BackSpace, Vstep[Header]) -- (BackSpace+MakeupWidth, Vstep[Header]) -- (BackSpace+MakeupWidth, Vstep[Header]+Vsize[Header]) -- (BackSpace, Vstep[Header]+HeaderHeight) -- cycle ; draw p withpen pencircle scaled .5mm withcolor blue dashed evenly; % and now for the footer p:= (BackSpace, Vstep[Footer]) -- (BackSpace+MakeupWidth, Vstep[Footer]) -- (BackSpace+MakeupWidth, Vstep[Footer]+FooterHeight) -- (BackSpace, Vstep[Footer]+FooterHeight) -- cycle ; draw p withpen pencircle scaled .5mm withcolor blue dashed evenly; % And now for something completely different :) drawoptions (withcolor transparent (1,0.9,yellow) withpen pencircle scaled .3mm); draw Field [Text][Top]; draw Field [Text][Header]; draw Field [Text][Text]; draw Field [Text][Footer]; % Field[][] = Area[][] shifted Location[][] draw Area [Text][Bottom] shifted Location [Text][Bottom]; % needed, since LeftMargin+LeftMarginDistance > BackSpace setbounds currentpicture to boundingbox Page; \stopreusableMPgraphic \startbuffer[TestPage] \reuseMPgraphic{TestPage} \stopbuffer \startMPpage StartPage ; \stopMPpage % -Mensaje original- De: [EMAIL
[NTG-context] s-pre-61
Hans et al, OK, s-pre-61 looks nice and the source is not too long. It looks like a good place to start. So, I tried: Texexec --pdf --mode=demo s-pre-61 I got: (./type-spe.tex) (./type-exa.tex) (./type-akb.tex) (./type-ghz.tex)"makemf" --ve rbose "ec-lt55483" "hbf2gf" -q -g "ec-lt55483" 300 maketfm: No creation rule for font "ec-lt55483". ! Font \*mainface12ptsstf*:=ec-lt55483 at 12.0pt not loadable: Metric (TFM) fil e not found. \let \xxdododefinefont ... {#4}\newfontidentifier \let \localrelativefontsize \de... \fontstrategy ...me \fontclass #2#3#4#5\endcsname \tryingfontfalse \fi ...yle \fontalternative \fontsize \fi \iftryingfont \fontstr... \synchronizefont ...strategy \the \fontstrategies \relax \fi \iftryingfont \... \getvalue [EMAIL PROTECTED]@ \fontstyle } \edef \fontstyle {\fontstyle }\if... ... l.20 \setupbodyfont[mainface,ss,18pt] ? Now, I know this is related to a font, so I looked in the source and found: \usetypescriptfile[type-ghz] \definetypeface[mainface][ss][sans][optima-nova][default][encoding=\defaulte ncoding] \setupbodyfont[mainface,ss,18pt] \setupinterlinespace[line=3.25ex] Since I am trying to learn Context in some depth this go round, I'd like to start by getting this font installed, if possible. What's the easiest way to get this done? ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Override starttyping environment
Hans et al, I have in my preamble: \definetyping[matlab] \setuptyping[matlab] [before={\startframedtext[width=\makeupwidth, background=screen, backgroundscreen=0.9]}, after={\stopframedtext}, color=darkred] Later in my document, I tried to center one of these environments: \startalignment[middle] \switchtobodyfont[big] \startmatlab y = x.^2 -2*x - 3 \stopmatlab \stopalignment But it comes out left justified, not centered. Any ideas how I can center one of these environments, one time only? ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context