Re: [NTG-context] 3. Re: \MPpos, pxy, initialize_box(), oh, my! (Hongwen Qiu)

2010-06-06 Thread Adam Fuller
} \setMPpositiongraphic{pos1}{mpos:par}{self=pos1} \stoppositionoverlay \defineoverlay[mylayer][\positionoverlay{testing_paragraph_outline}] \setupbackgrounds[page][background=mylayer] \starttext \fpos{pos1}Something special.\tpos{pos1} \stoptext On 6/06/2010 12:34 a.m., ntg-context-requ...@ntg.nl wrote: Date: Sat

[NTG-context] Lost document background

2010-05-24 Thread Wolfgang Schuster
but with 'doublesided=empty' no background is shown. I spend a few hours to find the reason for this and i was able to produce a shorter example: \defineoverlay[test][\tfd text] \setupbackgrounds[page][background=test,state=repeat] \starttext text\page\page[blank]\null\page %\chardef\pageornamentstate

Re: [NTG-context] Lost document background

2010-05-24 Thread Wolfgang Schuster
=yes' the background is visible but with 'doublesided=empty' no background is shown. I spend a few hours to find the reason for this and i was able to produce a shorter example: \defineoverlay[test][\tfd text] \setupbackgrounds[page][background=test,state=repeat] \starttext text\page\page

Re: [NTG-context] How to place a (right) brace in a TABLE?

2010-05-20 Thread Wolfgang Schuster
{$\left.\vrule height .5\vsize depth .5\vsize width 0pt\relax\right\}$}% \leftaligned{\hbox to .5\wd\scratchbox{\hss\raise\dp\scratchbox\box\scratchbox}}} \defineoverlay[linkeklammer] [\linkeklammer] \defineoverlay[rechteklammer][\rechteklammer] \starttext \bTABLE \bTR[align={middle,middle

Re: [NTG-context] How to place a (right) brace in a TABLE?

2010-05-20 Thread Vladimir Lomov
}}} \def\rechteklammer {\setbox\scratchbox\hbox{$\left.\vrule height .5\vsize depth .5\vsize width 0pt\relax\right\}$}% \leftaligned{\hbox to .5\wd\scratchbox{\hss\raise\dp\scratchbox\box\scratchbox}}} \defineoverlay[linkeklammer] [\linkeklammer] \defineoverlay[rechteklammer

[NTG-context] \framed[location=top] and slanted tex gyre bonum

2010-04-05 Thread Vianney le Clément
or am I doing something wrong? Vianney \showstruts \usemodule[simplefonts] \setmainfont[Tex Gyre Bonum] \setupframed [frame=none, offset=0pt, location=top] \defineoverlay[bg][] \starttext \strut First line\par \strut Second line\par \strut Third line\par \blank \strut First line\par \framed

[NTG-context] Something is wrong with backgrounds

2010-03-04 Thread Andreas Harder
Hi all, if I compile the following example with the actual beta, the circle is set in foreground … even if the background is not set. \startuseMPgraphic{test} fill fullcircle scaled 5cm withcolor red; \stopuseMPgraphic \defineoverlay[test]{\useMPgraphic{test}} % \setupbackgrounds[page

Re: [NTG-context] Something is wrong with backgrounds

2010-03-04 Thread Wolfgang Schuster
Am 04.03.10 15:17, schrieb Andreas Harder: Hi all, if I compile the following example with the actual beta, the circle is set in foreground … even if the background is not set. \startuseMPgraphic{test} fill fullcircle scaled 5cm withcolor red; \stopuseMPgraphic \defineoverlay[test

Re: [NTG-context] Something is wrong with backgrounds

2010-03-04 Thread Andreas Harder
withcolor red; \stopuseMPgraphic \defineoverlay[test]{\useMPgraphic{test}} \defineoverlay[...][…] :) Thanks Wolfgang! Andreas ___ If your question is of interest to others as well, please add an entry to the Wiki

Re: [NTG-context] Magazine imposition.

2010-02-19 Thread Wolfgang Schuster
out well \defineoverlay[realdirty][{\rotate[rotation=180]{\foregroundbox}}] \framed{\externalfigure[cow.pdf][background=realdirty]} \externalfigure[cow][orientation=180] Wolfgang ___ If your question

Re: [NTG-context] Magazine imposition.

2010-02-18 Thread Hans Hagen
On 18-2-2010 14:35, Willi Egger wrote: So, that is a short cut! I did not know weather the magazine was in context or not. Anyway is there a possibility to rotate pages in a already typeset pdf? externalfigure has no rotation key, and this does not work out well \defineoverlay[realdirty

[NTG-context] Flowchart module-- height proportional to text

2010-02-18 Thread Xan
} \stopFLOWcell \startFLOWcell \name {fixistes} \location{2,1} \text {Teories fixistes: Els continents i els oceans han ocupat les mateixes posicions des de l'origen de la Terra.} \stopFLOWcell \stopFLOWchart \defineoverlay[FunnyFrame][\useMPgraphic{FunnyFrame}] \defineframedtext[FunnyText

[NTG-context] Metafun does not change color

2010-02-18 Thread Xan
} \location{2,1} \text {Altres suposaven que la Terra s'ha anat arrugat progressivament en refredar-se i que els relleus són arrugues provocades per l'escorça en contracció.} \shape{decision} \stopFLOWcell \stopFLOWchart \defineoverlay[FunnyFrame][\useMPgraphic{FunnyFrame}] \defineframedtext

Re: [NTG-context] showlayoutcomponents: amazing!

2010-02-15 Thread Steffen Wolfrum
}]% --- %\defineoverlay[Info][{\getbuffer[info]}] % ... \protect \showlayoutcomponents \starttext Test. \stoptext Steffen ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context

[NTG-context] interlineskip problem (mkiv)

2010-02-12 Thread Peter Rolf
\defineoverlay[foo][\uniqueMPgraphic{foo}] \starttext \framed[offset=overlay,framecolor=red]\bgroup \vbox\bgroup\normaloffinterlineskip \setupframed[background=foo,offset=overlay,height=10mm,width=60mm,rulethickness=1pt]% no problems without mp background \framed{unwanted interlineskip

[NTG-context] overlay at given position: help needed

2010-02-04 Thread Peter Münster
[BGimg][top=0, left=0, width=2cm, #1]% \start \newdimen\TopOffset \newdimen\LeftOffset \setupframedtexts[before=, after=] \defineoverlay[myBG][{% \TopOffset=\overlayheight \LeftOffset=\overlaywidth \TopOffset=\BGimgtop\TopOffset \LeftOffset=\BGimgleft\LeftOffset

Re: [NTG-context] ConTeXt swallows text

2010-01-19 Thread luigi scarso
://sopos.org/olli/armut-fail.pdf If I understand well, you want an automatic solution instead of a manual solution like this one \defineoverlay [foregraphics] [{\externalfigure[cow][width=5.8\textwidth,lines=41]}] \defineoverlay [backgraphics] [{\externalfigure[mill][width=2\textwidth,lines=20

Re: [NTG-context] last chapter number in Metapost

2010-01-18 Thread Andreas Harder
:= \somestructureheadnumber[chapter][last]; % current := 2 ; % last:= 6 ; skip:= TextHeight * (current-1)/last ; StartPage ; fill fullcircle scaled 3cm shifted (skip,skip) ; StopPage ; \stopuseMPgraphic \defineoverlay[test][\useMPgraphic{test}] \setupbackgrounds[page

Re: [NTG-context] Using frames with metapost background in metapost

2010-01-11 Thread Hans Hagen
On 11-1-2010 3:07, Aditya Mahajan wrote: \startmode[error] \defineoverlay[MP:background] [\useMPgraphic{MP:backgound}] \startuseMPgraphic{MP:backgound} draw OverlayBox randomized 9pt withcolor blue; \stopuseMPgraphic \stopmode \defineframed[boxframed][frame=on,background

[NTG-context] Using frames with metapost background in metapost

2010-01-10 Thread Aditya Mahajan
Hi, I want to use a frame with metapost background to highlight some text inside metapost. But, the best that I can do is get metapost to typeset the code for the background, rather than execute it! Any ideas on a work around (in MkIV). \startmode[error] \defineoverlay[MP:background

Re: [NTG-context] Natural Tables Cell Borders

2010-01-06 Thread Wolfgang Schuster
RightRuleThickness ; setbounds currentpicture to OverlayBox ; \stopuseMPgraphic \defineoverlay [tableborder] [%\edef\topframeparameter {\framedparameter\c!topframe }% %\edef\bottomframeparameter{\framedparameter\c!bottomframe}% %\edef\leftframeparameter {\framedparameter\c!leftframe

Re: [NTG-context] Natural Tables Cell Borders

2010-01-06 Thread Curiouslearn
TopRuleThickness    ; draw lb--rb withpen pencircle scaled BottomRuleThickness ; draw lb--lt withpen pencircle scaled LeftRuleThickness   ; draw rb--rt withpen pencircle scaled RightRuleThickness  ; setbounds currentpicture to OverlayBox ; \stopuseMPgraphic \defineoverlay  [tableborder

[NTG-context] \framedparameter

2010-01-04 Thread Wolfgang Schuster
\the\dimexpr\framedparameter{rightrulethickness}\relax ; setbounds currentpicture to OverlayBox ; \stopuseMPgraphic \defineoverlay[frameborder][\useMPgraphic{frameborder}] \defineframed [mpframed] [ toprulethickness=\framedparameter{rulethickness}, bottomrulethickness=\framedparameter{rulethickness

[NTG-context] bleeding columnsetarea

2009-12-08 Thread Oliver Heins
\defineoverlay[contrast][\useMPgraphic{contrast}] \showframe \starttext \definecolumnset[mycolumnset][n=2] \definecolumnsetarea [einschub][left] [x=1,y=1,nx=4,ny=20,page=2, background=contrast,align={hi,right},state=start] \startcolumnset[mycolumnset] \dorecurse{15}{\input tufte\par

Re: [NTG-context] Dashed and dotted lines

2009-10-30 Thread Wolfgang Schuster
currentpicture to OverlayBox ; \stopuniqueMPgraphic \defineoverlay[dottedline:top] [\uniqueMPgraphic{dottedline:top}] \defineoverlay[dashedline:bottom][\uniqueMPgraphic {dashedline:bottom}] \defineoverlay[dashedline:left] [\uniqueMPgraphic{dashedline:left}] \defineoverlay

[NTG-context] How do you position/move a MPgraphic?

2009-10-25 Thread Daniel Bundzik
(OverlayWidth+.5pt,OverlayHeight+.5pt) ; \stopuseMPgraphic \startuseMPgraphic{somecolorcircle} % How do you move somecolorcircle. I want this to be below sometext colorcircle(2cm,white,.625red,\MPcolor{Orange}) ; \stopuseMPgraphic \startTEXpage \defineoverlay[somebackground][\useMPgraphic

Re: [NTG-context] How do you position/move a MPgraphic?

2009-10-25 Thread Taco Hoekwater
Daniel Bundzik wrote: Hi! How do you position/move a MPgraphic? You move the graphic inside the overlay: \defineoverlay [somecolorcircle] [\vbox{\kern 5cm\useMPgraphic{somecolorcircle}}] Best wishes, Taco

[NTG-context] Printing partly bolded verbatim

2009-10-25 Thread Gerben Wierda
=line,bodyfont=9pt] \setuppapersize[A4,landscape][a4,landscape] \setuptyping[IfSQ][palet=colorpretty] \setuplayout [leftmargin=20mm, leftmargindistance=5mm, footer=0mm, header=0mm, rightmargin=0mm] \definelayer[header][width=\paperwidth,height=\paperheight] \defineoverlay[ifsqoverlay

Re: [NTG-context] Simplest slides

2009-10-19 Thread Aditya Mahajan
black ; StopPage ; \stopuseMPgraphic \defineoverlay [simpleslides:background:horizontal] [\useMPgraphic{simpleslides:MP:horizontal}] \defineoverlay [simpleslides:background:vertical] [\useMPgraphic{simpleslides:MP:horizontal}] \defineoverlay [simpleslides:background:title

Re: [NTG-context] Metafun problem

2009-09-26 Thread luigi scarso
OverlayHeight; fill p withcolor .625yellow; draw p withcolor .625red; \stopuniqueMPgraphic \starttext Hello, World! \defineoverlay[my graphic][\uniqueMPgraphic{name}] \button[background=my graphic,frame=off]{Go Home}[firstpage] \stoptext No button shows up. Am I missing

Re: [NTG-context] Metafun problem

2009-09-26 Thread Peter Rolf
withcolor .625red; \stopuniqueMPgraphic \starttext Hello, World! \defineoverlay[my graphic][\uniqueMPgraphic{name}] \button[background=my graphic,frame=off]{Go Home}[firstpage] \stoptext No button shows up. Am I missing something? A \button is an interactive element, so you need to add

[NTG-context] Metafun problem

2009-09-25 Thread David Arnold
.625red; \stopuniqueMPgraphic \starttext Hello, World! \defineoverlay[my graphic][\uniqueMPgraphic{name}] \button[background=my graphic,frame=off]{Go Home}[firstpage] \stoptext No button shows up. Am I missing something? David

[NTG-context] overprint bug (mkiv)

2009-09-16 Thread Peter Rolf
the \GSknockout is even missing). Very obscure. Have fun, Peter \setupcolors[state=start] \setuppagenumber[state=stop] \pdfcompresslevel=0 \pdfobjcompresslevel=0 \startuniqueMPgraphic{FOO} fill OverlayBox withcolor lightgray; \stopuniqueMPgraphic \defineoverlay[FOO][\uniqueMPgraphic{FOO

Re: [NTG-context] Round-corner textbox with shadow

2009-08-16 Thread Hans Hagen
withcolor .8white ; draw OverlayBox withcolor black ; setbounds currentpicture to OverlayBox ; \stopuniqueMPgraphic \defineoverlay [shadow] [\uniqueMPgraphic{shadow}] \setupcolors[state=start] \startframedtext[ height=fit, width=\textwidth, location=inmargin , align=low, frame

[NTG-context] Round-corner textbox with shadow

2009-08-15 Thread Tom
.8white ; draw OverlayBox withcolor black ; setbounds currentpicture to OverlayBox ; \stopuniqueMPgraphic \defineoverlay [shadow] [\uniqueMPgraphic{shadow}] \setupcolors[state=start] \startframedtext[ height=fit, width=\textwidth, location=inmargin , align=low, frame=on, % framecolor=black

Re: [NTG-context] Round-corner textbox with shadow

2009-08-15 Thread Peter Rolf
; \stopuniqueMPgraphic \defineoverlay [shadow] [\uniqueMPgraphic{shadow}]   \setupcolors[state=start] \startframedtext[  height=fit,  width=\textwidth,  location=inmargin ,  align=low,  frame=on, % framecolor=black,  framecorner=round,  frameradius=.0625 in,  background

Re: [NTG-context] add layer to page

2009-06-28 Thread Hans Hagen
, so it already contains several layers. I want something on top of all that, and I seem to remember that there was some option to say typeset the current layers + this additional one. Can somebody help my memory? \defineoverlay[x][a] \defineoverlay[x][b] \setupbackgrounds ... [background

Re: [NTG-context] add layer to page

2009-06-28 Thread luigi scarso
? \defineoverlay[x][a] \defineoverlay[x][b] \setupbackgrounds ... [background={a,foreground,b} b is on the top of foreground foreground is on the top of a a is the base layer -- luigi ___ If your question is of interest to others

Re: [NTG-context] add layer to page

2009-06-28 Thread Thomas A. Schmitz
On Jun 28, 2009, at 12:30 PM, Hans Hagen wrote: \defineoverlay[x][a] \defineoverlay[x][b] \setupbackgrounds ... [background={a,foreground,b} etc .. in your module you can just add a few more in the chain (unknown ones are ignored) Thanks, Hans and Luigi, that was very fast! Yes

Re: [NTG-context] add layer to page

2009-06-28 Thread Aditya Mahajan
/20060115.080349.8efe83be.en.html This works with MkII but not MkIV. For example, \usemodule[simpleslides][style=BigNumber] \defineoverlay [test] [{\framed[align={middle,middle}, width=\overlaywidth, height=\overlayheight]{TEST}}] \starttext \SlideTitle {ABC} \input tufte

[NTG-context] Solution. Only one problem left ($ in file name)

2009-06-28 Thread Gerben Wierda
, footer=0mm, header=0mm, rightmargin=0mm] \definelayer[header][width=\paperwidth,height=\paperheight] \defineoverlay[ifsqoverlay][\overlayfigure{IfSQ-overlay.pdf}] \setupbackgrounds[page] [setups={header:margin},background={header,ifsqoverlay}] \def\typeSQLfile#1{% \startsetups

[NTG-context] Hod do I get the page number in the left margin (not in the footer)?

2009-06-26 Thread Gerben Wierda
at it, if I want a heading in the left margin as well, but I want it 90 degrees rotated, how do I do that? G G 2009/6/25, Gerben Wierda gerben.wie...@rna.nl: Question. With \definetyping[SQL][option=color,numbering=line,bodyfont=9pt] \defineoverlay[ifsqoverlay][\overlayfigure{IfSQ

Re: [NTG-context] Hod do I get the page number in the left margin (not in the footer)?

2009-06-26 Thread Wolfgang Schuster
, width=\leftmarginwidth, height=\textheight, align={middle,middle}] {My document\hfil\pagenumber\hfil My name} \stopsetups \defineoverlay[header:margin][\setups{header:margin}] \setupbackgrounds[text][leftmargin][background={header:margin}] \starttext ... \stoptext Wolfgang

Re: [NTG-context] Why no page numbering here?

2009-06-26 Thread Carlos Breton Besnier
: Question. With \definetyping[SQL][option=color,numbering=line,bodyfont=9pt] \defineoverlay[ifsqoverlay][\overlayfigure{IfSQ-overlay.pdf}] \setuplayout[leftmargin=10mm,rightmargin=0mm,footer=0mm,header=5mm] \setuppapersize[A4,landscape][a4,landscape] \setupbackgrounds[page][background

Re: [NTG-context] Hod do I get the page number in the left margin (not in the footer)?

2009-06-26 Thread Gerben Wierda
, orientation=90, width=\leftmarginwidth, height=\textheight, align={middle,middle}] {My document\hfil\pagenumber\hfil My name} \stopsetups \defineoverlay[header:margin][\setups{header:margin}] \setupbackgrounds[text][leftmargin][background={header:margin}] \starttext ... \stoptext

Re: [NTG-context] Simpleslides question

2009-06-26 Thread Aditya Mahajan
location StopPage ; \stopuseMPgraphic and then \defineoverlay [simpleslides:background:ornament] [\useMPgraphic{simpleslides:MP:ornament}] Aditya ___ If your question is of interest to others as well, please add

Re: [NTG-context] Why no page numbering here?

2009-06-25 Thread Carlos Breton Besnier
I think because the footer is 0 mm. 2009/6/25, Gerben Wierda gerben.wie...@rna.nl: Question. With \definetyping[SQL][option=color,numbering=line,bodyfont=9pt] \defineoverlay[ifsqoverlay][\overlayfigure{IfSQ-overlay.pdf}] \setuplayout[leftmargin=10mm,rightmargin=0mm,footer=0mm,header=5mm

Re: [NTG-context] Why no page numbering here?

2009-06-25 Thread Gerben Wierda
,bodyfont=9pt] \defineoverlay[ifsqoverlay][\overlayfigure{IfSQ-overlay.pdf}] \setuplayout[leftmargin=10mm,rightmargin=0mm,footer=0mm,header=5mm] \setuppapersize[A4,landscape][a4,landscape] \setupbackgrounds[page][background=ifsqoverlay] \setuptyping[SQL][palet=colorpretty] \setuppagenumbering[location

Re: [NTG-context] Simpleslides question 2

2009-06-24 Thread Thomas A. Schmitz
it; replace the lines \defineoverlay [simpleslides:background:horizontal] [\useMPgraphic{simpleslides:MP:horizontal}] with \defineoverlay [simpleslides:background:horizontal] [{\externalfigure[your_figure][width=...]}] Last semester, for the presentations in my class, I had defined

[NTG-context] Why no page numbering here?

2009-06-24 Thread Gerben Wierda
Question. With \definetyping[SQL][option=color,numbering=line,bodyfont=9pt] \defineoverlay[ifsqoverlay][\overlayfigure{IfSQ-overlay.pdf}] \setuplayout[leftmargin=10mm,rightmargin=0mm,footer=0mm,header=5mm] \setuppapersize[A4,landscape][a4,landscape] \setupbackgrounds[page][background=ifsqoverlay

[NTG-context] Printing source code intelligently with ConTeXt (with overlay)

2009-06-06 Thread Gerben Wierda
: \defineoverlay[myoverlay][\overlayfigure{myfile.pdf}] \setupbackgrounds[page][overlay=myoverlay] if it has to be on top: \setupbackgrounds[page][overlay={foreground,myoverlay}] ___ If your question is of interest

Re: [NTG-context] Printing source code intelligently with ConTeXt (with overlay)

2009-06-06 Thread Gerben Wierda
): \defineoverlay[ifsqoverlay][\overlayfigure{IfSQ-overlay.pdf}] \starttext \setupbackgrounds[page][overlay=ifsqoverlay] \typefile[SQL][]{details.pls} \stoptext And the start of file details.pls is: PACKAGE BODY DETAILS IS /* Let op: wanneer er foutmeldingen ontstaan als Invalid cursor en

[NTG-context] Interaction between overlay and typing?

2009-06-06 Thread Gerben Wierda
I'm almost there: \definetyping[SQL][option=color,numbering=line] \defineoverlay[ifsqoverlay][\overlayfigure{IfSQ-overlay.pdf}] \starttext \setuppapersize[A4,landscape][a4,landscape] \setupbackgrounds[page][overlay=ifsqoverlay] \typefile[SQL][]{details.pls} \stoptext Gets me the landscape, A4

Re: [NTG-context] Interaction between overlay and typing?

2009-06-06 Thread Wolfgang Schuster
Am 06.06.2009 um 16:59 schrieb Gerben Wierda: I'm almost there: \setupcolors[state=start] \definetyping[SQL][option=color,numbering=line] %% linenumbering did not work in MkIV method=language \defineoverlay[ifsqoverlay][\overlayfigure{IfSQ-overlay.pdf}] \starttext

Re: [NTG-context] Interaction between overlay and typing?

2009-06-06 Thread Gerben Wierda
] %% linenumbering did not work in MkIV method=language What do you mean? Does this somehow get me good coloration? \defineoverlay[ifsqoverlay][\overlayfigure{IfSQ-overlay.pdf}] \starttext \setuppapersize[A4,landscape][a4,landscape] \setupbackgrounds[page][overlay=ifsqoverlay

Re: [NTG-context] Printen van code met een PDF overlay, makkelijk met ConTeXt?

2009-06-04 Thread Gerben . Wierda
oplossing? De regelnummers e.d. kan ik eventueel met het pr programma genereren. \defineoverlay[myoverlay][\overlayfigure{myfile.pdf}] \setupbackgrounds[page][overlay=myoverlay] if it has to be on top: \setupbackgrounds[page][overlay={foreground,myoverlay}] Dank. Om het completer te maken

Re: [NTG-context] Printen van code met een PDF overlay, makkelijk met ConTeXt?

2009-06-04 Thread Wolfgang Schuster
programma genereren. \defineoverlay[myoverlay][\overlayfigure{myfile.pdf}] \setupbackgrounds[page][overlay=myoverlay] if it has to be on top: \setupbackgrounds[page][overlay={foreground,myoverlay}] Dank. Om het completer te maken. Stel ik heb een serie ASCII files met broncode. Deze files wil ik

Re: [NTG-context] Printen van code met een PDF overlay, makkelijk met ConTeXt?

2009-05-29 Thread Hans Hagen
oplossing? De regelnummers e.d. kan ik eventueel met het pr programma genereren. \defineoverlay[myoverlay][\overlayfigure{myfile.pdf}] \setupbackgrounds[page][overlay=myoverlay] if it has to be on top: \setupbackgrounds[page][overlay={foreground,myoverlay

Re: [NTG-context] define an incremental personal bullet of item

2009-05-26 Thread Hans Hagen
in unicode table. (For example, the command \startitemize[n] displays next number as a bullet when the command \item is issued. ) Is there a way to do that? \starttext \startuniqueMPgraphic{circle} draw fullcircle xsized(bbwidth (OverlayBox enlarged 2pt)) ; \stopuniqueMPgraphic \defineoverlay

Re: [NTG-context] Applying effects to figures

2009-05-25 Thread Wolfgang Schuster
screenshots changed in next document version. Is think there is a lot of circumstances when some automatic effect can be needed. \startuseMPgraphic{shadow} fill OverlayBox shifted (5pt,-5pt) withcolor .7white ; setbounds currentpicture to OverlayBox ; \stopuseMPgraphic \defineoverlay[shadow

Re: [NTG-context] MP newbie question

2009-05-19 Thread Alan Stone
% if (\myFrameAlternative) = dashes : draw p dashed evenly scaled 2 ; % elseif (\myFrameAlternative) = dots : elseif \myFrameAlternative = dots : draw p dashed withdots scaled 2 ; else : draw p ; fi ; \stopuniqueMPgraphic \defineoverlay[myGraphic][\uniqueMPgraphic{name}] \starttext

[NTG-context] MP newbie question

2009-05-18 Thread Alan Stone
) ; if \myFrameAlternative = dashes : % if (\myFrameAlternative) = dashes : draw p dashed evenly scaled 2 ; % elseif (\myFrameAlternative) = dots : elseif \myFrameAlternative = dots : draw p dashed withdots scaled 2 ; else : draw p ; fi ; \stopuniqueMPgraphic \defineoverlay[myGraphic][\uniqueMPgraphic{name

Re: [NTG-context] MP newbie question

2009-05-18 Thread Aditya Mahajan
= dashes : % if (\myFrameAlternative) = dashes : draw p dashed evenly scaled 2 ; % elseif (\myFrameAlternative) = dots : elseif \myFrameAlternative = dots : draw p dashed withdots scaled 2 ; else : draw p ; fi ; \stopuniqueMPgraphic \defineoverlay[myGraphic][\uniqueMPgraphic{name}] \starttext

Re: [NTG-context] The ultimate (?) float problem

2009-05-14 Thread Piotr Kopszak
of layers so that the text inside them is set on the grid. Here is my initial setup for a single page. \definelayer [figure][width=\overlaywidth,height=\overlayheight] \defineoverlay[figure][{\directsetup{figure}\tightlayer[figure]}] \setupcolors[state=start] \setupbackgrounds[page][background

Re: [NTG-context] The ultimate (?) float problem

2009-05-12 Thread Piotr Kopszak
Only to show better how I would like text and images placed on the page. \definelayer [figure][width=\overlaywidth,height=\overlayheight] \defineoverlay[figure][{\directsetup{figure}\tightlayer[figure]}] \setupcolors[state=start] \setupbackgrounds[page][background=figure] \starttext

Re: [NTG-context] The ultimate (?) float problem

2009-05-12 Thread luigi scarso
On Tue, May 12, 2009 at 1:28 PM, Piotr Kopszak kops...@gmail.com wrote: Only to show better how I would like text and images placed on the page. \definelayer [figure][width=\overlaywidth,height=\overlayheight] \defineoverlay[figure][{\directsetup{figure}\tightlayer[figure]}] \setupcolors

Re: [NTG-context] The ultimate (?) float problem

2009-05-12 Thread Piotr Kopszak
...@gmail.com wrote: Only to show better how I would like text and images placed on the page. \definelayer  [figure][width=\overlaywidth,height=\overlayheight] \defineoverlay[figure][{\directsetup{figure}\tightlayer[figure]}] \setupcolors[state=start] \setupbackgrounds[page][background=figure

Re: [NTG-context] how to make a coverpage?

2009-04-08 Thread Wolfgang Schuster
}standardmakeup -- nothing quite does it. Can somebody please show me a simple example of how to create a book cover with a picture covering the entire page and a title text on it? \starttext \defineoverlay[coverimage][\ifnum\realpageno=\plusone \overlayfigure{cover}\fi] \setupbackgrounds[page

Re: [NTG-context] Strange interaction between textcolor and backgrounds in mkii

2009-03-20 Thread Hans Hagen
] \setupcolors[state=start] \definecolor [simpleslidestextcolor][s=0] \setupcolors[textcolor=simpleslidestextcolor] \startuseMPgraphic{simpleslides:MP:horizontal} StartPage ; fill Page withcolor 0.5white ; StopPage ; \stopuseMPgraphic \defineoverlay [simpleslides:background:title] [\useMPgraphic

Re: [NTG-context] Strange interaction between textcolor and backgrounds in mkii

2009-03-20 Thread Aditya Mahajan
example \setuppapersize[S6][S6] \setupcolors[state=start] \definecolor [simpleslidestextcolor][s=0] \setupcolors[textcolor=simpleslidestextcolor] \startuseMPgraphic{simpleslides:MP:horizontal} StartPage ; fill Page withcolor 0.5white ; StopPage ; \stopuseMPgraphic \defineoverlay

[NTG-context] Strange interaction between textcolor and backgrounds in mkii

2009-03-19 Thread Aditya Mahajan
] \definecolor [simpleslidestextcolor][s=0] \setupcolors[textcolor=simpleslidestextcolor] \startuseMPgraphic{simpleslides:MP:horizontal} StartPage ; fill Page withcolor 0.5white ; StopPage ; \stopuseMPgraphic \defineoverlay [simpleslides:background:title] [\useMPgraphic{simpleslides:MP:horizontal

Re: [NTG-context] modife the style of taspresent

2009-03-08 Thread Bill Long
to do it by modify the sytelefile. for example bellow style: I try to modify \defineoverlay [lecbackground] [\useMPgraphic{horizontal}] to something like \defineoverlay [lecbackground] [\externalfigure[figure]] [{\externalfigure[figure]}] but it doesn't work. any idea? I need

[NTG-context] modife the style of taspresent

2009-03-03 Thread Bill Long
these backgrounds as overlays: \defineoverlay [lecbackground] [\useMPgraphic{horizontal}] \defineoverlay [picbackground] [\useMPgraphic{vertical}] %D We define the footer \setupfooter[color=c,style={\switchtobodyfont[10pt]},strut=yes] \setupfootertexts[{\framed[frame=off,height=.45cm,width

Re: [NTG-context] modife the style of taspresent

2009-03-03 Thread Wolfgang Schuster
Am 03.03.2009 um 11:18 schrieb Bill Long: Dear All, anybody can help me on this problem? As most of the ppt file's background are graphics, but I don't know how to do it by modify the sytelefile. for example bellow style: I try to modify \defineoverlay [lecbackground] [\useMPgraphic

Re: [NTG-context] Page layout : Need help to begin

2009-01-29 Thread Wolfgang Schuster
. Ok, so I was not so wrong. But my main concern is about the background that has to take the full height and half width. In addition, if the background may be larger than the page it would nice in case of printing (so, no margin at all) \setupcolors[state=start] \defineoverlay [graybar

Re: [NTG-context] Framing the text area of a part page w/ tikz/pgf.

2009-01-14 Thread Bart C. Wise
tried to find a solution using tikz. So I can find a solution without tikz, but is there one that will work with tikz? How about this? \setupexternalfigures[location={local,global,default}] \setupcolors[state=start] \definecolor[partwhite][s=1,t=.8,a=1] \defineoverlay[partimage

[NTG-context] FunnyFrame in an enumeration.

2008-12-23 Thread Fabrice
red) ; draw (3o,h)--(0,h)--(0,0)--(w,0)--(w,h)--(xpart urcorner p+o,h) ; draw boundingbox p enlarged(o,0) withcolor red ; setbounds currentpicture to unitsquare xyscaled(w,h) ; \stopuseMPgraphic} \defineoverlay[FunnyFrame][\useMPgraphic{FunnyFrame}] \defineframedtext[FunnyText][frame=off

[NTG-context] error when using uniqueMPgraphics

2008-12-22 Thread Lars Huttar
using \defineoverlay (again, we have 18), and then use them in table cells using statements like \setupTABLE[c][first][background={LRtb}] Empirically, this seems to end up using one mpgraphic per table cell, hence our thousands of mpgraphics. I don't know why a new mpgraphic would be created

Re: [NTG-context] error when using uniqueMPgraphics

2008-12-22 Thread Lars Huttar
of these), associate them with overlays using \defineoverlay (again, we have 18), and then use them in table cells using statements like \setupTABLE[c][first][background={LRtb}] Empirically, this seems to end up using one mpgraphic per table cell, hence our thousands of mpgraphics. I don't

Re: [NTG-context] error when using uniqueMPgraphics

2008-12-22 Thread Wolfgang Schuster
rightenlarged Middle ; setbounds currentpicture to OverlayBox ; \stopuniqueMPgraphic ... % 0 double sides \defineoverlay[lrtb][\uniqueMPgraphic{table:frame:lrtb}] % 1 double side \defineoverlay[Lrtb][\uniqueMPgraphic{table:frame:Lrtb}] \defineoverlay[lRtb][\uniqueMPgraphic{table:frame:lRtb

Re: [NTG-context] distributed / parallel TeX?

2008-12-16 Thread Hans Hagen
borders on tables, which are not natively supported by the ConTeXt table model. i sent jelle the patched files The advice I received said to define each mpgraphic using \startuseMPgraphic (we have about 18 of these), associate them with overlays using \defineoverlay (again, we have 18), and then use

Re: [NTG-context] distributed / parallel TeX?

2008-12-16 Thread Lars Huttar
with overlays using \defineoverlay (again, we have 18), and then use them in table cells using statements like \setupTABLE[c][first][background={LRtb}] Empirically, this seems to end up using one mpgraphic per table cell, hence our thousands of mpgraphics. I don't know why a new mpgraphic would

Re: [NTG-context] distributed / parallel TeX?

2008-12-16 Thread Mojca Miklavec
have about 18 of these), associate them with overlays using \defineoverlay (again, we have 18), and then use them in table cells using statements like \setupTABLE[c][first][background={LRtb}] In that case I would suggest you to use vrules/hrules to achieve the same. As long as you don't

Re: [NTG-context] how to get thick and thin borders working in tables (ConTeXt)

2008-12-11 Thread Lars Huttar
currentpicture to OverlayBox ; \stopuseMPgraphic \defineoverlay[table:frame:all][\useMPgraphic{table:frame:all}] \defineoverlay[table:frame:leftdouble][\useMPgraphic{table:frame:leftdouble}] \starttext \startbuffer \bTABLE[frame=off,offset=2ex] \bTR \bTD One \eTD \bTD Two \eTD

[NTG-context] problem scaling big png images

2008-11-13 Thread Mojca Miklavec
files (temporary location): http://www.mars2008.si/context/ \defineoverlay [MyGraphic] [{\externalfigure[graphic][heigh=\paperheight]}] \setupbackgrounds[page][background=MyGraphic] \starttext whatever \stoptext + a big png graphic. When I decrease resolution, the white border around graphic

Re: [NTG-context] problem scaling big png images

2008-11-13 Thread Wolfgang Schuster
with several cm white border when it should occupy the whole page. Here are the testing files (temporary location): http://www.mars2008.si/context/ \defineoverlay [MyGraphic] [{\externalfigure[graphic][heigh=\paperheight

Re: [NTG-context] problem scaling big png images

2008-11-13 Thread Mojca Miklavec
with several cm white border when it should occupy the whole page. Here are the testing files (temporary location): http://www.mars2008.si/context/ \defineoverlay [MyGraphic] [{\externalfigure[graphic][heigh=\paperheight

Re: [NTG-context] problem scaling big png images

2008-11-13 Thread Hans Hagen
page. Here are the testing files (temporary location): http://www.mars2008.si/context/ \defineoverlay [MyGraphic] [{\externalfigure[graphic][heigh=\paperheight]}] \setupbackgrounds[page][background=MyGraphic] \starttext whatever \stoptext + a big png graphic. When I decrease

Re: [NTG-context] problem scaling big png images

2008-11-13 Thread Taco Hoekwater
the whole page. Here are the testing files (temporary location): http://www.mars2008.si/context/ \defineoverlay [MyGraphic] [{\externalfigure[graphic][heigh=\paperheight]}] ^ Missing a 't' here. When I add that, I get a 297mm high

[NTG-context] Color rendering transparency with metapost

2008-10-31 Thread Renaud Aubin
=start] \definecolor[a][r=.57254902,g=.784313725,b=.917647059] \definecolor[b][white] \definecolor[c][darkred] \starttext \defineoverlay[bgoverlay][\uniqueMPgraphic{bg_top_shade}] \setupbackgrounds[page][background=bgoverlay] \startuniqueMPgraphic{bg_top_shade} test_shade(origin

[NTG-context] bug in latest: page backgrounds

2008-10-23 Thread Thomas A. Schmitz
Hi all, for some reason, the latest beta defers the application of a page background to the second page. Example: \setupcolors[state=start] \startuniqueMPgraphic{fill} StartPage ; fill Page withcolor green ; StopPage ; \stopuniqueMPgraphic \defineoverlay [testfill] [\useMPgraphic{fill

Re: [NTG-context] bug in latest: page backgrounds

2008-10-23 Thread luigi scarso
; StopPage ; \stopuniqueMPgraphic \defineoverlay [testfill] [\useMPgraphic{fill}] \setupbackgrounds[page] [background={testfill}] \starttext Hello \page World! \stoptext it works now minimals-beta Linux luigicasa-laptop 2.6.24-21-generic #1 SMP Mon Aug 25 17:32:09 UTC 2008

Re: [NTG-context] rule=on in \columnset?

2008-10-16 Thread luigi scarso
,OverlayHeight) ; draw lrcorner p -- urcorner p ; setbounds currentpicture to p ; \stopuseMPgraphic \defineoverlay[columnrule][\useMPgraphic{columnrule}] \setupcolumnset[example][1,2][background=columnrule] \setupcolumnsetlines[example][2][1][-26] \setupcolumnsetlines[example][2][2][-26

Re: [NTG-context] rule=on in \columnset?

2008-10-16 Thread Jelle Huisman
://archive.contextgarden.net/message/20080305.203901.d1d3eccf.en.html %sample% \definecolumnset[example][n=3,distance=5mm] \startuseMPgraphic{columnrule} path p ; p := unitsquare xyscaled (OverlayWidth+5mm,OverlayHeight) ; draw lrcorner p -- urcorner p ; setbounds currentpicture to p ; \stopuseMPgraphic \defineoverlay

Re: [NTG-context] rule=on in \columnset?

2008-10-16 Thread Wolfgang Schuster
; \stopuseMPgraphic \defineoverlay[columnrule][\useMPgraphic{columnrule}] \setupcolumnset[example][1,2][background=columnrule] \setupcolumnsetlines[example][2][1][-26] \setupcolumnsetlines[example][2][2][-26] \setupcolumnsetlines[example][2][3][-26] \starttext \startcolumnset[example] \dorecurse

Re: [NTG-context] rule=on in \columnset?

2008-10-16 Thread Jelle Huisman
\lineheight\relax) -- urcorner p ; setbounds currentpicture to p ; \stopuseMPgraphic \defineoverlay[columnrule][\useMPgraphic{columnrule}] \setupcolumnset[example][1,2][balance=yes,background=columnrule] \setupcolumnsetlines[example][1][1][-35] \setupcolumnsetlines[example][1][2][-35

Re: [NTG-context] Equivalent of LaTeX \cancel? and Thanks!

2008-10-14 Thread Wolfgang Schuster
. After discovering that 'underline' and 'strikethrough' were implemented as overlays, I quickly coded up the following: \startuseMPgraphic{MyCancel} draw (0,.2*\overlayheight)--(\overlaywidth,\overlayheight); \stopuseMPgraphic \defineoverlay[mycancel][\useMPgraphic{MyCancel}] \def\cancel

[NTG-context] Equivalent of LaTeX \cancel? and Thanks!

2008-10-12 Thread Benjamin R. Haskell
up the following: \startuseMPgraphic{MyCancel} draw (0,.2*\overlayheight)--(\overlaywidth,\overlayheight); \stopuseMPgraphic \defineoverlay[mycancel][\useMPgraphic{MyCancel}] \def\cancel#1{\framed[background=mycancel,frame=off]{#1}} Now, I'm sure this is not *quite* the right way to do

Re: [NTG-context] Equivalent of LaTeX \cancel? and Thanks!

2008-10-12 Thread Hans Hagen
implemented as overlays, I quickly coded up the following: \startuseMPgraphic{MyCancel} draw (0,.2*\overlayheight)--(\overlaywidth,\overlayheight); \stopuseMPgraphic \defineoverlay[mycancel][\useMPgraphic{MyCancel}] \def\cancel#1{\framed[background=mycancel,frame=off]{#1}} Now

[NTG-context] TeX-MP interaction in mkii and mkiv

2008-10-01 Thread Aditya Mahajan
Right to boundingbox Right xyscaled(0,3cm) shifted (bbwidth(Right)/1.5,0) ; draw Left shifted (12.59cm,-.5cm) ; draw Right shifted (12.59cm,-.5cm) ; fi; StopPage ; \stopuseMPgraphic \defineoverlay[test][\useMPgraphic{test}] \setupbackgrounds[page] [background=test] \starttext

<    1   2   3   4   5   6   7   8   >