use \framed in a overlay
\setupbackgrounds [page] [background=cropmarks]
\defineoverlay [cropmarks]
[{\framed[frame=off,bottomframe=on,leftframe=on,width=\overlaywidth,height=\overlayheight]{}}]
and even this is overkill because you can just enable the rules of the page
frame
)
bottomenlarged (\frameddimension{bottomrulethickness}/2) ;
setbounds currentpicture to OverlayBox ;
\stopuseMPgraphic
\defineoverlay [tableborders] [\useMPgraphic{tableborders}]
\startsetups tableborders
\setupTABLE
[ background=tableborders,
frame=off,
backgroundoffset
Hello,
how to specify the page background for the first page only and how to start
page numbering from the second page?
Here's my trial:
\defineoverlay[Bkg][{\externalfigure[cow]}]
\setupbackgrounds[paper][background=Bkg]
%\setuppagenumbering[state=2]
\starttext
\dorecurse{5}{\input
Am 02.05.2012 um 09:45 schrieb Procházka Lukáš Ing. - Pontex s. r. o.:
Hello,
how to specify the page background for the first page only and how to start
page numbering from the second page?
Here's my trial:
\defineoverlay[Bkg][{\externalfigure[cow]}]
\setupbackgrounds[paper
?
\defineoverlay[Bkg][\doif{\pagenumber}{1}{\externalfigure[cow]}]
\setupbackgrounds[paper][background=Bkg]
\starttext \noheaderandfooterlines
\dorecurse{5}{\input knuth\par}
\stoptext
If you want to create a title page (which may not be your intention),
why not simply
\definemakeup[titlepage][align
?
\defineoverlay[Bkg][\doif{\pagenumber}{1}{\externalfigure[cow]}]
\setupbackgrounds[paper][background=Bkg]
\starttext \noheaderandfooterlines
\dorecurse{5}{\input knuth\par}
\stoptext
If you want to create a title page (which may not be your intention),
why not simply
\definemakeup[titlepage][align=middle
)
--(photo_grp_x_shift + photo_grp_width, photo_grp_y_shift)
--(photo_grp_x_shift, photo_grp_y_shift)
withpen pencircle scaled 1bp withcolor black;
\stopuniqueMPgraphic
\defineoverlay[2e31ddc5-43da-4879-a223-61674e0df438][\uniqueMPgraphic{2e31ddc5-43da-4879-a223-61674e0df438
On Thu, 2012-04-05 at 04:41 +0200, Wolfgang Schuster wrote:
\defineoverlay[backgroundfigure][\overlayfigure{mill}]
\setupbackgrounds[page][background=backgroundfigure]
\starttext
\dorecurse{12}{\page[empty]}
\stoptext
Wolfgang
Thanks Wolfgang Aditya. Both solutions are useful
, but not as the entire page itself.
\defineoverlay[backgroundfigure][\overlayfigure{mill}]
\setupbackgrounds[page][background=backgroundfigure]
\starttext
\dorecurse{12}{\page[empty]}
\stoptext
Wolfgang
___
If your question
=pagenumber]
\starttext
\dorecurse{4}{\page[empty]}
\stoptext
Here is a slightly different version which is better when you need more dynamic
layers.
\definelayer
[pagenumber][width=\overlaywidth,height=\overlayheight,preset=middle]
\defineoverlay[pagenumber][\texsetup{layer
);
draw (0,krizy)--(-size/4,krizy);
draw (0,krizy)--(size/4,krizy);
\stopuseMPgraphic
\defineoverlay[PageDeco][\uniqueMPgraphic{PageDeco}]
\def\Page#1{
\framed[background={PageDeco},
align=center,
frame=off]
{~}%\vbox{\bf\rm
:= OverlayBox topenlarged -ExHeight bottomenlarged
-ExHeight ;
draw llcorner p -- urcorner p withcolor OverlayColor ;
\stopuniqueMPgraphic
\defineoverlay[strikeme][\uniqueMPgraphic{strikeme}]
\defineframed[StrikeMe][background=strikeme,frame=off,offset=0pt,location=low,backgroundcolor=blue
\defineoverlay[strikeme][\uniqueMPgraphic{strikeme}]
\def\strike#1{%
\ifmmode%
\mframed[background=strikeme,frame=off]{#1}%
\else%
\inframed[background=strikeme,frame=off]{#1}%
\fi}
\starttext
\startformula
{\strike2a + \strike ab \over \strike a} = a
\stopformula
Works in text, \strike{two}too
OverlayColor ;
\stopuniqueMPgraphic
\defineoverlay[strikeme][\uniqueMPgraphic{strikeme}]
\def\strike#1{%
\ifmmode%
\mframed[background=strikeme,frame=off]{#1}%
\else%
\inframed[background=strikeme,frame=off]{#1}%
\fi}
\starttext
\startformula
{\strike2a + \strike ab \over \strike a} = a
\stopformula
Hi,
when I run this example ...
\setupcolors[state=stop,conversion=never]%needed for specific reason in project
\startuseMPgraphic{Test}
z1 = (-233,0) ;
z2 = (-220,22) ;
fill z1 for i=2 upto 2: .. z[i] endfor .. z1 cycle ;
\stopuseMPgraphic
\defineoverlay[TTest] [\leftaligned
{\scale
features of the backgrounds, and then simply define the
%D overlays in different styles.
\defineoverlay[simpleslides:background:horizontal]
\defineoverlay[simpleslides:background:title]
\defineoverlay[simpleslides:background:vertical]
\defineoverlay[simpleslides:background:ornament]
\defineoverlay
]
\TitleFont THE BEGINNINGS OF \#BOOM}} etex;
labeloffset := 0bp;
label.lrt(titleText, (front_left_margin,
matter_paper_height - top_margin));
\stopreusableMPgraphic
\reuseMPgraphic{frontmattertitle:\overlaywidth:\overlayheight}
}
\defineoverlay[frontmattertitle
(withcolor \MPcolor{\framedparameter{framecolor}}) ;
draw bottomboundary OverlayBox withpen pencircle scaled 3pt ;
setbounds currentpicture to OverlayBox ;
\stopuseMPgraphic
\defineoverlay[head:line][\useMPgraphic{line}]
\defineframedtext
[framedHead]
[align=right,width=fit,
offset=overlay
*theta)*radius;
draw z1 -- z2 -- z3 -- z4 -- z5 -- z6 -- z7
-- cycle;
endfig;
end;
ConTeXt (after running mpost on the metapost graphic to generate the
hexagon.0 file):
=
\defineoverlay
[backg]
[{\externalfigure[hexagon.0
):
=
\defineoverlay
[backg]
[{\externalfigure[hexagon.0][width=\overlaywidth,height=\overlayheight]}]
\starttext
\noheaderandfooterlines
\setupbackgrounds[page][background=backg]
%\placefigure
%{none}
%{\externalfigure[hexagon.0][width=12cm]}
\stoptext
With ConTeXt
(13,1) and (14,1)..(14,0);
draw (0,0)--(0,12pt) withcolor white;
draw p xscaled (\overlaywidth/15) yscaled 5 shifted (0,9mm) withpen
pencircle scaled 0.25mm withcolor red;
\stopuniqueMPgraphic
\defineoverlay[curlybracket][\includeMPgraphic{defline}]
\def\sentencedef[#1][#2]{\setbox\scratchbox=\hbox{#2
(7,1) and
(7,1)..(8,1)--(13,1)..controls(13,1) and (14,1)..(14,0);
draw (0,0)--(0,12pt) withcolor white;
draw p xscaled (\overlaywidth/15) yscaled 5 shifted (0,9mm) withpen
pencircle scaled 0.25mm withcolor red;
\stopuniqueMPgraphic
\defineoverlay[curlybracket][\includeMPgraphic{defline}]
\def
}) ;
\stopuniqueMPgraphic
\defineoverlay[shaded][\useMPgraphic{LinearShade}]
\setupTABLE[row][1][background={shaded},backgroundcolor=blue,foregroundcolor=white]
\starttext
\framed[background={shaded}, width=\textwidth, frame=off]{}
\bTABLE
\bTABLEhead
\bTR \bTH 1 \eTH \bTH 1 \eTH \bTH 1 \eTH
yscaled \overlayheight ;
linear_shade(p,5,\MPcolor{a},\MPcolor{b}) ;
\stopuniqueMPgraphic
\defineoverlay[shaded][\useMPgraphic{LinearShade}]
\setupTABLE[row][1][background={shaded},backgroundcolor=blue,foregroundcolor=white]
\starttext
\framed[background={shaded}, width=\textwidth, frame=off
,-top_margin) ;
StopPage ;
\stopuniqueMPgraphic
\defineoverlay[cover][\uniqueMPgraphic{cover}]
\definelayer
[page]
[width=\paperwidth,
height=\paperheight]
\showframe
\starttext
% variant one:
\setupbackgrounds
[paper]
[background={cover
(normaltransparent,.5);
label(decimal(redpart c) , decimal(greenpart c) , decimal(bluepart c),center(OverlayBox));
\stopuniqueMPgraphic
\defineoverlay[foo][\uniqueMPgraphic{foo}{color=foo}]
\starttext
\framed[width=10cm,height=2cm,frame=on,background=foo]{}
\stoptext
mlib-pps.7z
Description
- top_margin));
\stopuniqueMPgraphic
\defineoverlay[cover][\uniqueMPgraphic{cover}]
\starttext
\title{}
\setupbackgrounds[paper][background={cover}]
\stoptext
= STOP MKII EXAMPLE =
I processed the following ConTeXt source file using MKIV:
this is luatex, version beta-0.70.1-2011051908
Hi,
fieldstack based animations result in a broken PDF document.
\setupinteraction[state=start]
\starttext
\definesymbol[one][\tt 1]
\definesymbol[two][\tt 2]
\definefieldstack[some][one,two]
\defineoverlay[some][\overlaybutton{Walk{some}}]
\framed[frame=off,background={foreground,some
On 25-6-2011 1:59, Wolfgang Schuster wrote:
\setupinteraction[state=start]
\starttext
\definesymbol[one][\tt 1]
\definesymbol[two][\tt 2]
\definefieldstack[some][one,two]
\defineoverlay[some][\overlaybutton{Walk{some}}]
\framed[frame=off,background={foreground,some}]{\fieldstack[some
replace
\setupbackgrounds [state=repeat]
\defineoverlay [side] [{\rotate[rotation=90]{\getmarking[section]}}]
\setupbackgrounds [text] [rightmargin] [background=side]
with
\setuptexttexts [margin]
[][\rightaligned{\rotate[rotation=90]{\getmarking[section]}}]
[\leftaligned{\rotate[rotation=90
to
flush it right at least.
In many cases you can replace your overlay with a layer (\setlayer etc.) but in
your case you can replace
\setupbackgrounds [state=repeat]
\defineoverlay [side] [{\rotate[rotation=90]{\getmarking[section]}}]
\setupbackgrounds [text] [rightmargin] [background=side
how could I write the name of the current \section or \subject in the
outer margin, with a rotation of 90°?
\setupbackgrounds [state=repeat]
\defineoverlay [side]
[{\rotate[rotation=90]{\getmarking[section]}}]
\setupbackgrounds [text] [rightmargin]
[background=side]
Marco
I write the name of the current \section or \subject in the
outer margin, with a rotation of 90°?
\setupbackgrounds [state=repeat]
\defineoverlay [side]
[{\rotate[rotation=90]{\getmarking[section]}}]
\setupbackgrounds [text] [rightmargin]
[background=side]
Marco
to need?
Here is a small complete example:
\setuplayout [location=doublesided]
\setuppagenumbering [alternative=doublesided]
\setupbackgrounds [state=repeat]
\defineoverlay [side]
[{\rotate[rotation=90]{\getmarking[section]}}]
\setupbackgrounds [text] [rightmargin] [background=side]
\starttext
this or is this
snippet anything I'm
supposed to need?
Here is a small complete example:
\setuplayout [location=doublesided]
\setuppagenumbering [alternative=doublesided]
\setupbackgrounds [state=repeat]
\defineoverlay [side]
[{\rotate[rotation=90]{\getmarking[section
with the fieldstack mechanism.
\setupinteraction[state=start]
\starttext
\definesymbol[one][1]
\definesymbol[two][2]
\definefieldstack[some][one,two]
\defineoverlay[some][\overlaybutton{Walk{some}}]
\framed[background={foreground,some}]{\fieldstack[some]}
\stoptext
Your mail reminds me to finish
\defineoverlay[tableborders][\useMPgraphic{tableborders}]
\startsetups tableborders
\setupTABLE
[ background={color,tableborders},
frame=off,
backgroundoffset=0pt,
leftrulethickness=\framedparameter{rulethickness},
rightrulethickness
;
\stopuseMPgraphic
\defineoverlay[tableborders][\useMPgraphic{tableborders}]
\setupTABLE
[background={color,tableborders},
frame=off,
leftrulethickness=\framedparameter{rulethickness},
rightrulethickness=\framedparameter{rulethickness},
toprulethickness=\framedparameter{rulethickness
)
topenlarged(\frameddimension {toprulethickness}/2)
bottomenlarged (\frameddimension{bottomrulethickness}/2) ;
setbounds currentpicture to OverlayBox ;
\stopuseMPgraphic
\defineoverlay[tableborders][\useMPgraphic{tableborders}]
\startsetups tableborders
\setupTABLE
to OverlayBox ;
\stopuseMPgraphic
\defineoverlay[tableborders][\useMPgraphic{tableborders}]
\setupTABLE
[ background=tableborders,
leftrulethickness=\framedparameter{rulethickness},
rightrulethickness=\framedparameter{rulethickness},
toprulethickness=\framedparameter{rulethickness
cells?
I once used some cheating:
\startuseMPgraphic{LineBack}
draw (\overlaywidth,0)--(0,\overlayheight);
\stopuseMPgraphic
\defineoverlay[LineBack][\useMPgraphic{LineBack}]
followed by
\setupTABLE[c][1][width=2.6cm]
\setupTABLE[1][1][background=LineBack,align={flushleft,low}]
\bTABLE
\bTR
;
\stopuniqueMPgraphic
\startuniqueMPgraphic{leftwave}
pickup pencircle scaled 1pt;
draw reverse unitwave xscaled (-1*CutSpace) yscaled (LineHeight/2) --
(OverlayWidth,0);
setbounds currentpicture to boundingbox OverlayBox;
\stopuniqueMPgraphic
\defineoverlay[rightwave]
[\uniqueMPgraphic{rightwave
Dear all,
I'm looking for a solution for dashed underlining. Hacking around I've
come quite close, with the only problem that when the underlining begins
at the start of a paragraph there gets an empty (grid) line inserted
before it. See:
\defineoverlay [backgraphics] [\positionoverlay
:
\defineoverlay [backgraphics] [\positionoverlay{backgraphics}]
\setupbackgrounds
[page]
[background={backgraphics}]
\setupMPvariables[mpos:par][gridtype=1,gridshift=-0.5ex,gridwidth=0.1ex,
gridcolor=black,fillcolor=white,linecolor=white]
\newcount\dashulinecounter \dashulinecounter=1
))
endfor;
pickup pencircle scaled 1pt;
draw wave xscaled (OverlayWidth/width) yscaled (OverlayHeight/(2*width));
\stopuniqueMPgraphic
\definelayer[decorations][position=yes,option=test,location=r]
\setupbackgrounds[page][background=decorations]
\defineoverlay[wave][\uniqueMPgraphic{wave
]
\setupbackgrounds[page][background=decorations]
\defineoverlay[wave][\uniqueMPgraphic{wave}]
\starttext
{\ss\bfc A chapter title}
\blank[small]
\framed[frame=off,bottomframe=on,width=broad,rulethickness=1pt]
{\ss\bfx \date \hfill Author Name}
\setlayer[decorations]{\framed[background=wave,frame=off
]
\startuniqueMPgraphic{LinearShade}
path p ;
p := unitsquare xscaled \overlaywidth yscaled \overlayheight ;
linear_shade(p,6,\MPcolor{a},\MPcolor{b}) ;
\stopuniqueMPgraphic
\defineoverlay[shaded][\useMPgraphic{LinearShade}]
\setupbackgrounds[page][background={shaded}]
\starttext
Here's my first
) -- (OverlayWidth, OverlayHeight) -- (0,
OverlayHeight) -- (0,0);
draw p withpen pencircle scaled 1pt dashed withdots;
setbounds currentpicture to boundingbox OverlayBox;
\stopuniqueMPgraphic
\defineoverlay[Label][\useMPgraphic{Label}]
\defineframed[Text][background=Label,frame=off,location=low
) -- (OverlayWidth,0);
draw p withpen pencircle scaled \frameddimension{rulethickness} withcolor
\MPcolor{\framedparameter{framecolor}};
setbounds currentpicture to boundingbox OverlayBox ;
\stopuniqueMPgraphic
\defineoverlay[Label][\useMPgraphic{Label}]
\defineframed[Text][background=Label,frame
Hello,
I'm trying to create an overlay - text with a line drawn bellow.
The following code:
---
\defineoverlay[Label][\useMPgraphic{Label}]
\startuniqueMPgraphic{Label}
path p; p := (0,0) -- (OverlayWidth,0);
draw p yshifted -1cm withpen pencircle scaled 1mm withcolor .667red
On Sat, 19 Mar 2011, Procházka Lukáš wrote:
Hello,
I'm trying to create an overlay - text with a line drawn bellow.
The following code:
---
\defineoverlay[Label][\useMPgraphic{Label}]
\startuniqueMPgraphic{Label}
path p; p := (0,0) -- (OverlayWidth,0);
draw p yshifted -1cm withpen
This used to work:
\defineoverlay[tannenberg][%
{\externalfigure[tannenberg.jpg][width=\overlaywidth,height=\overlayheight]}]
\hfill\framed[offset=0pt,strut=no,background={foreground,tannenberg}]
{\externalfigure[%
/Users/hans/Cryptografie/College-Movies
--(OverlayWidth,0) withcolor blue withpen pencircle scaled 4 shifted
(0,4) ;
clip currentpicture to OverlayBox ;
setbounds currentpicture to OverlayBox ;
\stopuseMPgraphic
\defineoverlay[headerrules][\useMPgraphic{headerrules}]
\setupbackgrounds[header][text][background=headerrules]
\starttext
\input
;
draw origin--(OverlayWidth,0) withcolor blue withpen pencircle scaled 4
shifted (0,4) ;
clip currentpicture to OverlayBox ;
setbounds currentpicture to OverlayBox ;
\stopuseMPgraphic
\defineoverlay[headerrules][\useMPgraphic{headerrules}]
\setupbackgrounds[header][text][background
\defineoverlay[leopard][\uniqueMPgraphic{lions b}]
\def\nota#1 {\inframed[frame=off,background=leopard]{#1}}
\starttext
\nota{test 1:} This is a test for line separation.
%\midaligned{\nota{test 2}}
\stoptext
Then the sentence This is a test. is written in a new line as following.
test 1:
This is a test
On 02/22/2011 09:58 PM, Jeong Dalyoung wrote:
\startuseMPgraphic{lions b}
picture pic;
path p ; p := fullsquare xyscaled (\overlaywidth,\overlayheight) randomized 5pt
;
pickup pencircle scaled 1pt ;
fill p withcolor .850yellow ;
draw p withcolor .5yellow ;
\stopuseMPgraphic
\defineoverlay
;
fill p withcolor blue ;
draw p withpen pencircle scaled 5 ;
setbounds currentpicture to OverlayBox ;
\stopuseMPgraphic
\defineoverlay[speechbubble][\useMPgraphic{speechbubble}]
\starttext
\framedtext[frame=off,background=speechbubble]{\input ward }
\blank[4cm]
\framedtext[frame=off,background
150}..{dir 110}z2--cycle ;
fill p withcolor blue ;
draw p withpen pencircle scaled 1 ;
setbounds currentpicture to OverlayBox ;
\stopuseMPgraphic
\defineoverlay[speechL][\useMPgraphic{speechL}]
\define [1] \speechbubbleL
{\blank
\framedtext[frame=off,background=speechL, width=7cm]{#1}
\blank[1
=red]
{why is this text not visible?}
\defineoverlay[test-overlay][\framed{test-overlay}]
\setupbackgrounds[page][background={test-layer,test-overlay}]
\starttext
\page[empty]
\stoptext
Greeting
Andreas
=start]
\setuphead[chapter][command=\Myheader]
%\setupheadtext[chapter=Chapitre]
%\defineoverlay[HeaderDeco][\uniqueMPgraphic{HeaderDeco}]
\def\Myheader#1#2%#3
{%
\framedtext
[width= \overlaywidth,
height=6\bodyfontsize,
background=screen,%{foreground,HeaderDeco
) ;
draw (2o,h)--(0,h)--(0,0)--(w,0)--(w,h)--(xpart urcorner p,h) ;
draw boundingbox p ;
draw (0,0) -- (0,-5pt) ;
draw (-5pt,0) -- (0,0);
draw (w, h) -- (w, h+5pt);
draw (w,h) -- (w+5pt,h);
setbounds currentpicture to unitsquare xyscaled(w,h) ;
\stopuseMPgraphic
\defineoverlay
=no]
\setupheadertexts[][part][chapter][]
You can replace this block
\setupbackgrounds[state=repeat]
\setupbackgrounds[header][text][background=whatever]
\defineoverlay[whatever][{\framed[width=\overlaywidth,height=\overlayheight,frame=off,bottomframe=on]{}}]
\couplepage[chapter][before
(.625,0,0);
\stopuniqueMPgraphic
\defineoverlay[square][\uniqueMPgraphic{square}]
\setupitemgroup
[itemize]
[1]
[symbol=square]
\starttext
\startitemize[1,columns]
\dorecurse{10}{\item itempoint \par}
\stopitemize
\stoptext
This doesn't have any effect so my question is how do I
problems with your example code:
\defineoverlay[square][\uniqueMPgraphic{square}]
That line should read
\definesymbol[square][\uniqueMPgraphic{square}]
as you need a symbol, not an overlay
\startitemize[1,columns]
And this '1' should go away:
\startitemize[columns]
because a '1
is an example:
There are two small problems with your example code:
\defineoverlay[square][\uniqueMPgraphic{square}]
That line should read
\definesymbol[square][\uniqueMPgraphic{square}]
as you need a symbol, not an overlay
\startitemize[1,columns]
And this '1' should go away
,
headerdistance=15mm,
footerdistance=0mm,
textwidth=14cm]
\setuppagenumbering
[alternative=doublesided,
location=marginedge,
way=bytext,
partnumber=no]
\setupheadertexts[][part][chapter][]
\setupbackgrounds[state=repeat]
\setupbackgrounds[header][text][background=whatever]
\defineoverlay[whatever
=repeat]
\setupbackgrounds[header][text][background=whatever]
\defineoverlay[whatever][{\framed[width=\overlaywidth,height=\overlayheight,frame=off,bottomframe=on]{}}]
\couplepage[chapter][before={\defineoverlay[whatever][]}]
\setuphead[chapter][before={\pagetype[chapter]}]
\setuphead[part
\setupbackgrounds[state=repeat]
\setupbackgrounds[header][text][background=whatever]
\defineoverlay[whatever][{\framed[width=\overlaywidth,height=\overlayheight,frame=off,bottomframe=on]{}}]
\couplepage[chapter][before={\defineoverlay[whatever][]}]
\setuphead[chapter][before={\pagetype[chapter
}
{\startproperty[2]\overlayfigure{mill}\stopproperty}
{\startproperty[3]\overlayfigure{hacker}\stopproperty}
{\startproperty[4]\overlayfigure{cow}\stopproperty}
\stopoverlay
\stoptexdefinition
\defineoverlay[properties][\properties]
\startTEXpage[background={foreground,properties}]
\bTABLE
{\startproperty[1]\overlayfigure{cow}\stopproperty}
{\startproperty[2]\overlayfigure{mill}\stopproperty}
{\startproperty[3]\overlayfigure{hacker}\stopproperty}
{\startproperty[4]\overlayfigure{cow}\stopproperty}
\stopoverlay
\stoptexdefinition
\defineoverlay[properties][\properties
]\overlayfigure{cow}\stopproperty}
\stopoverlay
\stoptexdefinition
\defineoverlay[properties][\properties]
\startTEXpage[background={foreground,properties}]
\bTABLE[width=4cm,height=4cm,offset=none]
\bTR
\bTD \goto{\overlayfigure{cow}}[VideLayer{1}] \eTD
\bTD \goto{\overlayfigure{mill
={}]
%\usemodule[t][fixme]
\defineoverlay
[simpleslides:background:title]
[{\externalfigure[Airbus-wing-over-sea-blue-sky-JR][factor=fit]}]
%%
\starttext
\placeTitle
\SlideTitle {Спеціальності}
Кафедра проводить пiдготовку спеціалістів за напрямом
0502 Автоматика та
-\\ Інтегрованих
Комплексів},
author={Факультет \\ Аерокосмічних Систем Управління},
date={}]
%\usemodule[t][fixme]
\defineoverlay
[simpleslides:background:title]
[{\externalfigure[Airbus-wing-over-sea-blue-sky-JR][factor=fit]}]
%%
\starttext
\placeTitle
\SlideTitle
at my example.
\setuppapersize[A5][A4,landscape]
\setuplayout[location=middle]
\setuppagenumbering[alternative=doublesided]
\setuparranging[2SIDE]
\defineoverlay[right][{\scale[width=\textwidth]{right page}}]
\defineoverlay[left] [{\scale[width=\textwidth]{left page}}]
\setupbackgrounds
~\pagenumber\page}
\stoptext
Willi
On 21 Oct 2010, at 18:05, Andreas Harder wrote:
Hi all,
please have a look at my example.
\setuppapersize[A5][A4,landscape]
\setuplayout[location=middle]
\setuppagenumbering[alternative=doublesided]
\setuparranging[2SIDE]
\defineoverlay[right
}
\stoppositionoverlay
3. Define an overlay that is mapped to MP position overlay.
\defineoverlay[arrow][\positionoverlay{arrow}]
4. Hook the overlay as a page background
\setupbackgrounds[page][background=arrow]
5. Then everything will work.
\starttext
\section {Anchors and layers
Hi all,
please have a look at my example.
\setuppapersize[A5][A4,landscape]
\setuplayout[location=middle]
\setuppagenumbering[alternative=doublesided]
\setuparranging[2SIDE]
\defineoverlay[right][{\scale[width=\textwidth]{right page}}]
\defineoverlay[left] [{\scale[width=\textwidth]{left page
\startMPcode
draw leftboundary OverlayBox withcolor red ;
draw rightboundary OverlayBox withcolor red ;
\stopMPcode
\fi\fi\fi}
\defineoverlay[DrawBackground][\DrawBackground]
\starttext
\setupbackground[background=DrawBackground]
\input knuth
\StartBackground
\dorecurse{12}{\input
}
\defineoverlay[DrawBackground][\DrawBackground]
\starttext
\setupbackground[background=DrawBackground]
\input knuth
\StartBackground
\dorecurse{12}{\input knuth\par}
\StopBackground
\input knuth
\StartBackground
\input knuth\par
\StopBackground
\input knuth
\stoptext
Wolfgang
}
\item \dorecurse{20}{drei }
\stopitemize
\stopbuffer
\defineoverlay
[items]
[{\framed[width=broad,offset=overlay,align=normal]{\getbuffer}}]
\getbuffer % - correct indenting
% \bTABLE \bTR\bTD \getbuffer \eTD\eTR \eTABLE
\bTABLE[width=broad,height=9\lineheight]
\setupTABLE[last
;
fill fullcircle scaled 1cm;
StopPage;
\stopreusableMPgraphic
\defineoverlay[background][\reuseMPgraphic{background}]
\setupbackgrounds[page][background=background]
\starttext
\dorecurse{4}{\page\input tufte}
\stoptext
There should be a circle centered in the lower-left corner of every
page
reserved.}][{\tfxx
Typeset using {\ConTeXt} mkiv.}]
\defineoverlay[Koe]
[{\externalfigure[cow][width=114.4cm]}]
\setupbackgrounds[text][text][background=Koe]
\starttext
\definecolumnset[Poster][n=6]
\definecolumnsetspan[Normal][n=1]
\definecolumnsetspan[Double][n=2]
\definecolumnsetspan
;
label.bot(textext(\switchtobodyfont[30pt]\startcolor[orange]
decimal PageNumber \stopcolor\ -- \startcolor[darkblue] decimal
NOfPages \stopcolor), z[1]) ;
StopPage ;
\stopuseMPgraphic
\defineoverlay
[pageback]
[\useMPgraphic{back}]
\setupbackgrounds[page][background=pageback
OverlayBox withcolor white ;
draw OverlayBox withcolor blue ;
setbounds currentpicture to OverlayBox ;
\stopuniqueMPgraphic
\defineoverlay [shadow] [\uniqueMPgraphic{shadow}]
\def\assignmenttitle#1#2%
{\framed[
width=broad,
frame=off,
align
?
\defineoverlay
[pagenumber]
[\vbox to \paperheight
{\blank[force,3cm]
\midaligned{\pagenumber\ – \lastpagenumber}
\vfill}]
\setupbackgrounds[page][background={foreground,pagenumber}]
\starttext
...
\stoptext
Wolfgang
mechanisms
Could you give me an example about background mechanism ?
\defineoverlay
[pagenumber]
[\vbox to \paperheight
{\blank[force,3cm]
\midaligned{\pagenumber\ – \lastpagenumber}
\vfill}]
\setupbackgrounds[page][background={foreground,pagenumber}]
\starttext
\startuniqueMPgraphic{row:right}
draw rightboundary OverlayBox withpen pensquare scaled 2pt ;
draw topboundaryOverlayBox withpen pensquare scaled 2pt ;
draw bottomboundary OverlayBox withpen pensquare scaled 2pt ;
setbounds currentpicture to OverlayBox ;
\stopuniqueMPgraphic
\defineoverlay
to OverlayBox;
\stopuniqueMPgraphic
\startuniqueMPgraphic{Diagonal}
path p,q;
p := unitsquare xscaled \overlaywidth yscaled \overlayheight;
draw llcorner p -- urcorner p withpen pencircle scaled 2pt;
\stopuniqueMPgraphic
\defineoverlay[Topline][\useMPgraphic{Topline
On 2-8-2010 3:16, Julian Becker wrote:
\defineoverlay[left page] [\useMPgraphic{left page}]
\defineoverlay[right page][\useMPgraphic{right page}]
\setupbackgrounds[leftpage] [background=left page]
\setupbackgrounds[rightpage][background=right page]
But now I have them on every page.
I don't
I'm working on a document with page backgrounds. I got them working now,
using
...
...
\defineoverlay[left page] [\useMPgraphic{left page}]
\defineoverlay[right page][\useMPgraphic{right page}]
\setupbackgrounds[leftpage] [background=left page]
\setupbackgrounds[rightpage][background=right page
=on]
\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
[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
{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
=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
+ ry)...
% (xa + hx, ya)...cycle
% withcolor transparent(normal, .04, black) ;
endfor;
setbounds currentpicture to OverlayBox ;
\stopuniqueMPgraphic
\defineoverlay[shadow][\useMPgraphic{mpshadow}]
\starttext
\rotate[rotation=12]{%
\externalfigure[koe][width=50mm
;
\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]}}%
}
\stoptext
I'm glad I found
, 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]}}%
}
\stoptext
I'm
=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 \MPcolor{bg
have a question: what am I doing wrong?
\starttext
\definelayer[lyr][width=\overlaywidth,height=\overlayheight,preset=lefttop]
\defineoverlay[ovl][lyr][overlay]
\framed[width=10cm,height=4cm,background=ovl]{Framed text}
\stoptext
I want to have something like
, so 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
401 - 500 of 788 matches
Mail list logo