}
\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
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
=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
{$\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
}}}
\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
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
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
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
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
out well
\defineoverlay[realdirty][{\rotate[rotation=180]{\foregroundbox}}]
\framed{\externalfigure[cow.pdf][background=realdirty]}
\externalfigure[cow][orientation=180]
Wolfgang
___
If your question
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
}
\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
}
\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
}]% ---
%\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
\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
[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
://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
:= \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
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
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
RightRuleThickness ;
setbounds currentpicture to OverlayBox ;
\stopuseMPgraphic
\defineoverlay
[tableborder]
[%\edef\topframeparameter {\framedparameter\c!topframe }%
%\edef\bottomframeparameter{\framedparameter\c!bottomframe}%
%\edef\leftframeparameter {\framedparameter\c!leftframe
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
\the\dimexpr\framedparameter{rightrulethickness}\relax ;
setbounds currentpicture to OverlayBox ;
\stopuseMPgraphic
\defineoverlay[frameborder][\useMPgraphic{frameborder}]
\defineframed
[mpframed]
[ toprulethickness=\framedparameter{rulethickness},
bottomrulethickness=\framedparameter{rulethickness
\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
currentpicture to OverlayBox ;
\stopuniqueMPgraphic
\defineoverlay[dottedline:top] [\uniqueMPgraphic{dottedline:top}]
\defineoverlay[dashedline:bottom][\uniqueMPgraphic
{dashedline:bottom}]
\defineoverlay[dashedline:left] [\uniqueMPgraphic{dashedline:left}]
\defineoverlay
(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
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
=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
black ;
StopPage ;
\stopuseMPgraphic
\defineoverlay
[simpleslides:background:horizontal]
[\useMPgraphic{simpleslides:MP:horizontal}]
\defineoverlay
[simpleslides:background:vertical]
[\useMPgraphic{simpleslides:MP:horizontal}]
\defineoverlay
[simpleslides:background:title
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
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
.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
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
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
.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
;
\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
, 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
?
\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
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
/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
,
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
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
,
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
:
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
,
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
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
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
,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
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
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
:
\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
):
\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
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
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
] %% 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
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
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
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
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
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
% 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
) ;
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
= 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
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
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
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
...@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
}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
]
\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
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
]
\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
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
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
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
.
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
=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
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
;
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
,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
://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
;
\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
\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
.
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
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
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
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
501 - 600 of 788 matches
Mail list logo