Re: [NTG-context] Different printing positions on cards

2010-07-23 Thread Jaroslav Hajtmar
[XY] \setuppagenumbering [alternative=doublesided,location=, state=stop] \defineoverlay[pozadifront][{\externalfigure[file1.jpg][width=\cardwidth,height=\cardheight]}] \defineoverlay[pozadiback][{\externalfigure[file2.jpg][width=\cardwidth,height=\cardheight]}] \startbuffer[Front

Re: [NTG-context] Different printing positions on cards

2010-07-23 Thread Jaroslav Hajtmar
] \setuparranging [XY] \setuppagenumbering [alternative=doublesided,location=, state=stop] \defineoverlay[pozadifront][{\externalfigure[file1.jpg][width=\cardwidth,height=\cardheight]}] \defineoverlay[pozadiback][{\externalfigure[file2.jpg][width=\cardwidth,height=\cardheight]}] \startbuffer

Re: [NTG-context] Different printing positions on cards

2010-07-22 Thread Jaroslav Hajtmar
=doublesided,location=, state=stop] \defineoverlay[pozadifront][{\externalfigure[file1.jpg][width=\cardwidth,height=\cardheight]}] \defineoverlay[pozadiback][{\externalfigure[file2.jpg][width=\cardwidth,height=\cardheight]}] \startbuffer[Front] \leftaligned{\recurselevel\ - Front

[NTG-context] Different printing positions on cards

2010-07-22 Thread Jaroslav Hajtmar
{backspace}] \setuplayout[location=middle, marking=on] \setuparranging [XY] \setuppagenumbering [alternative=doublesided,location=, state=stop] \defineoverlay[pozadifront][{\externalfigure[file1.jpg][width=\cardwidth,height=\cardheight]}] \defineoverlay[pozadiback][{\externalfigure[file2

Re: [NTG-context] blurred shadow on images?

2010-07-01 Thread Henning Hraban Ramm
(xb - rx, ya + ry)... % (xa + hx, ya)...cycle % withcolor transparent("normal", .04, black) ; endfor; setbounds currentpicture to OverlayBox ; \stopuniqueMPgraphic \defineoverlay[shadow][\useMPgraphic{mpshadow}] \starttext \rotate[rotation=12]{% \

Re: [NTG-context] blurred shadow on images?

2010-06-30 Thread Wolfgang Schuster
ot;normal", .04, black); endfor; \stopuniqueMPgraphic \defineoverlay[shaded][\useMPgraphic{texthole}] \starttext \rotate[rotation=12]{% \framed[height=50mm, width=50mm, frame=off, background=shaded, backgroundoffset=5mm, align=middle]% {\offset[x=1mm,y=-2mm]{\externalfigure[koe][width=50mm]}

Re: [NTG-context] blurred shadow on images?

2010-06-30 Thread Henning Hraban Ramm
.04, black); endfor; \stopuniqueMPgraphic \defineoverlay[shaded][\useMPgraphic{texthole}] \starttext \rotate[rotation=12]{% \framed[height=50mm, width=50mm, frame=off, background=shaded, backgroundoffset=5mm, align=middle]% {\offset[x=1mm,y=-2mm]{\externalfigure[koe][width=50mm]}}% } \stopte

[NTG-context] metapost: shading and transparency

2010-06-17 Thread Marco
=1, t=0] \definecolor [c] [r=1, g=1, b=1, a=1, t=.5] \definecolor [bg] [r=.8, g=.8, b=1] % Define test background to see transparency (not) working \defineoverlay[bg][\uniqueMPgraphic{bg}] \startuniqueMPgraphic {bg} fill unitsquare xyscaled (\overlaywidth, \overlayheight) withcolor \MPcol

Re: [NTG-context] Two \framed texts, one below the other

2010-06-15 Thread Taco Hoekwater
now I have a question: what am I doing wrong? This works : \starttext \definelayer[lyr][width=\overlaywidth,height=\overlayheight] \defineoverlay[ovl][{\directsetup{lyr}\tightlayer[lyr]}] \startsetups lyr \setlayer[lyr][preset=lefttop]{left top} \setlayer[lyr][preset=righttop]{right top

Re: [NTG-context] Two \framed texts, one below the other

2010-06-15 Thread Marcin Borkowski
t; Depending on your actual use case, layers or a table may be more > suited than \framed. OK, so now I have a question: what am I doing wrong? \starttext \definelayer[lyr][width=\overlaywidth,height=\overlayheight,preset=lefttop] \defineoverlay[ovl][lyr][overlay] \framed[width=10cm,he

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

2010-06-06 Thread Adam Fuller
phic{pos1}{mpos:box}{self=pos1} \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-re

Re: [NTG-context] Lost document background

2010-05-24 Thread Wolfgang Schuster
sided=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] \start

[NTG-context] Lost document background

2010-05-24 Thread Wolfgang Schuster
e 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 %\chard

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

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

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

2010-05-20 Thread Wolfgang Schuster
{\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][\rechteklammer] \starttext \bTABLE

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

2010-04-05 Thread Vianney le Clément
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

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

2010-03-04 Thread Andreas Harder
useMPgraphic{test} >> fill fullcircle scaled 5cm withcolor red; >> \stopuseMPgraphic >> >> \defineoverlay[test]{\useMPgraphic{test}} >> > \defineoverlay[...][…] :) Thanks Wolfgang! Andreas _

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

[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] 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 is of

[NTG-context] Metafun does not change color

2010-02-18 Thread Xan
istes} \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}] \d

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

2010-02-18 Thread Xan
] {fixistes} \shape{loop} \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

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

Re: [NTG-context] showlayoutcomponents: amazing!

2010-02-15 Thread Steffen Wolfrum
tect \setupmodule[Info=yes] \processaction[\currentmoduleparameter{Info}] [yes=> \def\InfoMark{Info}, no=> \def\InfoMark{}, \v!unknown=> \def\InfoMark{}, \v!default=> \def\InfoMark{}] \setupbackgrounds[page][background={\InfoMark}]% <--- %\defineoverlay[Info][{\getbuffer[info]}] %

[NTG-context] interlineskip problem (mkiv)

2010-02-12 Thread Peter Rolf
aphic \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 interlin

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

2010-02-04 Thread Peter Münster
]{% \getparameters[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=\

Re: [NTG-context] ConTeXt swallows text

2010-01-19 Thread luigi scarso
p://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
c{test} current := \somestructureheadnumber[chapter][current] ; last:= \somestructureheadnumber[chapter][last]; % current := 2 ; % last:= 6 ; skip:= TextHeight * (current-1)/last ; StartPage ; fill fullcircle scaled 3cm shifted (skip,skip) ; StopPage ; \sto

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 Curiouslearn
tRuleThickness   ; > draw rb--rt withpen pencircle scaled RightRuleThickness  ; > > setbounds currentpicture to OverlayBox ; > > \stopuseMPgraphic > > \defineoverlay >  [tableborder] >  [%\edef\topframeparameter   {\framedparameter\c!topframe   }% >   %\edef\bottomframeparameter{\fra

Re: [NTG-context] Natural Tables Cell Borders

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

[NTG-context] \framedparameter

2010-01-04 Thread Wolfgang Schuster
\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
eMPgraphic \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

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] 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] How do you position/move a MPgraphic?

2009-10-25 Thread Peter Rolf
on=\v!no,\c!page=, \c!method=\v!overlay, \c!sx=1,\c!sy=1,\c!corner=,#2]% \doifvalue{\??ll#1\c!doublesided}\v!yes {\dopresetlayerbox{\v!left #1}% \dopresetlayerbox{\v!right#1}}% \dopresetlayerbox{#1}% \defineoverlay[#1][\composedlayer{#1}]} Best wishes, Peter Ho

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] How do you position/move a MPgraphic?

2009-10-25 Thread Daniel Bundzik
are scaled 10cm shifted (20cm,0) withcolor \MPcolor{Orange} ; currentpicture := currentpicture xysized(OverlayWidth+.5pt,OverlayHeight+.5pt) ; \stopuseMPgraphic \startuseMPgraphic{somecolorcircle} % How do you move "somecolorcircle". I want this to be below &qu

Re: [NTG-context] Simplest slides

2009-10-19 Thread Aditya Mahajan
rizontal} StartPage ; fill Page withcolor black ; StopPage ; \stopuseMPgraphic \defineoverlay [simpleslides:background:horizontal] [\useMPgraphic{simpleslides:MP:horizontal}] \defineoverlay [simpleslides:background:vertical] [\useMPgraphic{simpleslides:MP:horizontal}] \defineoverl

Re: [NTG-context] Metafun problem

2009-09-26 Thread Peter Rolf
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 something? A \button is an interactive element, so you n

Re: [NTG-context] Metafun problem

2009-09-26 Thread luigi scarso
OverlayWidth yscaled 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}[

[NTG-context] Metafun problem

2009-09-25 Thread David Arnold
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 somethi

[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=on

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

[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

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

2009-06-28 Thread Gerben Wierda
e=5mm, 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{% \starts

Re: [NTG-context] add layer to page

2009-06-28 Thread Aditya Mahajan
den.net/message/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 {AB

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, this

Re: [NTG-context] add layer to page

2009-06-28 Thread luigi scarso
nt layers + this additional one." Can >> somebody help my memory? >> > > \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 ___

Re: [NTG-context] add layer to page

2009-06-28 Thread Hans Hagen
odule, 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 ...

Re: [NTG-context] Simpleslides question

2009-06-26 Thread Aditya Mahajan
logo at a particular location StopPage ; \stopuseMPgraphic and then \defineoverlay [simpleslides:background:ornament] [\useMPgraphic{simpleslides:MP:ornament}] Aditya ___ If your question is of interest to others as we

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

2009-06-26 Thread Gerben Wierda
e=off, 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 ... \sto

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

2009-06-26 Thread Carlos Breton Besnier
gt; > 2009/6/25, 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] >

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

2009-06-26 Thread Wolfgang Schuster
ntation=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

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

2009-06-26 Thread Gerben Wierda
'm 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 : Question. With \definetyping[SQL][option=color,numbering=line,bodyfont=9pt] \defineoverlay[ifsqoverlay][\overlayfigure{IfSQ-overlay.pdf}] \s

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

2009-06-25 Thread Gerben Wierda
t=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=inleft]

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 : > > Question. With > > \definetyping[SQL][option=color,numbering=line,bodyfont=9pt] > \defineoverlay[ifsqoverlay][\overlayfigure{IfSQ-overlay.pdf}] > \setuplayout[leftmargin=10mm,rightmargin=0mm,foo

[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

Re: [NTG-context] Simpleslides question 2

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

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

2009-06-06 Thread Gerben Wierda
ering=line] %% linenumbering did not work in MkIV method= 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=i

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= \defineoverlay[ifsqoverlay][\overlayfigure{IfSQ-overlay.pdf}] \star

[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 landscap

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 curso

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

2009-06-06 Thread Gerben Wierda
Hans: \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 intere

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

2009-06-04 Thread Wolfgang Schuster
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. Stel ik heb een serie ASCII files met broncode. Deze fi

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

2009-06-04 Thread Gerben . Wierda
zat te denken: is een ConTeXt based workflow hier een mogelijke >> 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

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

2009-05-29 Thread Hans Hagen
lijke 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,myov

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

2009-05-26 Thread Hans Hagen
rlayBox enlarged 2pt)) ; \stopuniqueMPgraphic \defineoverlay[circle][\uniqueMPgraphic{circle}] \def\MyCircledNumber#1% {\inframed[background=circle,frame=off]{\number#1}} \defineconversion[n][\MyCircledNumber] \startitemize[n,broad] \dorecurse{20}{\ite

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-18 Thread Alan Stone
t; if \myFrameAlternative = dashes : > if \myFrameAlternative = "dashes" : Alan > % if (\myFrameAlternative) = dashes : > draw p dashed evenly scaled 2 ; > % elseif (\myFrameAlternative) = dots : > elseif \myFrameAlternative = dots : > draw p dashed withdots scal

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

[NTG-context] MP newbie question

2009-05-18 Thread Alan Stone
\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] The ultimate (?) float problem

2009-05-14 Thread Piotr Kopszak
ement 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][backg

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] >> \setupbackg

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

2009-05-12 Thread luigi scarso
On Tue, May 12, 2009 at 1:28 PM, Piotr Kopszak 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]}] > \setupcol

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] how to make a coverpage?

2009-04-07 Thread Wolfgang Schuster
out {start/stop}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] \setupb

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

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

[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
#x27;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{horizontal}] >> >> to something like &

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] [\us

[NTG-context] modife the style of taspresent

2009-03-03 Thread Bill Long
ueMPgraphic %D We define 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[fra

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

2009-01-29 Thread Wolfgang Schuster
eft margin. 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

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

2009-01-14 Thread Wolfgang Schuster
local,global,default}] > > \setupcolors[state=start] > > \definecolor[partwhite][s=1,t=.8,a=1] > > \defineoverlay[partimage][\overlayfigure{mill}] > > \defineframedtext > [partframed] > [width=\textwidth, > height=\textheight, > rulethickness=5pt, > back

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

2009-01-14 Thread Bart C. Wise
ors[state=start] > > \definecolor[partwhite][s=1,t=.8,a=1] > > \defineoverlay[partimage][\overlayfigure{mill}] > > \defineframedtext >[partframed] >[width=\textwidth, > height=\textheight, > rulethickness=5pt, > background={partimage,color}, > back

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

2009-01-14 Thread Wolfgang Schuster
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][\overlayfigure{mill}] \defineframedtext [partframed] [width=\textwidth

[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

Re: [NTG-context] error when using uniqueMPgraphics

2008-12-22 Thread Wolfgang Schuster
verlayBox enlarged Middle ; setbounds currentpicture to OverlayBox ; \stopuniqueMPgraphic % 1 double side \startuniqueMPgraphic{table:frame:Lrtb} % left double draw OverlayBox leftenlarged Outer topenlarged Middle bottomenlarged Middle rightenlarged Middle ; draw OverlayBox leftenlarged Inner

Re: [NTG-context] error when using uniqueMPgraphics

2008-12-22 Thread Lars Huttar
raphic using >>>> \startuseMPgraphic (we 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}] &

[NTG-context] error when using uniqueMPgraphics

2008-12-22 Thread Lars Huttar
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

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

2008-12-16 Thread Mojca Miklavec
\startuseMPgraphic (we 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 achie

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

2008-12-16 Thread Lars Huttar
sent jelle the patched files OK, I'll look to hear from him. Are these patches to support these kinds of borders on tables, thus no longer needing to use MPgraphics? >> The advice I received said to define each mpgraphic using >> \startuseMPgraphic (we have about 18 of these), assoc

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

2008-12-16 Thread Hans Hagen
thin or single-and-double 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,

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

2008-12-16 Thread Lars Huttar
s are due to wanting thick-and-thin or single-and-double borders on tables, which are not natively supported by the ConTeXt table model. The advice I received said to define each mpgraphic using \startuseMPgraphic (we have about 18 of these), associate them with overlays using \defineoverlay (again

[NTG-context] Broken output with xetex

2008-12-13 Thread Diego Depaoli
What goes wrong with this code using xetex engine? No issues with pdftex and luatex. \setupcolors[state=start] \definecolor[a][yellow] \definecolor[b][s=.4] \definecolor[c][darkyellow] \definecolor[d][green] \definecolor[e][s=.4] \definecolor[f][darkgreen] \defineoverlay[my shade

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

2008-12-11 Thread Lars Huttar
top > > \startuseMPgraphic{table:frame:all} > draw OverlayBox enlarged -0.2 ; > setbounds currentpicture to OverlayBox ; > \stopuseMPgraphic > > \startuseMPgraphic{table:frame:leftdouble} > draw OverlayBox leftenlarged 2 topenlarged -0.2 bottomenlarged -0.2 > rightenlarged -0.

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

2008-12-09 Thread Lars Huttar
ayBox ; \stopuseMPgraphic \defineoverlay[table:frame:double][\useMPgraphic{table:frame:double}] \defineoverlay[table:frame:all] [\useMPgraphic{table:frame:all}] \defineoverlay[table:frame:left] [\useMPgraphic{table:frame:left}] \defineoverlay[table:frame:right] [\useMPgraphic{table:frame:right}] \defi

<    1   2   3   4   5   6   7   8   9   >