t;> Von: ntg-context im Auftrag von Joel via ntg-
>> context
>> Gesendet: Sonntag, 8. Mai 2022 04:49:32
>> An: ntg-context@ntg.nl
>> Cc: Joel
>> Betreff: [NTG-context] How to place "Content" and other chapter-level titles
>> the same vertical di
uot;Content" and other chapter-level titles
> the same vertical distance from the top?
>
> I created a chapter title style with a large number telling the chapter
> number,
> and below it the title of the chapter.
>
> It looks like this:
>
> -
>
title of the chapter.
It looks like this:
-
1 <--really big chapter number
=== <-- there is a border created by a background image between these
How to keep <--chapter title
fish
This is the article <-- the artic
<--really big chapter number
=== <-- there is a border created by a background image between these
How to keep <--chapter title
fish
This is the article <-- the article begins
about how to keep
fish
-
\definefontsize[a]%
\definefontsize
I created a chapter title style with a large number telling the chapter number,
and below it the title of the chapter.
It looks like this:
- 1 <--really big chapter
number=== <-- there is a border created by a background image b
][{\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
{{, }}, and-2={{ und }}] % 1, 2 und 3
> \setuplabeltext [hr] [and-1={{, }}, and-2={{ i }}]% 1, 2 i 3
>
> maybe wikify
I've just checked, \commalistsentence is already on the wiki, but you have to
know it exists. (I'll check whether I can link to that page from somewhere.)
But there's
ere.
The layer is relative to the page, not to the paper in this case.
And the state is an option for the layer (in \definelayer), not for the
background, being "start" its default value.
Just in case it might help,
Pablo
\setupexternalfigures
[location={default,global}]
\
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
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 with putti
}\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
).
\defineoverlay[TextBubbleRxOverlay][\useMPgraphic{TextBubble}{side=0}]
\defineframedtext[TextBubbleRxFrame][TextBubbleFrame][
background=TextBubbleRxOverlay,
location=left,
]
% Send text (right-facing).
\defineoverlay[TextBubbleTxOverlay][\useMPgraphic{TextBubble}{side=1}]
\defineframedtext
eader=repeat, option=stretch,
> loffset=.5ex,roffset=.5ex]
>
> \setupTABLE [row] [odd]
> [background=color,backgroundcolor=hs-hellblau,]
>
> \setupTABLE [start] [spaceinbetween=25pt]
>
> \defineseparatedlist
> [preislistecsv]
> [separator={;}, % tab
>befor
Hi all,
I include tables via csv files like this
\processdatabasefile[test][test.csv]
I was able to style the tables with this:
\setupTABLE [ split=yes, header=repeat, option=stretch,
loffset=.5ex,roffset=.5ex]
\setupTABLE [row] [odd]
[background=color,backgroundcolor=hs-hellblau
;>> I see a comment by yourself back in 2011 at
>>>> https://wiki.contextgarden.net/Last_Head_Number
>>>>
>>>> I wonder if this helps?
>>>>
>>>> Julian
>>>>
>>>> On 22/3/22 07:47, Willi Egger via ntg-context wr
>>
> > >> I see a comment by yourself back in 2011 at
> https://wiki.contextgarden.net/Last_Head_Number
> > >>
> > >> I wonder if this helps?
> > &g
ntg-context wrote:
> >>> Hello everybody!
> >>>
> >>>
> >>> I would like to typeset the chapter title without number in the text. —
> >>> However I still would need to retrieve the number for a calculation in a
> >>> MetaFun graphic. I assum
lli Egger via ntg-context wrote:
>> I would like to typeset the chapter title without number in the text. —
>> However I still would need to retrieve the number for a calculation in a
>> MetaFun graphic. I assume, that even though this number is not typeset, it
>> is kept i
t typeset, it is
> kept in the background. How to retrieve it?
>
Hi,
On Tuesday, March 22, 2022 2:17 AM Willi Egger via ntg-context wrote:
>
> I would like to typeset the chapter title without number in the text. —
> However I still would need to retrieve the number for a calculation
er via ntg-context wrote:
> >>> Hello everybody!
> >>>
> >>>
> >>> I would like to typeset the chapter title without number in the text.
> — However I still would need to retrieve the number for a calculation in a
> MetaFun graphic. I assume, that ev
graphic. I assume, that even though this number is not typeset, it is kept in
the background. How to retrieve it?
Kind regards
Willi
___
If your question is of interest to others as well, please add an entry to the
Wiki
without number in the text. —
>> However I still would need to retrieve the number for a calculation in a
>> MetaFun graphic. I assume, that even though this number is not typeset, it
>> is kept in the background. How to retrieve it?
>>
>> Kind regards
>>
>> W
would need to retrieve the number for a calculation in a MetaFun
graphic. I assume, that even though this number is not typeset, it is kept in
the background. How to retrieve it?
Kind regards
Willi
___
If your
Hello everybody!
I would like to typeset the chapter title without number in the text. — However
I still would need to retrieve the number for a calculation in a MetaFun
graphic. I assume, that even though this number is not typeset, it is kept in
the background. How to retrieve it?
Kind
o you use \startfrontmatter and \startbodymatter in your document to
> create blocks?
>
> 2. Is you installation up-to-date?
>
> Attached is a slightly modified version of your example, the only thing which
> has to be local to the bodypart is the
in your document to
create blocks?
2. Is you installation up-to-date?
Attached is a slightly modified version of your example, the only thing
which has to be local to the bodypart is the background setting to
enable the thumb pictures.
Wolfgang
\definecolor [chap_frame] [black]
\definecolor
, lacking the background of the
implementation…
So here follows the section of the log with the error:
metafun > log >
metafun > log > error: Transform components aren't all known
metafun > log >
metapost> trace > (0,0,mfun_page_h
wn string ta
%% metafun > log >
%% metafun > log > error: Equation cannot be performed (unknown string=vacuous)
\setupbackgrounds
[page]
[background={foreground,foregraphics}]
\defineoverlay [foregraphics] [\positionoverlay{foregraphics}]
\starttext
\startMPpo
ddpageelse{}
{\pushbackground[page]
\resetlayer[chapCover]
\setlayer
[chapCover]
{\determineheadnumber[chapter]
\externalfigure
[chap-cover-\currentheadnumber]
[width=\paperwidth]}
\setupbackgrounds[page][background=chapCover]
\
\externalfigure
[chap-cover-\currentheadnumber]
[width=\paperwidth]}
\setupbackgrounds[page][background=chapCover]
\page[empty]
\popbackground}
\stopsetups
\startsetups chapter:after
\doifoddpageelse{}
{\page[empty]}
\stopsetups
\set
tartsetups chapter:before
\doifoddpageelse{}
{\pushbackground[page]
\resetlayer[chapCover]
\setlayer
[chapCover]
{\determineheadnumber[chapter]
\externalfigure
[chap-cover-\currentheadnumber]
[width=\paperwidth]}
\setupbackgrounds[page][background=cha
layer[mill]{\externalfigure[mill][width=\paperwidth]}
\startsetups chapter:before
\doifoddpageelse{}
{\pushbackground[page]
\setupbackgrounds[page][background=mill]
\page[empty]
\popbackground}
\stopsetups
\startsetups chapter:after
\doifoddpageelse{}
{\page[empty]}
\
[x=0mm,
y=0mm,
width=\paperwidth,
height=\paperheight,repeat=yes]
\setlayer
[mill]
{\externalfigure[mill][width=\paperwidth]}
\startsetups chapter:before
\doifoddpageelse{}
{\pushbackground[page]
\setupbackgrounds[page][background=mill]
\p
perwidth,height=\paperheight,repeat=yes]
\setlayer[mill]{\externalfigure[mill][width=\paperwidth]}
\startsetups chapter:before
\doifoddpageelse{}
{\pushbackground[page]
\setupbackgrounds[page][background=mill]
\page[empty]
\popbackground}
\stopsetups
\startsetup
\textwidth]}
\doifoddpageelse
{}
{\pushbackground[page]
\setupbackgrounds[page]%[background=color,backgroundcolor=red]
[background=mylayer]
\page[empty]
\popbackground}
\startchapter[title={Prelude}] etc.
This correctly places the Chapter1.jpg on the facing page to Chapter 1.
My problem comes
}]
\setupbackgrounds[page][background=page]
\starttext
\dorecurse{10}{\input knuth \page}
\stoptext
%%% EOF
In the resulting PDF the Field[Text][Text] path is not positioned (/computed?)
correctly, while the manually positioned Area[Text][Text] path is as expected.
So, it seems
Youssef Cherem via ntg-context schrieb am 24.01.2022 um 02:28:
I've managed to put double-sided page numbers -- but numbers are
restarting after two, though. What's going on?
Add
\setupbackgrounds[state=repeat]
to your setups to ensure the text background is refreshed.
Wolfgang
works:
\setupbackgrounds[page] [setups=setpagenumber, background=pgnumber]
Of course, you have to place the layer properly.
Just in case it might help,
Pablo
___
If your question is of interest to others as well, please add an
[pagenumber]
[
width=\paperwidth,
height=\paperheight,
% preset=rightbottom,
voffset=.3\paperheight
]
%\setupbackgrounds[page][background=pagenumber, setups=setpagenumber]
\setupbackgrounds[text] [rightmargin] [background=pagenumber,
setups=setpagenumber]
%isso aqui é o que funciona para
On Sat, Jan 22, 2022 at 06:01:42PM +0530, kauśika via ntg-context wrote:
> Recently when we were troubled by incorrect rendering of certain conjuncts in
> malayalam, Hans added a new font-feature. More below*, but first some
> background: from my testing, the main reason for the
ts (what works, what doesn't, fixes, hacks,
etc). But mostly it is in a very usable state (for the most part).
I am very much a non-expert and helping in very little ways. It is Hans in the
background who is doing all the really important things with the code, design
and engineering of the
ort .. recent indic (font)
> experiences and transliteration tricks will be eplained by kauśika
Recently when we were troubled by incorrect rendering of certain
conjuncts in
malayalam, Hans added a new font-feature. More below*, but first some
background: from my testing, the main reason for the pr
juncts in
malayalam, Hans added a new font-feature. More below*, but first some
background: from my testing, the main reason for the problems with fonts seems
to come from the varied interpretations and/or implementations of OTF
specification. To add to this complexity there are two script tags (
,
Denis
P.S. Background:
I convert docx files with pandoc to jats xml. Pandoc does quite a decent job,
but I need to tweak a few things with xslt. The actual transformation that I
need works ok, but the transformation also causes other problems.
This is the original markdown file
we can not see
the text; but of course, if you change the background, you see the hidden
text. So there is another step to the process (I usually do this only once a
term); open the file in Acrobat, and find the option to delete hidden text. The
text for which the color is the same as the back
post - it might become quickly useless. As long
as we have enough nerds who can and will do the necessary work
privately, we are safe.
Maybe the wrong approach is that studies in humanities don’t need a
strong background in computer science (programming).
In that case, it is really hard to use
e occasional updates from our normal
> budget (the DFG had decreed that no further funding for this project
> was possible) and after my retirement - I have no great hopes for a
> continuation of my post - it might become quickly useless. As long
> as we have enough nerds who can
; > How can one go about implementing a ruler around the page/text area
> > (such as a background) like the one provided by the latex package
> > fgruler? https://www.ctan.org/tex-archive/macros/latex/contrib/fgruler
> > <https://www.ctan.org/tex-archive/macros/l
On 1/1/2022 11:46 AM, Youssef Cherem via ntg-context wrote:
Dear list users,
How can one go about implementing a ruler around the page/text area
(such as a background) like the one provided by the latex package
fgruler? https://www.ctan.org/tex-archive/macros/latex/contrib/fgruler
<ht
Dear list users,
How can one go about implementing a ruler around the page/text area (such
as a background) like the one provided by the latex package fgruler?
https://www.ctan.org/tex-archive/macros/latex/contrib/fgruler or koma
script's \layercontentsmeasure
On 12/24/2021 5:45 PM, Jason Ross via ntg-context wrote:
Dear list,
Is it possible to set the maximum table of contents depth to a number
rather than providing an explicit list of section names?
Background:
I am developing an exporter for Org mode. In Org, users can specify the
number
> On 24 Dec 2021, at 16:45, Jason Ross via ntg-context
> wrote:
>
> Dear list,
>
> Is it possible to set the maximum table of contents depth to a number rather
> than providing an explicit list of section names?
>
>
> Background:
>
> I am develop
r list,
Is it possible to set the maximum table of contents depth to a number
rather than providing an explicit list of section names?
Background:
I am developing an exporter for Org mode. In Org,
names?
Background:
I am developing an exporter for Org mode. In Org, users can specify the
number of levels they want in the table of contents with a number. I
currently do this by having the sectioning commands be known to the
ex
Dear list,
Is it possible to set the maximum table of contents depth to a number
rather than providing an explicit list of section names?
Background:
I am developing an exporter for Org mode. In Org, users can specify the
number of levels they want in the table of contents with a number. I
not working for me.
Here is my MWE:
\define[]\logofile{an_image_file.png} % Here defining the variable with the
filename to use.
\definelayer[stillimage]
\setlayer[stillimage]{\externalfigure[\logofile]} % Here trying to use the
\logofile macro.
\setupbackgrounds[page][background
y MWE:
>
>
>
> \define[]\logofile{an_image_file.png} % Here defining the variable with the
> filename to use.
>
> \definelayer[stillimage]
> \setlayer[stillimage]{\externalfigure[\logofile]} % Here trying to use the
> \logofile macro.
> \setupbackground
[]\logofile{an_image_file.png} % Here defining the variable with the
filename to use.
\definelayer[stillimage]
\setlayer[stillimage]{\externalfigure[\logofile]} % Here trying to use the
\logofile macro.
\setupbackgrounds[page][background=stillimage]
\starttext
\input knuth
\stoptext
What's
r}
>{\framed
> [offset=overlay,
> align=normal,
> width=\textwidth,
> height=2cm]{foo}}
>
> works but maybe you want this instead:
>
> \defineoverlay
>[MyOrn]
>[\MyOrn
> {\framedtextparameter{MyTitle}}
> {\novrule wi
]
[background=MyOrn,width=\textwidth,height=2cm]
\startMyText[MyTitle={oeps}]
foo
\stopMyText
Hans
-
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
set
[exam]
[n=2,
background=verticalrule]
\setuplayout[width=19cm, height=26cm, header=1cm, footer=.5cm,backspace=1cm]
\setupheader[before=\vfil, after=\vfil]
\setupbackgrounds[header][text][frame=off, background=headerBox,
align=lohi]%topframe=
\setupbackgrounds[footer][text][frame=
set
[exam]
[n=2,
background=verticalrule]
\setuplayout[width=19cm, height=26cm, header=1cm, footer=.5cm,backspace=1cm]
\setupheader[before=\vfil, after=\vfil]
\setupbackgrounds[header][text][frame=off, background=headerBox,
align=lohi]%topframe=
\setupbackgrounds[footer][text][frame=
> On 30 Nov 2021, at 19:34, Alexandre Christe via ntg-context
> wrote:
>
> Dear list,
>
>
>
> What I've done is to play with mathalignment and \framed. Here is a MWE:
>
> \starttext
> \defineoverlay[midrule][{\blackrule[height=.02cm,width=5.5cm]}]
>
&g
Dear list,
[image: image.png]
What I've done is to play with mathalignment and \framed. Here is a MWE:
\starttext
\defineoverlay[midrule][{\blackrule[height=.02cm,width=5.5cm]}]
\framed[frame=off,background=midrule,boffset=.65cm]{\startformula
\startmathalignment[n=12,align={middle,middle
fineblock[Complement]
\setupblock[Complement][
before={\page[yes]\setuppagenumber[state=stop]\setupheadertexts[]\setupbackgrounds[page][background=color,backgroundcolor=red]},
after={\page[yes]\setuppagenumber[state=start]}]
\starttext
% Let's process the summar
\defineblock[ComplementTwo]
\defineblock[ComplementThree]
\setupblock[ComplementTwo,ComplementThree][
before={\page[yes]\setuppagenumber[state=stop]\setupheadertexts[]\setupbackgrounds[page][background=color,backgroundcolor=red]},
after={\page[yes]\setuppagenumber[state=start]}]
\startte
ber[state=stop]\setupheadertexts[]\setupbackgrounds[page][background=color,backgroundcolor=red]},
after={\page[yes]\setuppagenumber[state=start]}]
\doifallmodes{Professor} {
\keepblocks[Complement]
}
\starttext
page 1
\beginComplement
A complement
; > \setlayer[mwe] { \switchtobodyfont[chancery,8pt] \hskip 5mm Chancery
> > Font Here }
> > \setupbackgrounds[page][background=mwe]
> >
> > \starttext
> > Normal font text goes here. \blank[4*big]
> > { \switchtobodyfo
] { \switchtobodyfont[chancery,8pt] \hskip 5mm Chancery Font
Here }
\setupbackgrounds[page][background=mwe]
\starttext
Normal font text goes here. \blank[4*big]
{ \switchtobodyfont[chancery] This should be Chancery here to. But isn't. }
\blank[2*big]Note
Font
Here }
\setupbackgrounds[page][background=mwe]
\starttext
Normal font text goes here. \blank[4*big]
{ \switchtobodyfont[chancery] This should be Chancery here to. But isn't. }
\blank[2*big]Note that if I comment out the \type{setlayer[mwe
the number? It probably involves neither of the approaches I
have used here, but I am not sure just what approach to take, other than
using a background layer... and maybe that is what I need to do.
Julian
\define[2]\MyChapterCommand%
{\framed[frame=on,bottomframe=off,leftframe=off,rightframe
,
this is what you want:
\startsectionblockenvironment[bodypart]
\setupbackgrounds
[rightpage]
[background=butterfly]
\stopsectionblockenvironment
\startbodymatter
\setupbackgrounds
[rightpage]
[background=butterfly]
\startchapter[title={Chapter title
ully; the layer repeats for every page
> at the moment. I must have omitted something).
Hi Julian,
this is what you want:
\startsectionblockenvironment[bodypart]
\setupbackgrounds
[rightpage]
[background=butterfly]
\stopsectionblockenvironment
> \startbodymatter
something).
\startbodymatter
\setupbackgrounds
[rightpage]
[background=butterfly]
\startchapter[title={Chapter title}]
\definelayer[butterfly]
[x=0mm, y=0mm,repeat=yes,width=\paperwidth, height=\paperheight]
\setlayer[butterfly]
[hoffset=.99\textwidth, voffset=1cm]
{\externalfigure
On 11/6/2021 12:37 PM, Alain Delmotte via ntg-context wrote:
Hi,
I asked to discuss or have some suggestions about installing and using
Scite for ConTeXt.
If it is possible OK, but it is not urgent.
To give some background:
I use Windows 10 and lmtx (in its own folder).
I installed Scite
Hi,
I asked to discuss or have some
suggestions about installing and using Scite for ConTeXt.
If it is possible OK, but it is not
urgent.
To give some background:
I use Windows 10 and lmtx (in its own folder).
I installed Scite in c:\wscite
this will work in your real-world
document) might be using \xmlpure instead of \xmlflush as in:
\goto{\hyphenatedurl{\xmlflush{#1}}}[url(\xmlpure{#1})]
The background for both commands can be found on
https://www.pragma-ade.com/general/manuals/xml-mkiv.pdf#page=103.
I hope it helps,
P
Hi all,
I found a minimal example.
Am Fri, Oct 22, 2021 at 03:11:41PM +0200 schrieb juh via ntg-context:
> in a minimal example
>
> \starttext
> \externalfigure[test.svg][conversion=mp]
> \stoptext
>
> renders fine.
>
> I my real world project white background i
Hi all,
in a minimal example
\starttext
\externalfigure[test.svg][conversion=mp]
\stoptext
renders fine.
I my real world project white background is rendered black.
Any hints where I can start to debug?
juh
--
Autoren-Homepage: . http://literatur.hasecke.com
Satiren & Es
lors (.8white, black);
draw fullcircle scaled 1cm withpen pencircle scaled 0.8pt ;);
vardef shadow(expr p, t) =
draw redecorated (draw p) withcolor t[background,0.8background];
enddef;
\stopMPinclusions
\startMPpage
pair p;
for i=0 upto 10:
p := (i*cm/10, -((i-7.33)**2)*cm/7);
s
ullcircle scaled 1cm withpen pencircle scaled 0.8pt ;); vardef shadow(expr p, t) = draw redecorated (draw p) withcolor t[background,0.8background]; enddef; \stopMPinclusions\startMPpage pair p; for i=0 upto 10: p := (i*cm/10, -((i-7.33)**2)*cm/7); shadow(ball shifted p, (i+1)/10)
t if I put a white circle behind each transparent ball so that
they look lighter without showing the earlier objects through them (third
example). However, that solution is going to be difficult for more complex
shapes. I tried drawing the shape using “redecorated () withcolor white", to
dr
] [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
On 9/26/2021 5:07 PM, Fabrice Couvreur via ntg-context wrote:
Hi,
How to fix the small problem in the code below where the text goes out
of the frame ?
Thanks
Fabrice
\usecolors[x11]
\starttext
\startframedtext[frame=off,width=\textwidth,
align={broad,right},indenting={yes},background
Hi,
How to fix the small problem in the code below where the text goes out of
the frame ?
Thanks
Fabrice
\usecolors[x11]
\starttext
\startframedtext[frame=off,width=\textwidth,
align={broad,right},indenting={yes},background=color,backgroundcolor=navajowhite1]
\startitemize[columns,three
,
height=\paperheight,
location={left,top},
x=120mm,y=220mm,
doublesided=yes]
\startsetups layer
\setlayer[pagenumber][even]{\pagenumber}
\stopsetups
\setupbackgrounds[page][setups=layer,background={pagenumber}]
\starttext
~\page~\page~\page
\stoptext
And it works, but only for the left
,
doublesided=yes]
\startsetups layer
\setlayer[pagenumber][even]{\pagenumber}
\stopsetups
\setupbackgrounds[page][setups=layer,background={pagenumber}]
\starttext
~\page~\page~\page
\stoptext
And it works, but only for the left (even) page. On the right page I
want to place the pagenumber
Dear List,
the red highlight block in the following example is not covering the two
40pt characters:
\definetextbackground[important][frame=no,background=color,backgroundcolor=red]
\starttext
abc\important{123{\switchtobodyfont[40pt]45}xy}z
\stoptext
Is there an option that fixes this?
Thanks
> > \startuniqueMPgraphic{concept}
> > draw fullcircle scaled 1cm shifted (10cm,10cm);
> > \stopuniqueMPgraphic
> > \defineoverlay[concept][\uniqueMPgraphic{concept}]
> > \setupbackgrounds[page][background=concept]
> > \starttext
> > .
> > \stoptext
> >
ay[concept][\uniqueMPgraphic{concept}]
\setupbackgrounds[page][background=concept]
\starttext
.
\stoptext
How should the metapost background figure be positioned correctly?
\startuniqueMPgraphic{concept}
StartPage;
draw fullcircle scaled 1cm shifted (10cm,10cm);
draw Page withpen
Dear List,
The following code draws a circle at the center of the page, ignoring the
"shifted" part.
\startuniqueMPgraphic{concept}
draw fullcircle scaled 1cm shifted (10cm,10cm);
\stopuniqueMPgraphic
\defineoverlay[concept][\uniqueMPgraphic{concept}]
\setupbackgrounds[page][backgrou
]
\setupbackgrounds[text][background={bg},state=start]
\starttext
\starttransparent[light]%
\externalfigure[hacker]%
\stoptransparent
\setlayer[bg][
hoffset=5mm,
voffset=5mm,
]{
\starttransparent[light]%
\externalfigure[hacker]%
\stoptransparent
}
\stoptext
'''
The layer stuff is not "minimal&qu
(Latest LMTX, yesterday’s luametatex binary)
The MWE shows no transparency with LMTX, it works with MkIV:
'''
\setupexternalfigures[location=default]
\definetransparency[light][a=1,t=.05]
\definelayer[bg][x=0mm,y=0mm]
\setupbackgrounds[text][background={bg},state=start]
\starttext
Pict /2 , (bbheight Pict / -2) ) ;
Pict := Pict rotated 45;
Pict := Pict shifted (.5PaperWidth, .5PaperHeight) ;
draw Pict withcolor darkyellow ;
StopPage ;
\stopuseMPgraphic
%-
\defineoverlay[MonOverlay][\useMPgraphic{MonGraphique}]
\setupbackgrounds[page][background=MonOverlay
.5 1.5`
echo $OUTPUT ${ROTATION}˚
# downscale, add a white border and a shadow, rotate, move down, add a piece of
tape (tesa1.png), grayscale
convert "$INPUT" \
-auto-orient \
-resize 800x800 \
-bordercolor white -border 10 \
\( +clone -background black -shadow 80x3+2+2 \) +swap \
-backgrou
a piece of
tape (tesa1.png), grayscale
convert "$INPUT" \
-auto-orient \
-resize 800x800 \
-bordercolor white -border 10 \
\( +clone -background black -shadow 80x3+2+2 \) +swap \
-background transparent \
-layers merge \
-rotate ${ROTATION} \
+repage \
-gravity north \
-splice 0x10 \
\(
Hi Wolfgang,
thanks a lot for your help.
Am Thu, Aug 26, 2021 at 05:52:11PM +0200 schrieb Wolfgang Schuster:
> To keep the layer setting you have to move \showframe above your own
> \setupbackgrounds command because the reset of the background-key happens
> then before you pass your
]}
\setupbackgrounds[header][background=Cow]
\showframe
\starttext
\input knuth
\stoptext
The \showframe command is just a wrapper for \setupbackgrounds to enable
the frames on certain parts of the page.
One of the settings which are passed to \setupbacgrounds when you use
\showframe is "backg
Hi,
this sample shows that the image in a layer in header disappears if showframe is
set.
\setupexternalfigures[location=default]
\definelayer[Cow]
[x=0, y=0]
\setlayer[Cow]
[x=10em, y=0mm]
{\externalfigure[cow][height=\lineheight]}
\setupbackgrounds[header][background=Cow]
\showframe
]
\definelayer
[MyLogo]
[doublesided=yes,
width=\paperwidth,
height=\paperheight,
repeat=yes]
\setupbackgrounds [page] [background=MyLogo]
\setuppagenumbering [alternative=doublesided]
\setlayer
[MyLogo]
[left]
[preset=leftbottom,
x=\dimexpr\cutspace-\rightmargindistance
201 - 300 of 4042 matches
Mail list logo