][{\directsetup{figure}\tightlayer[figure]}]
\startsetups figure
\setlayerframed[figure][frame=off,preset=rightbottom]{\copyright\ 2022}
\stopsetups
\externalfigure[cow][background={foreground,figure}]
\stoptext
\starttext
\definecollector[example]
\setcollector [example] {\externalfigure[cow
][
preset=lefttop,
%x=0mm,y=0mm,
width=\paperwidth,
height=\paperheight,
]
\setupbackgrounds[page][background=papier]
\starttext
\showframe
TEST
\setlayerframed[papier][
preset=lefttop,
%x=-\measure{Bleed},
%y=-\measure{Bleed},
offset=overlay,
of the \setlayerframed command . — What would be possible is to attach the
layer as a background to one of the different areas of the paper.
I hope this gives you a hint how to proceed..
Willi
On 15 Apr 2022, at 21:51, Henning Hraban Ramm via ntg-context
wrote:
Hi again,
I’m always struggling
Hi Hraban,
if you flush a layer like in your example, then the layer is attached to the
left top of the text area. If you want to place it in another place, you will
have to move it by x and y dimensions to the right place in the first brackets
of the \setlayerframed command . — What would
}\relax}]
\definelayer[papier][
preset=lefttop,
%x=0mm,y=0mm,
width=\paperwidth,
height=\paperheight,
]
\setupbackgrounds[paper][background=cover,state=start]
\starttext
\showframe
TEST
\setlayerframed[papier][
preset=lefttop,
%x=-\measure{Bleed},
%y=-\measure{Bleed},
offset
\setlayerframed
[pagenumber]
[
x=3em,
y=2em,
]
[
frame=on,
foregroundcolor=red,
foregroundstyle=bold,
]
{\pagenumber}
\stopsetups
% Disable default page numbering
\starttext
Page 1
\page
Page 2
\page
Page 3
\page
Page 4
\dorecurse{15}{\input knuth}
\stoptext
] [background=coverlayer,state=start ]
\starttext
\setlayerframed [coverlayer]
[width=60mm,height=60mm,hoffset=0mm,voffset=0mm]
[frame=on]
{Some framed text top left of paper}%
Hello world.
%\flushlayer[coverlayer]
\stoptext
The above works as expected: the framed text is at the top left
m,
>leftmargindistance=4mm,
>leftmargin=57mm,
> ]
>
> \definelayer[leftmargin][
>x=0mm,y=3mm,
>width=\leftmarginwidth,
>height=\textheight
> ]
>
> \setupbackgrounds[text][leftmargin][background=leftmargin,state=start]
>
> \starttext
>
> \
,
]
\definelayer[leftmargin][
x=0mm,y=3mm,
width=\leftmarginwidth,
height=\textheight
]
\setupbackgrounds[text][leftmargin][background=leftmargin,state=start]
\starttext
\setlayerframed[leftmargin][
frame=off,
offset=overlay,
width=\leftmarginwidth,
align={flushleft,verytolerant
state=stop]
\definelayer[BG][
x=0mm,y=0mm,
width=\LWidth,height=\LHeight,
state=repeat]
\setupbackgrounds[page][background=BG,]
\setlayerframed[BG][
frame=on,
framecolor=yellow,
width=\LWidth,height=\LHeight,
align=flushleft,
]{\strut}
\setlayer[BG][
preset=rightbottom,
hoffse
}}
just a line
\setlayerframed[whatever][foregroundstyle=\bf\ss]
{layer on the last page?}
\stoptext
I’m afraid that you get the same result, so there may be a bug there.
There is no bug. When you take a look at my pagenumber example you see a
few lines at the top show the number
the second page.
This sample shows thie problem in a simpler way:
\definelayer[whatever]
[x=3em, y=3em]
\setupbackgrounds[page][background=whatever]
\starttext
\dorecurse{18}{\section{Section}}
just a line
\setlayerframed[whatever][foregroundstyle=\bf\ss]
{layer on the last page?}
ever]
\starttext
\dorecurse{18}{\section{Section}}
just a line
\setlayerframed[whatever][foregroundstyle=\bf\ss]
{layer on the last page?}
\stoptext
Many thanks for your help,
Pablo
--
http://www.ousia.tk
the width is
> \the\wd\scratchbox.
> \unvbox\scratchbox
>
> \setlayerframed[LAY][x=0pt, y=20pt][width=300pt, align=flushleft]{\input
> ward\relax}
> \flushlayer[LAY]
>
> \stoptext
>
> Aditya
Yes, that's essentially the same method I used, but I must have done a
mi
Rudolf Bahr schrieb am 24.03.2020 um 16:29:
On Tue, Mar 24, 2020 at 03:56:18PM +0100, Wolfgang Schuster wrote:
Rudolf Bahr schrieb am 24.03.2020 um 12:19:
Hello dear All,
the following MWE works best:
\definelayer[LAY]
\starttext
\setlayerframed[LAY]
[x=0pt,y=20pt]
[frame
On Tue, 24 Mar 2020, Rudolf Bahr wrote:
On Tue, Mar 24, 2020 at 03:56:18PM +0100, Wolfgang Schuster wrote:
Rudolf Bahr schrieb am 24.03.2020 um 12:19:
> Hello dear All,
>
> the following MWE works best:
>
>
> \definelayer[LAY]
> \starttext
>
> \setlayerfram
On Tue, Mar 24, 2020 at 03:56:18PM +0100, Wolfgang Schuster wrote:
> Rudolf Bahr schrieb am 24.03.2020 um 12:19:
> > Hello dear All,
> >
> > the following MWE works best:
> >
> >
> > \definelayer[LAY]
> > \starttext
> >
> >
Rudolf Bahr schrieb am 24.03.2020 um 12:19:
Hello dear All,
the following MWE works best:
\definelayer[LAY]
\starttext
\setlayerframed[LAY]
[x=0pt,y=20pt]
[frame=on,
width=300pt,
align={right,}] % tolerant}]
{\input ward }
\flushlayer[LAY]
\stoptext
Now, it could
Hello dear All,
the following MWE works best:
\definelayer[LAY]
\starttext
\setlayerframed[LAY]
[x=0pt,y=20pt]
[frame=on,
width=300pt,
align={right,}] % tolerant}]
{\input ward }
\flushlayer[LAY]
\stoptext
Now, it could have a favourable effect on designing a page
mount
> > to move
> > the whole layer ensemble.
> >
> > My question is now: Does in context exist a possibility to move all layers
> > jointly
> > without correcting all their x-values subsequently?
>
> 1. You can use hoffset and voffset to shift all laye
- d) is the amount to
move
the whole layer ensemble.
My question is now: Does in context exist a possibility to move all layers
jointly
without correcting all their x-values subsequently?
1. You can use hoffset and voffset to shift all layers.
2. You can use \setlayerframed to put paragraphs
>>
>> LMTX 20191206 only. MKIV 20191206 is fine.
>>
>> Error on my part, or bug?
>>
>> % \definelayer [WatermarkOverlay]
>> % [repeat=yes,
>> % width=\paperwidth,
>> % height=\paper
20191206 is fine.
Error on my part, or bug?
% \definelayer [WatermarkOverlay]
% [repeat=yes,
% width=\paperwidth,
% height=\paperheight]
% \setlayerframed [WatermarkOverlay]
% [preset
,
% width=\paperwidth,
% height=\paperheight]
% \setlayerframed [WatermarkOverlay]
% [preset=center]
% [foregroundcolor=red,frame=off]
% {\scale[factor=max]{\rotate[rotation=60.0]{~Oops!~}}}
\defineoverlay
=red]{TEXT}}
or
\setlayerframed
[testlayer]
[x=1cm,
y=3cm]
[framecolor=red]
{TEXT}
Wolfgang
___
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context@ntg.nl / http://
Henri Menke schrieb am 15.09.2019 um 05:05:
Dear list,
Is there a way to get sidefloats working inside a frame? I'm currently
designing a conference poster and I'm manually placing blocks using
\setlayerframed where inside those blocks I'd like to have sidefloats. MWE is
below.
Cheers, Henri
On Sun, 15 Sep 2019, Henri Menke wrote:
Dear list,
Is there a way to get sidefloats working inside a frame? I'm currently
designing a conference poster and I'm manually placing blocks using
\setlayerframed where inside those blocks I'd like to have sidefloats. MWE is
below.
You could use
Dear list,
Is there a way to get sidefloats working inside a frame? I'm currently
designing a conference poster and I'm manually placing blocks using
\setlayerframed where inside those blocks I'd like to have sidefloats. MWE is
below.
Cheers, Henri
---
\starttext
\startplacefigure[location
,
height=\dimexpr\paperheight+4mm]
[frame=on]}
\setlayerframed
[footer]
[preset=leftbottom]
[frame=off,
align=normal,
background=color,
backgroundcolor=white]
{\fakewords{#1}{#1}}
\page[empty]
test
}
\stoptext
Pgraphic{canaux}}
> \eTD
> \bTD
> infrastructures~: canaux
> \eTD
> \eTR
> \eTABLE
> \stopbuffer
>
> \definelayer
> [legend]
> [width=\overlaywidth,
>height=\overlayheight]
&
=\overlayheight]
\starttext
% \setlayer
% [legend]
% {\getbuffer[legend]}
\setlayerframed
[legend]
[background=color,
backgroundoffset=2pt,
backgroundcolor=red,
strut=no,
frame=off]
{\getbuffer[legend]}
\externalfigure
[t
to use a undefined
> value.
>
> 2. I determined the last page of the megazine with the \getfiguredimensions
> command, afterwards you can use the \noffigurepages command to get the last
> page of the document.
>
> 3. I put the layer and frame settings for the \setlayerframed
ed value.
2. I determined the last page of the megazine with the
\getfiguredimensions command, afterwards you can use the \noffigurepages
command to get the last page of the document.
3. I put the layer and frame settings for the \setlayerframed command in
separate arguments.
4. I got rid of the b
nt
> [Title]
> [SerifBold at 42pt]
>
> \starttext
>
> \placefigure[][]{Cow}
> {\externalfigure[cow][width=.5\textwidth]}
>
> \definelayer[myfigure][x=6cm,y=6cm,preset=middle]
>
> \setlayer[myfigure]{\framed[frame=off]{\Title
> \color[middlecyan]{123456789}}
re[cow][width=.5\textwidth]}
\definelayer[myfigure][x=6cm,y=6cm,preset=middle]
\setlayer[myfigure]{\framed[frame=off]{\Title
\color[middlecyan]{123456789}}}
\setlayerframed[myfigure][][frame=off,foregroundstyle=Title,foregroundcolor=middlecyan]{123456789}
\setupbackgrounds[page][background={my
alia, TL18.
\setuptagging [state=start]
\setupexternalfigures [location=default]
\definelayout [testpage]
\definelayer [testpage]
[width=\paperwidth,height=\paperheight]
\startsetups [testpage]
\setlayerframed [testpage]
[preset=rightbott
tate=start]
\setupexternalfigures [location=default]
\definelayout [testpage]
\definelayer [testpage]
[width=\paperwidth,height=\paperheight]
\startsetups [testpage]
\setlayerframed [testpage]
[preset=rightbottom,hoffset=.25in,voffset=.25in,
backgr
on=default]
\definelayout [testpage]
\definelayer [testpage]
[width=\paperwidth,height=\paperheight]
\startsetups [testpage]
\setlayerframed [testpage]
[preset=rightbottom,hoffset=.25in,voffset=.25in,
background=color,backgroundco
18 um 15:30
>>
>> I tried something like:
>>
>> \def\SetPart{%
>> \setlayerframed[background]%
>> [y=10mm,x=20mm,]%
>> {\getmarking[part]}
>> }
>> \setuphead[chapter][after={\SetPart}]
>>
>> But I always get the name of the prev
ething like:
\def\SetPart{%
\setlayerframed[background]%
[y=10mm,x=20mm,]%
{\getmarking[part]}
}
\setuphead[chapter][after={\SetPart}]
But I always get the name of the previous part. :(
Greetlings, Hraban
---
http://www.fiee.net
http://wiki.contextgarden.net
GPG Key ID 1C
he rubric header only on the first
> page of a chapter (article).
>
> Which approach would you suggest?
> In my experience, it’s hard to find the right place for \setupheader(texts)
> so that it affects the right page(s).
I tried something like:
\def\SetPart{%
\setlayer
gt; > Here’s my (convoluted) placement macro:
> > >
> > > % image on empty page, caption in margin
> > > % usage:
> > > % \startpostponing[pagenumber]
> > > % \pagefig[reference]{caption}{filename}
> > > % \stoppostponing
> > > %
t;, \Resolution)}}
\def\mystartY{\ctxlua{ctxStartY("#3", \Resolution)}}
% image
\setlayerframed[bglayer][%
frame=off,
offset=overlay,
x=21mm,
y=\mystartY,
height=\myClipHeight,
width=\textwidth,
align=flushleft,
]{%
\clip[
width=\te
ppostponing
> % postponing is important, otherwise the page numbering gets wrong
> \def\pagefig{\dosingleempty\doPagefig}
> \def\doPagefig[#1]#2#3{
> % calculate image size
> \startfullpagemakeup
> \externalfigure[#3][width=1mm] % dummy to set image as current
> \def\myClipHe
pHeight{\ctxlua{ctxClipHeight("#3", \Resolution)}}
\def\mystartY{\ctxlua{ctxStartY("#3", \Resolution)}}
% image
\setlayerframed[bglayer][%
frame=off,
offset=overlay,
x=21mm,
y=\mystartY,
height=\myClipHeight,
width=\textwidth,
align=flushleft,
]{%
>\structureuservariable{subtitle}}%
> >%\stoplinecorrection
> >}% << HERE: % was missing
> > \framed[width=\textwidth,frame=off,align=flushleft]{\ChapterTitleFont
> #2}
> > }
>
> Thank you, but those existed only in an old version.
> Cur
}
Thank you, but those existed only in an old version.
Current is:
\define[2]\ChapterCmd{%
\framed[width=\textwidth,frame=off,align=flushleft,style=\ChapterTitleFont]{#2}%
without framed it’s a hbox?
\setlayerframed[rightmargin]%
[frame=off,width=\outermarginwidth,y=0mm,setups=Subtitle,align=flush
[bgtext]
[x=1in,
y=2.0in,
state=start]
\setlayerframed
[bgtext]
{\setupbodyfont[36pt]@@@}
\definefont
[DVSrB]
[file:DejaVuSerif-Bold.ttf]
\startbuffer[Outer]
\startcolor[blue]
\starteffect
[outer]
{\DVSrB
=2.0in,
state=start]
\setlayerframed
[bgtext]
{\setupbodyfont[36pt]@@@}
\definefont
[DVSrB]
[file:DejaVuSerif-Bold.ttf]
\startbuffer[Outer]
\startcolor[blue]
\starteffect
[outer]
{\DVSrB ???}
\stopeffect
\stopcolor
around.
\startbuffer
\startstandardmakeup
\setlayerframed
[blocks]
[preset=lefttop,
frame=off,
align=right]{
\startlines
Line one on the left
Line two on the left
\stoplines
}
\setlayerframed
[blocks]
[preset=ri
t;>
>> \starttext
>> \test{Something
>> \startlines
>> Line one
>> Line two
>> \stoplines}
>> \stoptext
>>
>> Depending on what you want to do, it should be possible to come up with
>> a workaround.
>
> \startbuffer
> \st
, it should be possible to come up with
a workaround.
\startbuffer
\startstandardmakeup
\setlayerframed
[blocks]
[preset=lefttop,
frame=off,
align=right]{
\startlines
Line one on the left
Line two on the left
\stoplines
}
\setlayerframed
; \starttext
> \dorecurse{1}{ % comment to clear error
> \startstandardmakeup
> \setlayerframed
> [blocks]
> [preset=lefttop,
>frame=off,
>align=right]{
> \startlines
> Line one on the left
\dorecurse{1}{ % comment to clear error
\startstandardmakeup
\setlayerframed
[blocks]
[preset=lefttop,
frame=off,
align=right]{
\startlines
Line one on the left
Line two on the left
[whatever]
[height=\paperheight,
width=\paperwidth]
\setuptexttexts
[{\setlayerframed
[whatever]
[preset=middletop,
voffset=1cm]
[foregrondcolor=red,
foregroundstyle=\bfd]
{\pagenumber}}]
\setupexternalfigures
[location=default]
\externalfigure
nnotationcontent` way, but there I get the
>>>> same error. Here's the full example:
>>>>
>>>> \starttext
>>>>
>>>> \definelayer [pagenumber][width=\overlaywidth,height=\overlayheight]
>>>> \defineoverlay[pagenumber][{\dire
tried it the `\placeannotationcontent` way, but there I get the
same error. Here's the full example:
\starttext
\definelayer [pagenumber][width=\overlaywidth,height=\overlayheight]
\defineoverlay[pagenumber][{\directsetup{pagenumber}\tightlayer[pagenumber]}]
\startsetups pagenumber
\setlayerframed
[pagenumber]
[
contents of the annotation. I've
>> also tried it the `\placeannotationcontent` way, but there I get the
>> same error. Here's the full example:
>>
>> \starttext
>>
>> \definelayer [pagenumber][width=\overlaywidth,height=\overlayheight]
>> \defineoverlay[pagenu
rttext
\definelayer [pagenumber][width=\overlaywidth,height=\overlayheight]
\defineoverlay[pagenumber][{\directsetup{pagenumber}\tightlayer[pagenumber]}]
\startsetups pagenumber
\setlayerframed
[pagenumber]
[preset=rightbottom]
{\getvariable{table}{p}}
\stopsetups
\define[2]\PageWrapper{\setgvariable{table}
>>
>>>> \starttext
>>>>
>>>> \definelayer [pagenumber][width=\overlaywidth,height=\overlayheight]
>>>> \defineoverlay[pagenumber][{\directsetup{pagenumber}\tightlayer[pagenumber]}]
>>>>
>>>>
>>>>
>>>> \startsetup
ently have.
\starttext
\definelayer [pagenumber][width=\overlaywidth,height=\overlayheight]
\defineoverlay[pagenumber][{\directsetup{pagenumber}\tightlayer[pagenumber]}]
\startsetups pagenumber
\setlayerframed
[pagenumber]
[preset=rightbottom]
{p}
\stopsetups
\bTABLE
\
t;>
>> Here's the minimal example of what I currently have.
>>
>> \starttext
>>
>> \definelayer [pagenumber][width=\overlaywidth,height=\overlayheight]
>> \defineoverlay[pagenumber][{\directsetup{pagenumber}\tightlayer[pagenumber]}]
>>
>>
rlayheight]
\defineoverlay[pagenumber][{\directsetup{pagenumber}\tightlayer[pagenumber]}]
\startsetups pagenumber
\setlayerframed
[pagenumber]
[preset=rightbottom]
{p}
\stopsetups
\bTABLE
\setupTABLE[each][each][background=pagenumber]
\bTR
\bTD multiline \par text \eTD
\bTD
pagenumber}\tightlayer[pagenumber]}]
\startsetups pagenumber
\setlayerframed
[pagenumber]
[preset=rightbottom]
{p}
\stopsetups
\bTABLE
\setupTABLE[each][each][background=pagenumber]
\bTR
\bTD multiline \par text \eTD
\bTD some cell \par with even \par more \par text \
er \starttext or load a font before you set it,
> otherwise context uses a monospace font as fallback.
Many thanks for the tip. But I really use foregroundstyle with
\setlayerframed.
>> \definelayer[test2][x=.5\paperwidth, y=.5\paperheight, state=continue]
> Remove "state=continu
layer content after \starttext or load a font before you set it,
otherwise context uses a monospace font as fallback.
Many thanks for the tip. But I really use foregroundstyle with
\setlayerframed.
This doesn’t matter.
Compare
begin example
\definelayer[test]
\setupbackgrounds[page][back
as fallback.
>>
>> Many thanks for the tip. But I really use foregroundstyle with
>> \setlayerframed.
> This doesn’t matter.
> [...]
> The foregroundstyle setting has no effect in the first example because
> no font was loaded at this point.
You are right, Wolfgang.
Th
\setlayerframed[letterhead][x=\backspace,y=1cm][width=\textwidth,height=2cm,align={middle,lohi}]{First
page}
\else
\setlayerframed[letterhead][x=\backspace,y=1cm][width=\textwidth,height=2cm,align={middle,lohi}]{Second
page}
\fi
\stopsetups
\setupbackgrounds[page][background=letterhead,setups
Am 06.04.2015 um 01:29 schrieb Aditya Mahajan adit...@umich.edu:
Hi,
Is it possible to set 'presets' for the framed settings of \setlayerframed?
For example:
\definelayer[text]
\definelayer[annotate]
\setupbackgrounds[text][background={text,foreground,annotate}]
\starttext
On Mon, 6 Apr 2015, Wolfgang Schuster wrote:
Am 06.04.2015 um 01:29 schrieb Aditya Mahajan adit...@umich.edu:
Hi,
Is it possible to set 'presets' for the framed settings of \setlayerframed?
For example:
\definelayer[text]
\definelayer[annotate]
\setupbackgrounds[text][background={text
Hi,
Is it possible to set 'presets' for the framed settings of
\setlayerframed?
For example:
\definelayer[text]
\definelayer[annotate]
\setupbackgrounds[text][background={text,foreground,annotate}]
\starttext
Testing layers:
\setlayerframed[annotate][x=1cm,y=1cm][frame=off, align=middle
]\ChapterCommand
{\setlayerframed
[chaptertext]
[x=3cm,
y=8cm]
[frame=off]
{#1 – #2}}
\definemakeup[chapterpage][page]
\setupmakeup
[chapterpage]
[pagestate=start,
before={\setupbackgrounds[page][background=chapterimage]},
bottom={\placelayer[chaptertext
=,page=yes,doublesided=no]
\starttext
\dorecurse
{\Mypages}
{\setlayerframed
[Draw]
[x=0mm,y=0mm]
[offset=overlay,frame=off,rightframe=on]
{\externalfigure[\Myfilename][page=\recurselevel]}
\setlayerframed
[Draw]
[x=0mm,y=\dimexpr\paperheight/2]
[offset
[text][background=letterhead]
\starttext
\setlayerframed
[letterhead]
[preset=lefttop]
[offset=0pt,frame=off]
{Some text on line}
\setlayerframed
[letterhead]
[preset=righttop]
[offset=0pt,width=fit,align=flushleft,frame=off,location=top]
{Text in box\\
Longer text in the box
\stopframed
\stoptext
Method 2 (layer based):
\definelayer[letterhead][width=\textwidth]
\setupbackgrounds[text][background=letterhead]
\starttext
\setlayerframed
[letterhead]
[preset=lefttop]
[offset=0pt,frame=off]
{Some text on line}
\setlayerframed
[letterhead]
[preset=righttop
]
\setlayerframed[MyLayer][frame=off]{merge fields}
\setupbackgrounds[page][background={MyLayer}]
\starttext
a
\stoptext
Many thanks for your help,
Pablo
--
http://www.ousia.tk
___
If your question is of interest to others
a layer?
A minimal layer would be:
\definelayer[MyLayer][state=start]
\setlayerframed[MyLayer][frame=off]{merge fields}
\setupbackgrounds[page][background={MyLayer}]
\starttext
a
\stoptext
Many thanks for your help,
Move the \setlayer… command after \starttext or load a font
,
headerdistance=0.5cm,
footer=0.5cm,
top=0.0cm,
topspace=0.0cm,
bottomspace=0.0cm]
\definelayer[sabel]
\startsetups[sabel]
\setlayerframed[sabel][x=0mm,y=0mm][frame=on,offset=none]
{\setupTABLE[column][1][align=right, width=.4\textwidth]%
\setupTABLE[column][2][align=center,width
Thanks Hans,
This is just what I'm looking for.
One last quick question if I may. I've noticed that \setlayerframed is
not in the command reference on the wiki. I guess that by looking at
the source code for Context would be the best way of finding it's
attributes but I don't have a clue
not a regular user of Context. The question I
have is what would be the best way to add text to the various
layers? Some would have quite a lot of text and I was wondering if
would be better to define the text for the different layers in some
way rather than enter into the braces of \setlayerframed
On 5/20/2014 10:07 AM, Keith McKay wrote:
Thanks Hans,
This is just what I'm looking for.
One last quick question if I may. I've noticed that \setlayerframed is
not in the command reference on the wiki. I guess that by looking at
the source code for Context would be the best way of finding
of \setlayerframed. The code would look messy this
way. Finally, can layers be positioned within layers or would it be
better to use overlays? I'm thinking about adding three columns to the
Footer layer.
Thanks for your help
Best Wishes
Keith McKay
\setuplayout
[backspace=0cm,
cutspace=0cm
rather than enter
into the braces of \setlayerframed. The code would look messy this
way. Finally, can layers be positioned within layers or would it be
better to use overlays? I'm thinking about adding three columns to the
Footer layer.
Thanks for your help
Best Wishes
Keith McKay
\setuplayout
for the different layers in
some way rather than enter into the braces of \setlayerframed. The code
would look messy this way. Finally, can layers be positioned within layers
or would it be better to use overlays? I'm thinking about adding three
columns to the Footer layer.
A short
]
\definelayer
[extrafiguretextlayer:r]
[width=\overlaywidth,
height=\overlayheight,
corner={left,top},
location={left,bottom},
x=-1cm]
\startsetups extrafiguretext
\signalouterrealign
\setlayerframed
[extrafiguretextlayer
Perhaps, \startsimplecolumns
Aditya
On Tue, 23 Oct 2012, Mojca Miklavec wrote:
Hello,
this is probably the most trivial question, but I'm still confused:
how can I use two columns inside \setlayerframed?
\startbuffer[abstract]
\startcolumns[two] % doesn't help
\input tufte
\input tufte
On Tue, Oct 23, 2012 at 4:05 PM, Aditya Mahajan wrote:
Perhaps, \startsimplecolumns
Ouch. It seems like I'm asking the same question over and over again,
and always get the same answer - to simplify things ;) This works in
MKIV, but I have some problems with math in MKIV. In MKII this fails
with
On 23-10-2012 16:21, Mojca Miklavec wrote:
On Tue, Oct 23, 2012 at 4:05 PM, Aditya Mahajan wrote:
Perhaps, \startsimplecolumns
Ouch. It seems like I'm asking the same question over and over again,
and always get the same answer - to simplify things ;) This works in
MKIV, but I have some
...@ntg.nl
When replying, please edit your Subject line so it is more specific
than Re: Contents of ntg-context digest...
Today's Topics:
1. Re: Lua in Ctx: require() fails? (Hans Hagen)
2. Re: using two columns on a poster (\setlayerframed) (Hans Hagen)
3. Re: Lua in Ctx: require
]
\startbuffer[abstract]% - this '%' is problematic
\startsimplecolumns
\input tufte
\input tufte
\stopsimplecolumns
\stopbuffer
\setlayerframed[paper]
[voffset=1cm]
[width=0.9\paperwidth]
{\getbuffer[abstract]}
\starttext
abc
\stoptext
Mojca
=]
\definepapersize
[poster]
[width=36cm,height=55cm]
\starttext
\setupbackgrounds[page][background=paper]
\definelayer[paper]
[width=\paperwidth,height=\paperheight]
\startbuffer[title]
\definedfont[Bold at 38pt] Kerning Screw Up
\stopbuffer
\setlayerframed[paper
unwanted vertical space. (I'm not
sure what adds it.)
\definelayer[paper][width=\paperwidth,height=\paperheight]
\startbuffer[abstract]% - this '%' is problematic
\startsimplecolumns
\input tufte
\input tufte
\stopsimplecolumns
\stopbuffer
\setlayerframed[paper]
[voffset=1cm
\definelayer[mylayer]
\setlayerframed
[mylayer]
[x=25mm,
y=85mm,
height=43.5mm,
width=10cm,align=block]
{
\placeformula
\startformula[9pt]
I=\big\{\lambda u(x_0-\pi^H K)+(1-\lambda)[\pi^L u(x_0-K+(1-\pi^L)Z_{L'})
+(1-\pi^L)u(x_0-\pi^L Z_{L'})]\big\} -\big\{\pi^U u(x_0-K+(1-\pi^U)Z_{U
'})\big\}.
\stopformula
\stopdefbackground
\definelayer[mylayer]
\setlayerframed
[mylayer]
[x=25mm,
y=85mm,
height=43.5mm,
width=10cm,align=block]
{
\placeformula
\startformula[9pt]
I=\big\{\lambda u(x_0-\pi^H K)+(1-\lambda)[\pi^L u(x_0-K+(1-\pi^L)Z_{L'})
+(1-\pi^L)u(x_0-\pi
Z_{L'})]\big\} -\big\{\pi^U u(x_0-K+(1-\pi^U)Z_{U'})
+(1-\pi^U)u(x_0-\pi^U Z_{U'})\big\}.
\stopformula
\stopdefbackground
\definelayer[mylayer]
\setlayerframed
[mylayer]
[x=25mm,
y=85mm,
height=43.5mm,
width=10cm,align=block]
{
\placeformula
\startformula[9pt]
I
=]
\setupbodyfont [sans, 58pt]
\setuplayout[nx=2, ny=4]
\setupbackgrounds [page] [background=cropmarks, setups=cropmarks]
\definelayer[cropmarks] [state=repeat]
\startsetups cropmarks
\doifoddpageelse{}{%
\setlayerframed [cropmarks]
[frame=off,
bottomframe
On 2012-06-05 Marco net...@lavabit.com wrote:
[…]
\startsetups cropmarks
\doifoddpageelse{}{%
\setlayerframed [cropmarks]
[frame=off,
bottomframe=on,
leftframe=on,
width=\paperwidth,
height=\paperheight]{}}
\stopsetups
[…]
I don't know why
Am 05.06.2012 um 23:19 schrieb Marco:
On 2012-06-05 Marco net...@lavabit.com wrote:
[…]
\startsetups cropmarks
\doifoddpageelse{}{%
\setlayerframed [cropmarks]
[frame=off,
bottomframe=on,
leftframe=on,
width=\paperwidth,
height=\paperheight
\starttext.
\setupbackgrounds[page][background=bkg]
\definelayer[bkg][x=0mm,y=0mm,width=\paperwidth,height=\paperheight]
\setupbodyfont[modern]
\setlayerframed[bkg][frame=off,width=\paperwidth,height=50mm]{\definedfont[Mono
at 10mm]Some text}
\setlayerframed[bkg][frame=off,width=\paperwidth
]
\setuppagenumbering [state=stop]
\definefont [bkgfont] [Mono at 240mm]
\setupbackgrounds [page] [background=bkg]
\definelayer [bkg]
\setlayerframed [bkg]
[frame=off,
height=50mm,
width=\paperwidth,
foregroundstyle=\ttx]
{Some text}
\setlayerframed [bkg]
[frame=off,
width=\paperwidth
1 - 100 of 217 matches
Mail list logo