[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
]
\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
=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
{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
(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]{%
\
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]}
.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
=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
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
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
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
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
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
> {\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
>
{\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
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
useMPgraphic{test}
>> fill fullcircle scaled 5cm withcolor red;
>> \stopuseMPgraphic
>>
>> \defineoverlay[test]{\useMPgraphic{test}}
>>
> \defineoverlay[...][…]
:) Thanks Wolfgang!
Andreas
_
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
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
out well
\defineoverlay[realdirty][{\rotate[rotation=180]{\foregroundbox}}]
\framed{\externalfigure[cow.pdf][background=realdirty]}
\externalfigure[cow][orientation=180]
Wolfgang
___
If your question is of
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
] {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
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
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]}]
%
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
]{%
\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=\
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]}
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
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
tRuleThickness ;
> draw rb--rt withpen pencircle scaled RightRuleThickness ;
>
> setbounds currentpicture to OverlayBox ;
>
> \stopuseMPgraphic
>
> \defineoverlay
> [tableborder]
> [%\edef\topframeparameter {\framedparameter\c!topframe }%
> %\edef\bottomframeparameter{\fra
ithpen pencircle scaled RightRuleThickness ;
setbounds currentpicture to OverlayBox ;
\stopuseMPgraphic
\defineoverlay
[tableborder]
[%\edef\topframeparameter {\framedparameter\c!topframe }%
%\edef\bottomframeparameter{\framedparameter\c!bottomframe}%
%\edef\leftframeparameter {\fram
\dimexpr\framedparameter{rightrulethickness}\relax ;
setbounds currentpicture to OverlayBox ;
\stopuseMPgraphic
\defineoverlay[frameborder][\useMPgraphic{frameborder}]
\defineframed
[mpframed]
[ toprulethickness=\framedparameter{rulethickness},
bottomrulethickness=\framedparameter{rulethickness
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
currentpicture to OverlayBox ;
\stopuniqueMPgraphic
\defineoverlay[dottedline:top] [\uniqueMPgraphic{dottedline:top}]
\defineoverlay[dashedline:bottom][\uniqueMPgraphic
{dashedline:bottom}]
\defineoverlay[dashedline:left] [\uniqueMPgraphic{dashedline:left}]
\defineoverlay
=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
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
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
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
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
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
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}[
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
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=on
;
\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
.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
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
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
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
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
___
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 ...
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
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
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]
>
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
'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
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]
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
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
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
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
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
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
):
\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
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
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
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
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
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
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
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
= 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
\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
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
>> 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
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
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
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
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
]
\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
]
\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
#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
&
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
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
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
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
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
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
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
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
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}]
&
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
\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
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
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,
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
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
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.
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
501 - 600 of 858 matches
Mail list logo