box.
BTW, is there a way to have TEXpages numbered? "pagestate=start" seems
not to work here.
for the wiki ...
\starttext
\definelayer[hi]
\startTEXpage[background=hi]
\setbox\scratchbox\hbox\framed
[frame=off,offset=none,align=middle]
{\input{tufte}}%
\
he page counter does not increase in the first iteration an PDf inclusion
but seems to work properly after that. Have attached a sample file (69K)
that will serve to show the problem—at least, on my machine.
\starttext
\setupexternalfigures[location=default]
\setuplayer[preset=middlebottom
After further testing guided by Hans’ suggestion, I now have
\setupexternalfigures[location=default]
\setuplayer[preset=rightbottom, method=overlay]{}
\setuppagenumbering[color=darkmagenta]
\starttext
\getfiguredimensions[HannahBW.pdf]
\dorecurse{\noffigurepages}{
\startTEXpage[pagestate=start
foregroundstyle={\definedfont[Serif at 82pt]}]
> {JOURNEY}
>
> \setlayerframed
> [LAY]
> [x=360pt,
> y=50pt]
> [frame=off,
> width=200pt,
> align={normal,tolerant}]
> {\input ward
> \blank[line]
> \externalfigure[hacker][he
[hacker][height=.4\textheight]}
\flushlayer[LAY]
\stopbuffer
\getbuffer
\page
\setuplayer[LAY][hoffset=4cm,voffset=-2cm]
\getbuffer
\stoptext
Wolfgang
___
If your question is of interest to others as well, please
n bar is at the top. You can easily move
the layer to the bottom with
\setuplayer
[layer:toc:section]
[y=\dimexpr\paperheight-6\exheight\relax]
Marco
___
If your question is of interest to others as well, please ad
\Myfilename{quotes-1}
\def\Mypages{22}
\setuplayout
[topspace=0mm,
backspace=0mm,
margin=0pt,
header=0pt,
footer=0pt,
height=middle,
width=middle,]
\definelayer[Draw][width=\paperwidth,height=\paperheight]
\setuplayer[Draw][preset=lefttop]
\setupmakeup[standard][top=,bottom
On 10/07/2013 10:48 PM, Hans Hagen wrote:
On 10/7/2013 10:04 PM, Pablo Rodríguez wrote:
[...]
I need to insist on this sample, because the layer doesn’t behave as such:
\definelayer[wrongpositioned][x=5000cm, y=5000cm, state=start]
\setuplayer[wrongpositioned]{\startMPcode draw
(0mm,0mm
On 10/07/2013 11:01 PM, luigi scarso wrote:
On Mon, Oct 7, 2013 at 10:04 PM, Pablo Rodríguez wrote:
I need to insist on this sample, because the layer doesn’t behave as
such:
\definelayer[wrongpositioned][x=5000cm, y=5000cm, state=start]
\setuplayer[wrongpositioned
Dear list,
I have the following sample:
\definelayer[wrongpositioned][x=0mm, y=0mm, hoffset=0mm,
voffset=48mm, state=start]
\setuplayer[wrongpositioned]{\startMPcode draw
(0mm,0mm)--(8mm,0mm)--(8mm,38mm)--(14mm,38mm) ; \stopMPcode}
\setupbackgrounds[page][background
On Mon, Oct 7, 2013 at 5:56 PM, Pablo Rodríguez oi...@gmx.es wrote:
Dear list,
I have the following sample:
\definelayer[wrongpositioned][x=0mm, y=0mm, hoffset=0mm,
voffset=48mm, state=start]
\setuplayer[wrongpositioned]{\startMPcode draw
(0mm,0mm)--(8mm,0mm)--(8mm,38mm
=5000cm, y=5000cm, state=start]
\setuplayer[wrongpositioned]{\startMPcode draw
(0mm,0mm)--(8mm,0mm)--(8mm,38mm)--(14mm,38mm) ; \stopMPcode}
\setupbackgrounds[page][background={wrongpositioned}]
\starttext
\input knuth
\stoptext
x and y are outside the page in the layer definition (50 meters
behave as such:
\definelayer[wrongpositioned][x=5000cm, y=5000cm, state=start]
\setuplayer[wrongpositioned]{\startMPcode draw
(0mm,0mm)--(8mm,0mm)--(8mm,38mm)--(14mm,38mm) ; \stopMPcode}
\setupbackgrounds[page][background={wrongpositioned}]
\starttext
\input knuth
\stoptext
x and y are outside
on this sample, because the layer doesn’t behave as such:
\definelayer[wrongpositioned][x=5000cm, y=5000cm, state=start]
\setuplayer[wrongpositioned]{\startMPcode draw
(0mm,0mm)--(8mm,0mm)--(8mm,38mm)--(14mm,38mm) ; \stopMPcode}
\setupbackgrounds[page][background={wrongpositioned}]
\starttext
\input knuth
. What is the meaning of alternative=example;
With the alternative key you select one of the predefined or used defined
styles for the reference, footer etc. blocks.
what is the option preset= in \setuplayer[foot] ?
When you want to change the origin for a layer from the top left margin
understand. What is the meaning of alternative=example;
With the alternative key you select one of the predefined or used defined
styles for the reference, footer etc. blocks.
what is the option preset= in \setuplayer[foot] ?
When you want to change the origin for a layer from the top left
.
6. to control the foldmarks (for US-letter-size paper, omit, etc.)
I have consulted http://wiki.contextgarden.net/Letter but there are many
things I don't understand. What is the meaning of alternative=example;
what is the option preset= in \setuplayer[foot] ?
Also is there a better way
is the option preset= in \setuplayer[foot] ?
Also is there a better way to manage color? I \definecolor, \startcolor,
\stopcolor, but maybe there is a better way to indicate that certain
sections of the letter should be in a color. Thanks.
Thank you very much for your guidance.
Yours,
Michael
consulted http://wiki.contextgarden.net/Letter but there are many
things I don't understand. What is the meaning of alternative=example;
what is the option preset= in \setuplayer[foot] ?
Also is there a better way to manage color? I \definecolor, \startcolor,
\stopcolor, but maybe
of alternative=example;
what is the option preset= in \setuplayer[foot] ?
Also is there a better way to manage color? I \definecolor, \startcolor,
\stopcolor, but maybe there is a better way to indicate that certain
sections of the letter should be in a color. Thanks.
Thank you very much for your
=]
\setuprotate[location=depth,rotation=180]
% \showframe
\starttext
% page one
\definelayer[PageLayer1][position=no]
\setuplayer
[PageLayer]
[preset=topleft,
height=\paperheight,width=\paperwidth]
\setlayer[PageLayer1][x=0mm,y=0mm]{
\rotate{
\externalfigure[libretto.pdf][page=13
,
footer=0pt,
margin=0pt,
marking=on,
width=320mm,
height=440mm,
location=middle]
\setuppagenumbering[alternative=doublesided,location=]
\setuprotate[location=depth,rotation=180]
% \showframe
\starttext
% page one
\definelayer[PageLayer1][position=no]
\setuplayer
it should/could/might work, and probably
these ideas are different than Hans'. So I'm going to briefly
describe my idea (already modified by the answers) and please tell me
what's wrong with it.
So I imagine that \definelayer / \setuplayer defines a rectangular
shape on the page, possibly
work, and probably
these ideas are different than Hans'. So I'm going to briefly
describe my idea (already modified by the answers) and please tell me
what's wrong with it.
So I imagine that \definelayer / \setuplayer defines a rectangular
shape on the page, possibly framed/colored/etc
what's wrong with it.
So I imagine that \definelayer / \setuplayer defines a rectangular
shape on the page, possibly framed/colored/etc., which is going to
appear on all pages (default) or on selected ones. The contents of
layers are set with \setlayer, (with some - mysterious for me
/might work, and probably these
ideas are different than Hans'. So I'm going to briefly describe my
idea (already modified by the answers) and please tell me what's wrong
with it.
So I imagine that \definelayer / \setuplayer defines a rectangular shape
on the page, possibly framed/colored/etc., which
Am 21.02.2011 um 11:47 schrieb Andrea Valle:
Hi Aditya,
thanks for your reply and sorry for my late reply, I've been kidnapped by
another work...
I'd go with the layer solution.
But I don't know to insert a layer for each pdf page.
Could you please provide some hints?
\setuplayer
of a font. I hope
that there is a more robust solution so that
\setuplayer[...]{...}
\starttext
...
\stoptext
just works.
The bodymatter enviroment isn’t necessary here because it’s always enabled
when you other sectionblockenvironment is used but it’s useful to have
something which separates
one time.
If this is true then I can also see that there ought to a parameter that sets
the stacking order of the layer...
So I think I need to know about \setuplayer (just guessing)
But:
http://wiki.contextgarden.net/Command_Syntax/Missing#layer_commands
So if any one of you kind people can
.
However I can only find examples and documentation for single layers in use
at any one time.
If this is true then I can also see that there ought to a parameter that
sets the stacking order of the layer...
So I think I need to know about \setuplayer (just guessing)
But:
http
, but there is no way to activate and configure this
layer. I've tried it with \setupletter[backaddress][...] and
\setuplayer[backaddress][...].
Enable it with \setupletterstyle[backaddress=yes], it's disabled by default.
Wolfgang
letter.tex
Description: TeX document
which should be typeset above
the addressee.
Page 44 of the documentation illustrates amongst other layers the back
address layer, but there is no way to activate and configure this
layer. I've tried it with \setupletter[backaddress][...] and
\setuplayer[backaddress][...].
Maybe someone have
the back
address layer, but there is no way to activate and configure this
layer. I've tried it with \setupletter[backaddress][...] and
\setuplayer[backaddress][...].
Enable it with \setupletterstyle[backaddress=yes], it's disabled by default.
Wolfgang
[dvipsone]
\starttext
\definelayer[pagenumber]
\setuplayer
[pagenumber]
[width=\paperwidth,
height=\paperheight,
state=repeat]
\setlayer[pagenumber][preset=lefttop,x=4in,y=5.5in]%
{\framed[width=1.25in,align=middle,offset=none]{\tfx Page
margins
on every page but you can use the left and right keys for
\page, \setuplayer etc.
Wolfgang
___
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context@ntg.nl
the left and right keys for
\page, \setuplayer etc.
So I did the following with the above code:
% \setuplayout[location=doublesided]
\setuppagenumbering[
location={footer,middle},
alternative=doublesided,
option=doublesided,
style=\em\tfx,
way=bytext,
]
What does the option
alternative={singlesided,doublesided},
this this a normal single sided document with the same margins
on every page but you can use the left and right keys for
\page, \setuplayer etc.
So I did the following with the above code:
% \setuplayout[location=doublesided]
\setuppagenumbering
with
\setuppagenumbering[alternative=doublesided], ConTeXt has also
a special settings alternative={singlesided,doublesided},
this this a normal single sided document with the same margins
on every page but you can use the left and right keys for
\page, \setuplayer etc.
So I did the following
[language code][settings]
# \setuplayer
\setuplayout[options]
\setuplegend[options]
\setuplinenumbering[options]
\setuplines[options]
\setuplinewidth[dimension]
\setuplist[names][options]
\setupmakeup[name][options]
\setupmarginblocks[options]
\setupmarginrules[level=number|rulethickness=dimension
,
state=repeat,
doublesided=true,
]
\setuplayer[lefttitle][
x=\backspace,
]
\definelayer[desc][
x=\backspace,
y=\topspace,
width=\wddesc,
height=\htdesc,
state=repeat,
doublesided=true,
]
\setuplayer[leftdesc][
x=\dimexpr\backspace+\wdall-\wddesc
to override the
left/right settings of a layer, so I tried
\definelayer[title][
x=\dimexpr\backspace+\wdall-\wdtit,
y=\topspace,
width=\wdtit,
height=\httit,
state=repeat,
doublesided=true,
]
\setuplayer[lefttitle][
x=\backspace,
]
\definelayer[desc][
x=\backspace,
y=\topspace
have a doublesided
option. This apparently allows you to override the
left/right settings of a layer, so I tried
\definelayer[title][
x=\dimexpr\backspace+\wdall-\wdtit,
y=\topspace,
width=\wdtit,
height=\httit,
state=repeat,
doublesided=true,
]
\setuplayer[lefttitle][
x
\starttext
\setupframed[offset=overlay,align=normal,frame=off,width=\parwidth,height=\parheight]
\startproperty[hidden]
I need some text to get the page... but also need to hide this text !
\stopproperty
\definelayer[PageLayer][position=yes]
\setupbackgrounds[page][background=PageLayer]
\setuplayer
!
\stopproperty
\definelayer[PageLayer][position=yes]
\setupbackgrounds[page][background=PageLayer]
\setuplayer[PageLayer][position=no,corner=bottom,height=\paperheight]
% sample geometry
\setlayer[PageLayer][x=.5\paperwidth,y=.25\paperheight,location=c]{\useMPgraphic{CDShape}}
\setlayer[PageLayer][x=.5
withcolor .85white ; draw b ;
draw p withcolor black;
setbounds currentpicture to a ;
\stopuseMPgraphic
\definelayer[bglayer][position=yes]
\setupbackgrounds[text][background=bglayer]
\setuplayer[bglayer][position=no,corner=bottom,height=\paperheight]
\starttext
\startbuffer[first
yer][position=yes]
\setupbackgrounds[text][background="">
\setuplayer[bglayer][position=no,corner=bottom,height=\paperheight]
\starttext
\startbuffer[first]
\setlayer[bglayer][x=.55\textwidth,y=.9\textheight,location=b]{
\FrameTitle{Knuth}
\StartFrame[width=.75\textwidth]
Hi Paul,
Paul Jones wrote:
Hello,
I have used Latex in the past and have the following code that inserts
information on certain pages using afterpage. Is there some way to do a
similar thing in context?
\setupoutput[pdf]
\definelayer[info]
\setuplayer[info]
[height=\paperheight,width
Peter Rolf wrote:
Hi Paul,
Paul Jones wrote:
Hello,
I have used Latex in the past and have the following code that inserts
information on certain pages using afterpage. Is there some way to do a
similar thing in context?
\setupoutput[pdf]
\definelayer[info]
\setuplayer
]
\setuplayer[info]
[height=\paperheight,width=\paperwidth]
\setupbackgrounds[page]
[background={text,info}]% info layer is above normal text layer
\def\WhichPage#1{%
\def\docommand##1{\ifnum\pageno=##1\relax
\setlayerframed[info][x=20mm,y=\dimexpr\paperheight-15mm,location=r
}
\fi
\definelayer[chapter]
\setuplayer[chapter][width=\textwidth,height=\ChapterHeight,offset=.5ex]
\setlayer[chapter][preset=righttop] {\box0}
\setlayer[chapter][preset=lefttop] {\box2}
\setlayer[chapter][preset=leftbottom]{\box4}
\framed[offset=overlay]{\tightlayer
{grund}
path p ; p := (0cm,0cm)--(24cm,0cm)--(24cm,18cm)--(0cm,18cm)--cycle
;
drawoptions(withpen pencircle scaled 0.1mm withcolor \MPcolor{hegr})
;
fill p ;
\stopuseMPgraphic
\definelayer[grund]
\setuplayer[grund][state=repeat]
\setlayer[grund][present=righttop,width=\textwidth,height
=\textheight
0.1mm withcolor \MPcolor{migr})
;
fill p ;
\stopuseMPgraphic
\startuseMPgraphic{grund}
path p ; p := (0cm,0cm)--(24cm,0cm)--(24cm,18cm)--(0cm,18cm)--cycle
;
drawoptions(withpen pencircle scaled 0.1mm withcolor \MPcolor{hegr})
;
fill p ;
\stopuseMPgraphic
\definelayer[grund]
\setuplayer[grund][state
be on
the first page, not repeated;
\setuplayer[LAYERNAME][repeat=yes]
\setlayer[LAYERNAME][x=??, y=20mm, location=c]{your status line}
x should be (CROPLeftX+CROPrightX)/2
not tested
Greetings, Peter
\framed - I can give the frame a height like 1.3\textheight, but then
the position
:12 PM, Peter Rolf wrote:
\setuplayer[LAYERNAME][repeat=yes]
\setlayer[LAYERNAME][x=??, y=20mm, location=c]{your status line}
x should be (CROPLeftX+CROPrightX)/2
not tested
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl
, at 1:12 PM, Peter Rolf wrote:
\setuplayer[LAYERNAME][repeat=yes]
\setlayer[LAYERNAME][x=??, y=20mm, location=c]{your status line}
x should be (CROPLeftX+CROPrightX)/2
not tested
___
ntg-context mailing list
ntg-context@ntg.nl
http
Jin-Hwan Cho wrote:
On Aug 13, 2005, at 1:10 AM, Hans Hagen wrote:
\defineframed[Shaped][background=Shape,frame=off,location=low]
Thanks. Still I could not get the right figure with
\setuplayer[BackLayer][direction=reverse]
Even though direction=reverse option was given, I got only
On Aug 13, 2005, at 1:10 AM, Hans Hagen wrote:
\defineframed[Shaped][background=Shape,frame=off,location=low]
Thanks. Still I could not get the right figure with
\setuplayer[BackLayer][direction=reverse]
Even though direction=reverse option was given, I got only the first
figure. Means
Jin-Hwan Cho wrote:
On Aug 13, 2005, at 1:10 AM, Hans Hagen wrote:
\defineframed[Shaped][background=Shape,frame=off,location=low]
Thanks. Still I could not get the right figure with
\setuplayer[BackLayer][direction=reverse]
Even though direction=reverse option was given, I got only
Vit Zyka wrote:
Jin-Hwan Cho wrote:
On Aug 13, 2005, at 1:10 AM, Hans Hagen wrote:
\defineframed[Shaped][background=Shape,frame=off,location=low]
Thanks. Still I could not get the right figure with
\setuplayer[BackLayer][direction=reverse]
Even though direction=reverse option
Hallo,
commands for layers (\setuplayer, ...) are missing in the texshow. What
is the mechanism to add them?
vit
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
][\theXMLarguments{fox}]}}
\def\foxaction #1{\expanded{#1[\theXMLarguments{fox}]}}
% layers
\defineXMLcommand
[fx:definelayer] [fox] [label=default]
{\initializefox
\expanded{\definelayer[\foxlabel]}%
\expanded{\setuplayer[\foxlabel][\foxarguments]}}
\defineXMLcommand
[fx:setuplayer] [fox] [label
margins within the default layout ?
Is this in relation with margin and opposite blocks ?
depends on what you want to do; an option is to make A6 pages and to
impose the pages; another option is to use layers:
\setuplayout
[page]
\definelayer[lt] \setuplayer[lt][width=.5\textwidth,height=.5
\baselinerightbox#1%
{\normalhbox
{\setbox0\placedbox{#1}%
\global\boxhdisplacement\boxoffset
\global\boxvdisplacement-\boxoffset
\boxcursor\hskip\boxhdisplacement\raise-\boxvdisplacement\box0}}
\protect
\definelayer[text] \setupbackgrounds[text][background=text]
\setuplayer[text][width
63 matches
Mail list logo