]
\setupbackgrounds[page][background=color,backgroundcolor=black]
\page[empty,right]
\popbackground}
\stopsetups
\setuphead
[chapter]
[page=yes,
before=\directsetup{chapter:before}]
\starttext
\startchapter[title={Knuth}]
\dorecurse{10}{\samplefile{knuth}}
\stopchapter
yer[ZStrike][hoffset=0mm,
voffset=0mm]{\framed[frame=on,width=60mm,height=24mm]{\useMPgraphic{ZRule}}}
% arrange the "background" layers
\setupbackgrounds[text][background={datatable,foreground,ZStrike}]
\blank[force, 28mm]
further content
\stoptext
___
Hello,
this may have been posted here some time before, but - would it be possible to
extend \noheaderandfooterlines command to temporarily suppress bottom frame,
too?
Suppose having the following code:
\setupheadertexts[left][right]
\setupbackgrounds[header][bottomframe=on]
\starttext
]
\setupbackgrounds[page][background=resources]
\setupbodyfont[100pt]
\starttext\bf\ss
\setlayer[resources]{\placerenderingwindow[example][mysound]}
\startTEXpage
\button{start}[StartSoundTrack]
\button{stop}[StopSoundTrack
]
%~ [embed]
\definereference [StartSoundTrack] [StartRendering{mysound}]
\definereference [StopSoundTrack] [StopRendering{mysound}]
\definelayer[resources][width=\paperwidth,height=\paperheight]
\setupbackgrounds[page][background=resources]
\setupbodyfont[100pt
frame=off,background=color, backgroundcolor=hs-dunkelblau,width=102mm, height=303mm]{}}
\showframe
\starttext
\setupbackgrounds[page][background=blau]
\startstandardmakeup
\externalfigure [../bilder/example.png] [width=\textwidth]
\blank[5*big]
\externalfigure [../bilder/logo.svg] [width=\textwidth]
\stops
\defineoverlay
[pagedecoration]
[\useMPgraphic{pagedecoration}]
\setupbackgrounds
[page]
[background=pagedecoration,
backgroundcolor=lightblue]
\startuseMPgraphic{pagedecoration}
distanceSmall := 3mm;
distanceBig := distanceSmall;
bleed := 3mm;
if PageNumber==1:
path pageOne;
pageOn
> \setuplayout
> [topspace=10mm,
> header=\zeropoint,
> footer=10mm,
> height=middle,
> backspace=20mm,
> width=middle]
>
> \setupbackgrounds
> [header]
> [text]
> [frame=off,
> topframe=on,
> bottomframe=o
=middle,
backspace=20mm,
width=middle]
\setupbackgrounds
[header]
[text]
[frame=off,
topframe=on,
bottomframe=on,
framecolor=red,
rulethickness=1pt]
\setupheadertexts
[First page]
\starttext
\dorecurse{8}{\input knuth} % ok
% \dorecurse{8}{\input
=middle,
backspace=20mm,
width=middle]
\setupbackgrounds
[header]
[text]
[frame=off,
topframe=on,
bottomframe=on,
framecolor=red,
rulethickness=1pt]
\setupheadertexts
[First page]
\starttext
\dorecurse{8}{\input knuth} % ok
% \dorecurse{8}{\input
,
backspace=20mm,
width=middle]
\setupbackgrounds
[header]
[text]
[frame=off,
topframe=on,
bottomframe=on,
framecolor=,
rulethickness=1pt]
\setupinteraction[state=start]
\setupfooter[margin][strut=no]
\setupfootertexts[{Page \pagenumber\ of \goto{\lastpagenumber
-mp3
[akkerman.mp3]
[embed]
\definereference [StartSoundTrack] [StartRendering{mysound}]
\definereference [StopSoundTrack] [StopRendering{mysound}]
\definelayer[resources][width=\paperwidth,height=\paperheight]
\setupbackgrounds[page][background=resources
]
\definereference [StartSoundTrack] [StartRendering{mysound}]
\definereference [StopSoundTrack] [StopRendering{mysound}]
\definelayer[resources][width=\paperwidth,height=\paperheight]
\setupbackgrounds[page][background=resources]
\starttext
\setlayer[resources
m,
>topspace=10mm,
>bottomspace=10mm,
>header=10mm,
>footer=10mm,
>footerdistance=10mm,
>headerdistance=10mm]
>
> \definelayout
> [firstpage]
> [header=empty]
>
>
> \setupbackgrounds[header][text][bottomframe=on]
>
&g
head[title][commandbefore={}]
\setuplayout
[height=middle,
width=middle,
backspace=2cm,
topspace=10mm,
bottomspace=10mm,
header=10mm,
footer=10mm,
footerdistance=10mm,
headerdistance=10mm]
\definelayout
[firstpage]
[header=empty]
\setupbackgrounds[header][text][b
\bold \MPtext{Pare3}
etex, (0, -50))
withcolor yellow
;
\stopuseMPgraphic
% Overlays
\defineoverlay[Pare][\useMPgraphic{Pare}]
\setupbackgrounds[page][background={foreground,Pare}]
\starttext
\startTEXpage[width=210mm,height=297mm]
Aaa
\stopTEXpage
\stoptext
Here, t
ow
;
\stopuseMPgraphic
% Overlays
\defineoverlay[Pare][\useMPgraphic{Pare}]
\setupbackgrounds[page][background={foreground,Pare}]
\starttext
\startTEXpage[width=210mm,height=297mm]
Aaa
\stopTEXpage
\stoptext
Here, texts "1" and "U" are not rendered; if you change
=middle]
\definelayout[1][noheader]
\setuppagenumbering
[alternative=,
location={footer,right]
\setupbackgrounds[header][text]
[frame=off,
bottomframe=on,
framecolor=gray
t; …
depending on the age of the project. And I fail to find a project
using transparent shading where the transparency is done in context.
I could not get it working now on the older versions. Maybe you're
right and it has never worked the way I thought it had. Sorry for
the noise.
>
this used to work pre 2016:
\setupbackgrounds [page] [background=color, backgroundcolor=lightgray]
\definecolor [trans] [a=multiply, t=1, s=1]
\starttext
\startMPcode
path p; p:=fullsquare xyscaled (5cm, 5cm);
fill p
withshading("linear", ulcorner p, llcorner p)
withfrom
ransparent. For
instance this used to work pre 2016:
\setupbackgrounds [page] [background=color, backgroundcolor=lightgray]
\definecolor [trans] [a=multiply, t=1, s=1]
\starttext
\startMPcode
path p; p:=fullsquare xyscaled (5cm, 5cm);
fill p
withshading("linear", ulcorner
;) doesn't work here
withshadecolors (white, white) withtransparency (0, .7);
\stopuseMPgraphic
%% to illustrate the effect, actual background is white
\setupbackgrounds [page] [background=color, backgroundcolor=lightgray]
\defineoverlay [gradient-mp] [\useMPgraphic{trans}]
%% requires external
}
>
>
>
> \setlayerframed[myfigure][][frame=off,foregroundstyle=Title,foregroundcolor=middlecyan]{123456789}
>
> \setupbackgrounds[page][background={myfigure}]
>
>
> When you set a layer with the background key it is placed *behind* the
> content
> of the page but you can
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
]{\framed[frame=off]{\Title
\color[middlecyan]{123456789}}}
\setupbackgrounds[page][background={myfigure}]
\stoptext
Marcus Vinicius
mwe.tex
Description: TeX document
mwe.pdf
Description: Adobe PDF document
om,hoffset=.25in,voffset=.25in,
background=color,backgroundcolor=yellow]
{\externalfigure[cow.pdf]}
\stopsetups
\setupbackgrounds [page]
[setups=testpage,background={testpage}]
\starttext
\startmakeup [testpage]
\framed[backgr
ound=color,backgroundcolor=yellow]
{\externalfigure[cow.pdf]}
\stopsetups
\setupbackgrounds [page]
[setups=testpage,background={testpage}]
\starttext
\startmakeup [testpage]
\framed[background=color,backgroundco
lor=yellow]
{\externalfigure[cow.pdf]}
\stopsetups
\setupbackgrounds [page]
[setups=testpage,background={testpage}]
\starttext
\startmakeup [testpage]
\framed[background=color,backgroundcolor=yellow]
{\externalfigure[cow.pdf]}
\
ps BG
\defineoverlay[bg][\useMPgraphic{crux}]
\setupbackgrounds[page][background=bg]
\stopsetups
\definestartstop[BG][commands=\setups{BG}]
% misc
\setupheadtext[en][pubs=]
\setupheadtext[en][content=]
\setupheadtext[en][index=]
\setuplabeltext[en][figure=??\;]
\setuplabeltext[en][tab
what I mean, see MWE below.
Cheers, Henri
---
\definelayer
[pagebg]
[width=\textwidth,
height=\textheight]
\setupbackgrounds
[text][background=pagebg]
\showframe
\starttext
\setlayer
[pagebg]
[voffset=.25\exheight] % why?
{\vbox{\strut\input lorem\par}}
\input lorem
---
\definelayer
[pagebg]
[width=\textwidth,
height=\textheight]
\setupbackgrounds
[text][background=pagebg]
\showframe
\starttext
\setlayer
[pagebg]
[voffset=.25\exheight] % why?
{\vbox{\strut\input lorem\par}}
\input lorem\par
\stoptext
caled 10pt
withcolor "PositionColor" ;
fi ;
StopPage ;
\stopuseMPgraphic
* How can I protect background color of SomeGreenB to be green and not
blue?
just look at the definitions you load ...
\definecolor [MyBackgroundColor] [s=.85]
\setupbackgrounds
[p
olor
contrastcolor ;
fi ;
StopPage ;
\stopuseMPgraphic
\setupbackgrounds
[text]
[background={PageShape}]
\starttext
\setupdocument[title={Title},location={Place}]
\startdocument
\definecolor[BackgroundColor][r=0,g=.7,b=0]
\startTopic[title={Topic Green}]
Some text A
\start
]
{\myrotatedtext}
\setupbackgrounds[page][background=myrotatedlayer]
\starttext
\input knuth
\stoptext
%% end rotated-text.tex
> On 2 Feb 2018, at 12:41, dr. Hans van der Meer <havdm...@ziggo.nl> wrote:
>
> I would like to put a (rotated) tex
\setupbackgrounds [page][setups=placeisbn,background=isbn]
\startmakeup [cover4]
\scale [width=\textwidth] {\red \Title}
\stopmakeup
\stoptext
For me (Win64, current standalone beta), compilation halts with:
lua error > lua error on line 4 in file
figure[cow.pdf][width=3cm]}
\stopsetups
\starttext
\setupbackgrounds [page][setups=placeisbn,background=isbn]
\startmakeup [cover4]
\scale [width=\textwidth] {\red \Title}
\stopmakeup
\stoptext
For me (Win64, current standalone beta), compilation halts with:
lua error
er [isbn][preset=rightbottom,hoffset=5mm,voffset=5mm]
> {\externalfigure[cow.pdf][width=3cm]}
> \stopsetups
> \starttext
> \setupbackgrounds [page][setups=placeisbn,background=isbn]
> \startmakeup [cover4]
> \scale [width=\textwidth] {\red \
\Title {A Primer on Omphaloskepsis}
\startsetups [placeisbn]
\setlayer [isbn][preset=rightbottom,hoffset=5mm,voffset=5mm]
{\externalfigure[cow.pdf][width=3cm]}
\stopsetups
\starttext
\setupbackgrounds [page][setups=placeisbn,background=isbn
Hello,
suppose the following code:
\setuplayout[header=5mm,headerdistance=5mm,]
\setupbackgrounds[header][text][bottomframe=on]
\setupheadertexts[left][right]
\starttext
Page 1
\page[empty,blank]
Page 2
\stoptext
Page 2 in this sample is empty - no text and no header/footer
Hi Pablo,
Thank you so much !
Fabrice
%\setupbackgrounds[header][text][bottomframe=on]
\setuphead
[chapter]
[header=empty]
\setupheader[text][after=\vskip 1pt \hrule]
\starttext
\starttitle[title={\bf My Book}]
\stoptitle
\placelist[chapter,section][alternative=c]
\stoptext
2017-08
Hi,
How to proceed so that the text of the head is not on the page with the
table of contents and pages with the title of the chapter ?
Thanks
Fabrice
\setuplayout
[
header=\lineheight,
headerdistance=\lineheight,
]
\setupbackgrounds[header][text][bottomframe=on]
\setupheadertexts
=]
\setupfootertexts[\tfxx Page \pagenumber\,/\,\lastpage][]
\definecolor[darkgray] [s=.25]
\setupbackgrounds
[header]
[text]
[
frame=off,
bottomframe=on,
framecolor=darkgray,
rulethickness=2pt,
]
\defineframed[headerframed]
[
frame=off, % For visualization set
r me if I compile the Aditya file.
>>> I have another problem with a simple structure. I created the file
>>> MyLayout.tex containing the macro and I want to call this macro in the
>>> dm1.tex file, but it does not work.
>>> Thank you
>>> Fabrice
>>&g
aderdistance=\lineheight]
\setupbackgrounds
[header]
[text]
[
frame=off,
bottomframe=on,
framecolor=darkgray,
rulethickness=2pt,
]
\defineframed[headerframed]
[
gt;>> I have another problem with a simple structure. I created the file
>>> MyLayout.tex containing the macro and I want to call this macro in the
>>> dm1.tex file, but it does not work.
>>> Thank you
>>> Fabrice
>>>
>>> #
>>
e
>>
>> #
>> MyLayout.tex
>> #
>>
>> % macros=mkvi
>>
>> \startenvironment MyLayout
>>
>> \setuplayout
>>[header=3\lineheight,
>> headerdistance=\lineheight]
>>
>> \setupbackg
macros=mkvi
\startenvironment MyLayout
\setuplayout
[header=3\lineheight,
headerdistance=\lineheight]
\setupbackgrounds
[header]
[text]
[
frame=off,
bottomframe=on,
framecolor=darkgray,
rulethickness=2pt,
]
\
out
>[header=3\lineheight,
> headerdistance=\lineheight]
>
> \setupbackgrounds
> [header]
> [text]
> [
> frame=off,
> bottomframe=on,
> framecolor=darkgray,
> rulethickness=2pt,
> ]
>
> \defineframed[headerframed]
&g
#
MyLayout.tex
#
% macros=mkvi
\startenvironment MyLayout
\setuplayout
[header=3\lineheight,
headerdistance=\lineheight]
\setupbackgrounds
[header]
[text]
[
frame=off,
bottomframe=on,
framecolor=darkgray,
rulethickness=2pt,
]
\defineframed
\startenvironment MyLayout
\setuplayout
[header=3\lineheight,
headerdistance=\lineheight]
\setupbackgrounds
[header]
[text]
[
frame=off,
bottomframe=on,
framecolor=darkgray,
rulethickness=2pt,
]
\defineframed[headerframed]
[
frame=off
create three \vbox. Can we simplify
> this code a bit ?
> >>> Thank you
> >>> Fabrice
> >>
> >> Use the optional argument of the new framed you defined.
> >
> > In addition to that, you can also simplify other things as well. T
plify
> this code a bit ?
> >>> Thank you
> >>> Fabrice
> >>
> >> Use the optional argument of the new framed you defined.
> >
> > In addition to that, you can also simplify other things as well. This is
> how I would have done it:
> >
>
three \vbox. Can we simplify this
>>> code a bit ?
>>> Thank you
>>> Fabrice
>>
>> Use the optional argument of the new framed you defined.
>
> In addition to that, you can also simplify other things as well. This is how
> I would have done it:
>
ox. Can we simplify
> this code a bit ?
> >>> Thank you
> >>> Fabrice
> >>
> >> Use the optional argument of the new framed you defined.
> >
> > In addition to that, you can also simplify other things as well. This is
> how I would have don
> I would have done it:
>
> % macros=mkvi
> \showframe
>
> \setuplayout
> [header=3\lineheight,
>headerdistance=\lineheight]
>
> \setupbackgrounds
> [header]
> [text]
> [
>frame=off,
>bottomframe=on,
>framecolor=dar
also simplify other things as well. This is
how I would have done it:
% macros=mkvi
\showframe
\setuplayout
[header=3\lineheight,
headerdistance=\lineheight]
\setupbackgrounds
[header]
[text]
[
frame=off,
bottomframe=on,
framecolor=darkgray,
rulethickness=2pt
headerdistance=\lineheight]
\setupbackgrounds
[header]
[text]
[frame=off,
bottomframe=on,
framecolor=darkgray,
rulethickness=2pt]
\defineframed
[headerframed]
[frame=off,width=fit,height=\headerheight]
\starttexdefinition MyHeader #where #day #month #year #titl
Hello,
To get the alignment, I had to create three \vbox. Can we simplify this
code a bit ?
Thank you
Fabrice
% macros=mkvi
\setuplayout
[header=3\lineheight,
headerdistance=\lineheight]
\setupbackgrounds[header][text]
[frame=off,
bottomframe
;""""""""""""""""""""""""""""""""""""""""
\switchtobodyfont[11pt]
\definelayout
,
>topspace=\lineheight]
>
> \setuplayout
> [header=\zeropoint,
>headerdistance=3\lineheight,
>backspace=2cm,
>width=middle,
>topspace=2cm]
>
> \definelayout[1][noheader]
>
> \setupbackgrounds[header,state=st
[1][noheader]
\setupbackgrounds[header,state=start][text][frame=off,
bottomframe=on,framecolor=gray,rulethickness=2pt]
\setupheader[style=bold]
\setuppagenumbering
[alternative=,
location=footer]
\defineframed[headerframed]
[frame=off,
Hello,
How do I make the header appear on the first page only ?
Thank you
Fabrice
\setuplayout
[header=2\lineheight,
headerdistance=\lineheight,
backspace=2cm,
width=middle,
topspace=\lineheight]
\setupbackgrounds[header,state=start][text][frame=off,
bottomframe=on,framecolor=gray
lsemarkedpage{chapter}{CHAPTER}{}]
>
> \setupbackgrounds
> [page]
> [background=whatever]
>
> \starttext
> test \page test \page test \chapter{OEPS}
> test \page test \page test \chapter{OEPS}
> \stoptext
>
> --
>
> ---
in next beta
% \setuphead[chapter][after={\markpage[chapter][+1]}]
\setuphead[chapter][after={\markpage[chapter]\blank[2*big]}]
\defineoverlay
[whatever]
[\doifelsemarkedpage{chapter}{CHAPTER}{}]
\setupbackgrounds
[page]
[background=whatever]
\starttext
test \page test \page test
> on chapter pages?
>
> one of the many ways ...
>
> \definelayer
> [chapter]
> [width=\paperwidth,
>height=\paperheight]
>
> \defineoverlay
> [pagebackground]
> [\directsetup{pagebackground}]
>
> \setupbackgrounds
> [page]
> [background=pageb
=\paperheight]
\defineoverlay
[pagebackground]
[\directsetup{pagebackground}]
\setupbackgrounds
[page]
[background=pagebackground]
\startsetups pagebackground
\doifelsemode {chapterpage} {
\setlayer
[chapter]
[preset=middle]
{\scale[width=\textwidth
Thank you for your answer, Henning.
I am sorry, but it does not work. The problem is that I don't have the
marking text in the header, but in overlays in the margins. I tried to
replace your
\setupheadertexts[][][][]
inside the setup with
\setupbackgrounds[text][rightmargin][background=]
t have the
marking text in the header, but in overlays in the margins. I tried to
replace your
\setupheadertexts[][][][]
inside the setup with
\setupbackgrounds[text][rightmargin][background=]
but with no luck. But maybe you are right that one should use setups.
/Mikael
]
\setupbackgrounds[text][rightmargin][background=mymargin]
\starttext
\chapter{Foo}
\dorecurse{15}{\section{Bar}\input ward\par}
\stoptext
___
If your question is of interest to others as well, please add an entry
Hi Aditya,
\defineframed
[headerframed]
[
...,
location=depth,
...,
]
Fabrice
2017-08-01 12:21 GMT+02:00 Fabrice Couvreur :
> Hi Aditya,
> Neither command responds to what I'm trying to do. I will try to be
> clearer. If we look at the
Hi Aditya,
Neither command responds to what I'm trying to do. I will try to be clearer. If
we look at the letter J, it touches the bottom line of the frame. I would
like the space to be bigger between the header and the bottom line.
Thank you
Fabrice
2017-07-31 21:30 GMT+02:00 Aditya Mahajan
regards.
Kind regards
\blank [line]
X
\page
\stopxmlsetups
\setuppagenumbering [state=stop]
\definelayer[address][width=\paperwidth,height=\paperheight]
\setupbackgrounds [page][background={address}]
\starttext
\xmlprocessbuffer{main}{participants}{}
\stoptext
brieftekst-test.tex
\blank [line]
\input knuth \relax
Kind regards
\blank [line]
X
\page
\stopxmlsetups
\setuppagenumbering [state=stop]
\definelayer[address][width=\paperwidth,height=\paperheight]
\setupbackgrounds [page][background={address}]
\starttext
\xmlprocessbuffer{main}{
On Mon, 31 Jul 2017, Fabrice Couvreur wrote:
https://tex.stackexchange.com/questions/84425/fancyhdr-equivalent-in-context
Hello,
I considered the solution proposed by Aditya. How to have a larger space
between the title and the bottomframe ?
What do you mean by "title"? If you mean the space
\lineheight,
headerdistance=\lineheight,
backspace=2cm,
width=middle,
topspace=2cm]
\setupbackgrounds[header][text][frame=off, bottomframe=on]
\setupheader[style=bold]
\defineframed[headerframed]
[frame=off,
align=middle,
width=fit]
\setupheadertexts
]
[headstyle=\tf,alternative=hanging]
\definelayer [vLine]
\setlayer [vLine]
[x=3.385cm]{\blackrule[color=red,width=0.2pt,height=\textheight]}
\setupbackgrounds [text]
[background=vLine]
\starttext
\startDesc{one
the error is
> significantly greater.
> \definedescription [Desc]
> [headstyle=\tf,alternative=hanging]
> \definelayer [vLine]
> \setlayer [vLine]
>
> [x=3.385cm]{\blackrule[color=red,width=0.2pt,height=\textheigh
[vLine]
\setlayer [vLine]
[x=3.385cm]{\blackrule[color=red,width=0.2pt,height=\textheight]}
\setupbackgrounds [text]
[background=vLine]
\starttext
\startDesc{one}
Description of item one. Description of item one.%
Description of item
[level]{}
\setupbackgrounds[page][background={level}]
\startxmlsetups xml:setups
\xmlsetsetup{#1}{contacts}{xml:contacts}
\xmlsetsetup{#1}{contact}{xml:contacts:contact}
\stopxmlsetups
\xmlregistersetup{xml:setups}
\startxmlsetups xml:contacts
\xmlflush{#1}
\stopxmlsetups
\startxml
rc := fullsquare xyscaled (50mm, 50mm);
color col; col := (1.,.1,.1);
drawoptions(withcolor \MPcolor{tred}) ;
draw rc withpen pencircle scaled (2.5mm) ;
label(textext("\setupbodyfont[sans,35mm] \color[tred]{Test}"), (80mm,
50mm)) ;
\stopuseMPgraphic
\defineoverlay[T][\useMPgrap
;
label(textext("\setupbodyfont[sans,35mm] \color[tred]{Test}"), (80mm,
50mm)) ;
\stopuseMPgraphic
\defineoverlay[T][\useMPgraphic{T}]
\setupbackgrounds[page][background={foreground,T}]
\startTEXpage[width=200mm,height=200mm]
\stopTEXpage
See ch. 8.2 of the metafun
);
draw thelabel(btex\setupbodyfont[sans,35mm] Test etex, (80mm, 50mm))
withcolor %col
transparent(1, .4, col)
;
\stopuseMPgraphic
\defineoverlay[T][\useMPgraphic{T}]
\setupbackgrounds[page][background={foreground,T}]
\startTEXpage[width=200mm,height=200mm]
\stopTEXpage
Thank you Aditya, i ended up using a layer for my header, but your approach
is more succint
\setupbackgrounds[page][background=mybg]
\setlayer[mybg] % name of the layer
[hoffset=2.5cm, voffset=0.2cm] % placement (from upper left corner
of the layer)
{\framed[frame=off
On 1/24/2017 8:01 PM, Rik Kabel wrote:
On 2017-01-24 03:34, Hans Hagen wrote:
On 1/24/2017 4:04 AM, Rik wrote:
What I want is that the background of the page (yellow in this case)
should show through. That is what is done with fill / reverse / cycle,
as in:
\setupbackgrounds
[page
On 2017-01-24 03:34, Hans Hagen wrote:
On 1/24/2017 4:04 AM, Rik wrote:
What I want is that the background of the page (yellow in this case)
should show through. That is what is done with fill / reverse / cycle,
as in:
\setupbackgrounds
[page]
[background=color,backgroundcolor
viewer? Is it a font issue?
Okay, I got a clean compile using \definecolor and referencing that in
the MP page.
\setupbackgrounds
[page]
[background=color,backgroundcolor=yellow]
\definecolor[Transp][r=1,t=0,a=12]
\definefont
[DVSrB]
[file:DejaVuSerif-Bold.ttf]
got a clean compile using \definecolor and referencing that in
the MP page.
\setupbackgrounds
[page]
[background=color,backgroundcolor=yellow]
\definecolor[Transp][r=1,t=0,a=12]
\definefont
[DVSrB]
[file:DejaVuSerif-Bold.ttf]
\startuseMPgraphic{HeartTest 1}
shapes, but nothing that I can apply to text glyphs. Undraw doesn’t do it.
\setupbackgrounds
[page]
[background=color,backgroundcolor=yellow]
\definefont
[DVSrB]
[file:DejaVuSerif-Bold.ttf]
\startuseMPgraphic{HeartTest}
picture h;
h := &quo
: 2017.01.17 17:37 MKIV beta fmt:
> 2017.1.19 on Win10 x64. There are no errors in the log.)
>
> \definelayer
> [blocks]
> [width=\textwidth,
> height=\textheight]
>
> \setupbackgrounds
> [page]
> [background=blocks]
>
>
with this, if anything,
and how to fix it. (Running ConTeXt ver: 2017.01.17 17:37 MKIV beta
fmt: 2017.1.19 on Win10 x64. There are no errors in the log.)
\definelayer
[blocks]
[width=\textwidth,
height=\textheight]
\setupbackgrounds
[page]
[background=blocks]
\starttext
ckfamily[slidesfont][mono][Xits][range={"0222A,"02229,"02205}] %
> ∪, ∩, ∅
> \definefontfamily[slidesfont][mono][Latin Modern Mono Light][features=none]
> \definefallbackfamily[slidesfont][math][Xits][range={"025C7,"27D5}] % WHITE
> DIAMOND, left-join, WHI
WHITE DIAMOND, left-join, WHITE RIGHT-POINTING TRIANGLE
\definefontfamily[slidesfont][math][TeX Gyre Pagella Math]
\setupbodyfont[slidesfont]
% Foreground/background color
\setupcolors[textcolor=colorone]
\setupbackgrounds[page][background=color, backgroundcolor=nearlywhite]
% Heade
> On 2016-12-29 11:31, MF wrote:
>
>
>
> > Hello list,
> > please take a look at this:
> >
> > \setupbackgrounds[text][frame=on]
> >
> > \starttext
> >
> > Preceding text.
> >
> > \startplacetable[loc
On 2016-12-29 11:31, MF wrote:
Hello list,
please take a look at this:
\setupbackgrounds[text][frame=on]
\starttext
Preceding text.
\startplacetable[location={none,fit,force,here,middle}]
\bTABLE
\bTR
\bTD $a_{11}$ \eTD \bTD $a_{12}$ \eTD
\eTR
\bTR
\bTD $a_{21}$ \eTD
Hello list,
please take a look at this:
\setupbackgrounds[text][frame=on]
\starttext
Preceding text.
\startplacetable[location={none,fit,force,here,middle}]
\bTABLE
\bTR
\bTD $a_{11}$ \eTD \bTD $a_{12}$ \eTD
\eTR
\bTR
\bTD $a_{21}$ \eTD \bTD $a_{22}$ \eTD
\eTR
\eTABLE
a greater height (or maybe a different crop
area), so that it covers the page number.
I would simply solve the problem by having the page number on top of the
imported pdf.
Is it possible?
\starttext
\setuplayout
[page]
\setupbackgrounds
[page]
[background={foreground,whatever}]
\definelayer
(it's in the background).
\setupbodyfont[9pt]
\setuplayout[grid=yes]
\showgrid
\definelayer [flushbottom]
\setupbackgrounds [text] [background=flushbottom]
\edef\numberoflines{%
\ctxlua{context(math.round(tex.dimen.textheight / tex.dimen.lineheight))}}
\starttext
Hello
\setlayer
[flushbottom
is to the last line of the grid which I previously computed
in Lua (Brrr). Also, this has the disadvantage that text might flow into the
layer (it's in the background).
\setupbodyfont[9pt]
\setuplayout[grid=yes]
\showgrid
\definelayer [flushbottom]
\setupbackgrounds [text] [background=flushbottom
=.01\paperheight,
x=.82\paperwidth]{\externalfigure[spider][height=0.2\textwidth]}
\setupbackgrounds[page][background={logo_layer}]
\starttext
\dorecurse{5}{\input knuth\par}
\stoptext
Or is there any issue with the sample? At least, the spider should be
placed
:
\setupexternalfigure[location=default]
\definelayer[logo_layer][state=start]
\setlayer[logo_layer][preset=lefttop, y=.01\paperheight,
x=.82\paperwidth]{\externalfigure[spider][height=0.2\textwidth]}
\setupbackgrounds[page][background={logo_layer}]
\starttext
201 - 300 of 1176 matches
Mail list logo