The frame is only for reference, what I need is that the background is not
wider than or higher than the frame, changing the coordinates of the points can
be done but I remember seeing an example in which using "shifted" it could be
done move to a corner, without worrying about the c
alan.caruanam...@gmail.com schrieb am 23.07.2024 um 20:29:
Hello, I need the background (lines and points) to be inside (tangent) of the
frame, I don't know how to do it
\startuseMPgraphic{fullheightbackground}
fill unitsquare xyscaled (OverlayWidth, OverlayHeight) withcolor
diameter of
the pen used for the dot).
Best regards: Otared
> On 23 Jul 2024, at 20:29, alan.caruanam...@gmail.com wrote:
>
> Hello, I need the background (lines and points) to be inside (tangent) of the
> frame, I don't know how to do it
>
> \startuseMPgraphic{fullheig
Hello, I need the background (lines and points) to be inside (tangent) of the
frame, I don't know how to do it
\startuseMPgraphic{fullheightbackground}
fill unitsquare xyscaled (OverlayWidth, OverlayHeight) withcolor "gray" ;
w := MakeupWidth;
h := OverlayHeight;
On Thu, 6 Jun 2024, Wolfgang Schuster wrote:
> Aditya Mahajan schrieb am 06.06.2024 um 14:48:
> > Hi,
> >
> > I am testing some of my old styles on latest context and find that the
> > background key of \startbackground and \starttextbackground doesn't work
>
Aditya Mahajan schrieb am 06.06.2024 um 14:48:
Hi,
I am testing some of my old styles on latest context and find that the
background key of \startbackground and \starttextbackground doesn't work
(\framed is working as expected). Here is a MWE:
1. \starttextbackground isn't based
Hi,
I am testing some of my old styles on latest context and find that the
background key of \startbackground and \starttextbackground doesn't work
(\framed is working as expected). Here is a MWE:
\startuseMPgraphic{background:test}
fill OverlayBox withcolor 0.75[red,white];
Hi again,
you could remove the \localcontrolled around the advance
>
I thought I tried that, but the counter incremented to 6, instead of 4.
Using higher-level primitives seems more like the ConTeXt way.
> why twice ? you only have to typeset the text once, right?
> >
> {text:\number\numexpr1+\
On 8/12/2023 7:19 PM, Thangalin wrote:
Thanks Hans.
The \newinteger approach would always increment the value, regardless of
conditionals within the MetaPost code (i.e., it was like legend :=
"\ConcurrentTextGet" would always invoke the macro just be referencing the
MPgraphic and nothing would p
Thanks Hans.
The \newinteger approach would always increment the value, regardless of
conditionals within the MetaPost code (i.e., it was like legend :=
"\ConcurrentTextGet" would always invoke the macro just be referencing the
MPgraphic and nothing would prevent its execution). This meant that th
On 8/11/2023 9:57 PM, Thangalin wrote:
Hi list,
I'm attempting to make a stylized border around paragraphs that can span
pages. The border runs along the side and the top. (Ideally the top border
wouldn't repeat, but that's a minor issue.) The issue I'm having is that
the title for the text does
Hi list,
I'm attempting to make a stylized border around paragraphs that can span
pages. The border runs along the side and the top. (Ideally the top border
wouldn't repeat, but that's a minor issue.) The issue I'm having is that
the title for the text doesn't always appear. Instead, there's a sma
Well this is fun. Getting the right patterns could make some
interesting with fonts.
Thanks for the tip Hans!
Best Wishes
Keith McKay
%
\startMPpage
vardef tst (expr x, y, i, n) =
definecolor [ name = "MyColor1", r = uniformdeviate(1), g =
uniformdeviate(1), b = uniformdeviate(
On 7/9/2023 5:56 PM, Henning Hraban Ramm wrote:
Am 09.07.23 um 15:49 schrieb Keith McKay:
Hraban (and others),
You got me thinking so I added this code to end of your code as a bit
of fun. It's code from the luametafun manual to which I added two and
a half lines.
That’s funny.
I replaced t
Am 09.07.23 um 15:49 schrieb Keith McKay:
Hraban (and others),
You got me thinking so I added this code to end of your code as a bit of
fun. It's code from the luametafun manual to which I added two and a
half lines.
That’s funny.
I replaced the text by \TeX and published it here:
https://f
Hraban (and others),
You got me thinking so I added this code to end of your code as a bit of
fun. It's code from the luametafun manual to which I added two and a
half lines.
Best Wishes
Keith
%%%
\startMPcode
vardef tst (expr x, y, i, n) =
definecolor [ name = "MyColor1", r =
Reduced size as requested.
Moderator please delete original message which was greater than 100k
Thanks
Keith McKay
Forwarded Message
Subject:Re: [NTG-context] Re: Fwd: Re: text width shadow background
Date: Sat, 8 Jul 2023 14:14:38 +0100
From: Keith McKay
To
Am 08.07.23 um 15:14 schrieb Keith McKay:
I played about with the number of shadow layers and added a wee bit
randomness which gave a nice effect. See the code below and the attached
png.
Good idea, makes sense for big text – my captions are only 8pt, there 10
layers are already a lot, and th
Am 08.07.23 um 11:39 schrieb Hans Hagen via ntg-context:
On 7/8/2023 8:55 AM, Henning Hraban Ramm wrote:
Please, can you explain why the result of lmt_outline is shifted to
the right, if I use it in a macro?
no time now but you can do this instead of the lmt_text:
draw lmt_outline [
Forwarded Message
Subject: Re: [NTG-context] Re: text width shadow background
Date: Sat, 8 Jul 2023 11:39:32 +0200
From: Hans Hagen
To: Henning Hraban Ramm
On 7/8/2023 8:55 AM, Henning Hraban Ramm wrote:
Please, can you explain why the result of lmt_outline is shifted to
wunderschöne Bildunterschrift}
\MyCaption{Ein ganz anderer Text}
\stoptext
"""
BTW I recognized I need this not only for captions within images but
also for the glow effect in the CCCamp23 style:
https://events.ccc.de/camp/2023/infos/styleguide.html
InDesign etc. crea
Am 06.07.23 um 21:27 schrieb Henning Hraban Ramm:
* I don’t understand why the white fill is not opaque.
Posted too early. I do understand now (overlapping outlines).
Tried to fix it by overwriting the text again in white, but now I don’t
understand how to calculate the shifting:
"""
\setupb
Hi, maybe you remember that I wanted this since 2017...
I finally managed to get a fuzzy background behind text:
"""
\setupbodyfont[ss,24pt]
\definecolor[tshade][t=.05,a=1,k=1]
\starttexdefinition MyCaption #1
\startMPcode{doublefun}
steps := 10 ;
rulesize := BodyFontSize/steps/
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
ds and turn the frame off and get every odd row in
> > all my tables will have that color for the background.
> >
> > == Example
>
> > \definecolor[grayback][r=.8,g=.8,b=.8]
> > \setupTABL
T. Kurt Bond schrieb am 23.07.2021 um 17:55:
With natural tables I can define a color, tell the table to have to
use color backgrounds and turn the frame off and get every odd row in
all my tables will have that color for the background.
== Example
> Am 23.07.2021 um 17:55 schrieb T. Kurt Bond :
>
> With natural tables I can define a color, tell the table to have to
> use color backgrounds and turn the frame off and get every odd row in
> all my tables will have that color for the background.
>
> Can I get this sam
With natural tables I can define a color, tell the table to have to
use color backgrounds and turn the frame off and get every odd row in
all my tables will have that color for the background.
== Example
\definecolor[grayback][r
Much more lean now thanks to your feedbacks.
I prefered to "remove the shapes of the letter"
rather than doubling the shading.
Wikified https://wiki.contextgarden.net/Cover_Pages#.22Empty.22_letters
\definecolor [ColorHighA] [h=c4a000]
\definecolor [ColorHighB] [h=602217]
\definecolor [Col
> On 24 Dec 2020, at 00:14, Garulfo wrote:
>
> Thanks Taco,
>
> I made some progress :
> https://wiki.contextgarden.net/Talk:Cover_Pages
>
> I now have two additional questions ... ;-)
>
> - How can I deal with "space" characters (because current solution
> requires to explicitly add the ~
On 12/24/2020 12:46 AM, Otared Kavian wrote:
Hi Garulfo,
Thank you for sharing your nice example: it typesets correctly with mkiv, but
it seems to me that with LMTX the text does not appear (at least on my
installation of the latest LMTX).
I admit that I had to trial and error this:
\startMP
(0,1)
withshadecolors (red, blue) ;
\stopuseMPgraphic
\defineoverlay[MyShade][\useMPgraphic{MyShade}]
\setupbackgrounds[page][background=MyShade]
\startmakeup
\definedfont[SerifBold*default @ 50pt] \setupinterlinespace
\defineeffect[MyOutline][alternative=outer,rulethickness
> %==
>
> \starttext
>
> %--
>
> \startuseMPgraphic{MyBackgroundGraphic}
> path pathbackground ;
> numeric dim
mA yscaled dimB ;
fill pathbackground
withshademethod "linear"
withshadedirection(0,1)
withshadecolors (red,blue);
\stopuseMPgraphic
%--
\definelayer[MyBackgroundLayer]
\setlayer[MyBackgroundLayer]{\useMPgraphic{MyBackgroundGraphic}}
\s
> On 21 Dec 2020, at 16:09, Garulfo wrote:
>
> Hi,
>
>
> * I try to "remove the paths of text" from a metapost pictures to let
> the background visible.
>
> * Using
> https://mailman.ntg.nl/pipermail/ntg-context/2018/thread.html#92725
>
> *
Hi,
* I try to "remove the paths of text" from a metapost pictures to let
the background visible.
* Using
https://mailman.ntg.nl/pipermail/ntg-context/2018/thread.html#92725
* I was able to get the following with one glyph (MVE code below)
https://wiki.contextgarden.net/i
Hello,
is there a way to draw custom background (via MP) to a text typed by
\typefile, which is so long so it spreads over more pages?
- I'm asking because I know how to typeset some text via \typefile with:
1. this:
\definetyping[Test]
[before={\startbackground[background=
Henning Hraban Ramm schrieb am 01.06.2020 um 20:22:
Hi,
I finally wanted to attack CG journal 2019 again and stumble upon this error:
If an article contains several \starttyping ... \stoptyping examples with a
textbackground, it sometimes fills the whole column (pagecolumns). It doesn’t occur i
Hi,
I finally wanted to attack CG journal 2019 again and stumble upon this error:
If an article contains several \starttyping ... \stoptyping examples with a
textbackground, it sometimes fills the whole column (pagecolumns). It doesn’t
occur if the "typing" is at top or bottom of the column or e
mf schrieb am 13.04.2020 um 17:21:
Thanks also for the explanation of backgroundoffset: it's an offset
relative only to the background, and it moves in the opposite direction
of the content offset of \framed.
Looks like \framed[...,offset=VALUE,backgroundoffset=frame,...] is
equivale
OverlayWidth
yscaled 2.5 OverlayHeight ;
draw p withcolor red ;
setbounds currentpicture to p topenlarged 6mm ;
\stopuseMPgraphic
\defineoverlay[triangle][{\uniqueMPgraphic{cell:triangle}}]
\starttext
\bTABLE[frame=off]
\bTR
\bTD[nx=2,align=middle,background=triangle] \dontleavehmode a\crlf
[background=triangle], but it doesn't work.
How about nested tables:
\starttext
\bTABLE[width=1cm,height=1cm]
\bTR
\bTD A \eTD
\bTD B \eTD
\bTD C \eTD
\bTD E \eTD
\eTR
\bTR
\bTD E \eTD
\bTD[nc=2,nr=2,strut=no,align={middle,lohi}] {\b
Thanks Hans and Wolfgang.
@Wolfgang: your solution is clearer, but unfortunately it works only for
this MWE. In the real case the triangle extends over 2 rows, but the
table has more than 2 rows.
I tried grouping the first two rows in a
\bTABLEbody[background=triangle], but it doesn't
;
\stopuseMPgraphic
\defineoverlay[triangle][{\uniqueMPgraphic{cell:triangle}}]
\starttext
\bTABLE[frame=off]
\bTR
\bTD[nx=2,background=triangle,align=middle] \dontleavehmode
a\crlf text \eTD
\eTR
\bTR[toffset=1mm]
\bTD left \eTD
\bTD right \eTD
\eTR
\eTABLE
\stoptext
][{\uniqueMPgraphic{cell:triangle}}]
\starttext
\bTABLE[frame=off]
\bTR
\bTD[nx=2,background=triangle,align=middle] \dontleavehmode a\crlf
text \eTD
\eTR
\bTR[toffset=1mm]
\bTD left \eTD
\bTD right \eTD
\eTR
\eTABLE
\stoptext
here's a very ugly solution
\startuseMPgr
}}]
\starttext
\bTABLE[frame=off]
\bTR
\bTD[nx=2,background=triangle,align=middle] \dontleavehmode a\crlf
text \eTD
\eTR
\bTR[toffset=1mm]
\bTD left \eTD
\bTD right \eTD
\eTR
\eTABLE
\stoptext
The triangle is used as background of the 2-column wide cell of the
first row.
I want
On 4/8/20 11:32 AM, Fabrice Couvreur wrote:
> [...]
> \startframedtext[width=max,background=color,backgroundcolor=fondpaille]
> \starthanging[location=right]
> {\startMPcode
> draw unitsquare scaled 2cm ;
> \stopMPcode}
> \input tuft
Hi Pablo,
Here a sample.
Fabrice
\useMPlibrary[dum]
\definecolor[fondpaille][c=0,m=0,y=0.2,k=0]
\starttext
\startframedtext[width=max,background=color,backgroundcolor=fondpaille]
\starthanging[location=right]
{\startMPcode
draw unitsquare scaled 2cm
On 4/8/20 10:19 AM, Fabrice Couvreur wrote:
> Hi,
> Is there a more elegant way to have a white background for the table?
Hi Fabrice,
I think not including the table in the framed text is the easiest way to
avoid the colored background.
Or why do you need the table inside the framed text,
Hi,
Is there a more elegant way to have a white background for the table ?
In fact, my question is more general : if we insert an image, the
background color envelops this image : how to solve this problem ?
Thank you.
Fabrice
\definecolor[fondpaille][c=0,m=0,y=0.2,k=0]
\starttext
Dear Wolfgang,
Now, I understand why the error messages “\texfont0 is undefined”, “ you used
the started character from an undefined font family.” are appeared.
Thank you for your clear explanation.
Best regards,
Dalyoung
>> 3. removing \starttext, \stoptext, and functionstyle=“math”, it wor
Jeong Dal schrieb am 29.12.2019 um 14:33:
Dear Hans,
I run the following code which is in page 24,25 luametafun.pdf.
1. adding \starttext and \stoptext, it works fine. No overlapping.
Also, functionstyle = “math” is working nicely.
2. removing \starttext and \stoptext, then functionstyle =“mat
, cos = math.sin, math.cos",
function = "cos(x)+sin(y)",
%functionstyle = "math",
background = "bitmap",
foreground = "edge",
linewidth = 1/2,
cache = true,
];
\stopMPcode
%\stop
On 12/28/2019 9:27 PM, Jeong Dal wrote:
Dear Hans,
Thank you for the fix.
Background color is OK now.
A new problem in the caption:
Since width of the figure is narrower than the width of the line
"x = [0,12.555]; y = [-6,6];”,
“y =“ is written over 12.555.
Is there any option to sup
On 12/28/2019 9:27 PM, Jeong Dal wrote:
Dear Hans,
Thank you for the fix.
Background color is OK now.
A new problem in the caption:
Since width of the figure is narrower than the width of the line
"x = [0,12.555]; y = [-6,6];”,
“y =“ is written over 12.555.
Is there any option to sup
Dear Hans,
Thank you for the fix.
Background color is OK now.
A new problem in the caption:
Since width of the figure is narrower than the width of the line
"x = [0,12.555]; y = [-6,6];”,
“y =“ is written over 12.555.
Is there any option to suppress the caption x, y since there are nu
Am 2019-08-04 um 10:33 schrieb Hans Hagen :
>
>
Thank you! That is much cleaner than my try, of course. I’ll try to transfer
that into my environment.
Greetlings, Hraban
---
https://www.fiee.net
http://wiki.contextgarden.net
https://www.dreiviertelhaus.de
GPG Key ID 1C9B22FD
___
On 8/3/2019 5:22 PM, Henning Hraban Ramm wrote:
Hi,
in my books I typeset captions onto full page images, therefore I need a
background; in the attached example it’s just a white box, usually I use a
MetaPost shadow (some of you helped me with that a few years ago, current code
see https
Hi,
in my books I typeset captions onto full page images, therefore I need a
background; in the attached example it’s just a white box, usually I use a
MetaPost shadow (some of you helped me with that a few years ago, current code
see https://wiki.contextgarden.net/Drop_shadows).
Now, the
On 7/23/2019 4:51 PM, Aditya Mahajan wrote:
On Mon, 22 Jul 2019, Wolfgang Schuster wrote:
Peter Rolf schrieb am 22.07.2019 um 13:32:
Hi,
I have a problem with a not printed color background when using layers.
Small test file is attached.
Below is a simpler example of your problem.
The
On Mon, 22 Jul 2019, Wolfgang Schuster wrote:
Peter Rolf schrieb am 22.07.2019 um 13:32:
Hi,
I have a problem with a not printed color background when using layers.
Small test file is attached.
Below is a simpler example of your problem.
The frame disappears when you repeat the layer which
Am 22.07.2019 um 19:00 schrieb Wolfgang Schuster:
> Peter Rolf schrieb am 22.07.2019 um 13:32:
>> Hi,
>>
>> I have a problem with a not printed color background when using layers.
>> Small test file is attached.
> Below is a simpler example of your problem.
>
>
Peter Rolf schrieb am 22.07.2019 um 13:32:
Hi,
I have a problem with a not printed color background when using layers.
Small test file is attached.
Below is a simpler example of your problem.
The frame disappears when you repeat the layer which change how the content
if flushed, in the
Hi,
I have a problem with a not printed color background when using layers.
Small test file is attached.
ConTeXt version: 2019.07.16 18:23
Peter
test.pdf
Description: Adobe PDF document
\defineframed[framedclass][
foregroundcolor=black, foregroundstyle=\bfa,
backgroundcolor
When stupidity strikes, no one's safe.
Turns out \setupbackgrounds has an option called backgroundoffset, and
this is the solution. The not colorized part was the bleed part of the
document, so the background command would be:
\setupbackgrounds
[paper]
[
background=
YOU PRINT!
\showframe
\setupbackgrounds[paper][background=color,backgroundcolor=blue]
\starttext
\starttitle[title={First page}]
\input lorem
\stoptitle
\starttitle[title={Second page}]
\input lorem
\stoptitle
\starttitle[title={Third page}]
\input lorem
\stoptitle
\startt
Benjamin Koppe schrieb am 31.05.2019 um 21:23:
Hi Jan,
yes, I've read these texts once and they played a role in thinking
about getting into ConTEXt.
Thank you for your answer, now I have something to investigate.
Another follow up question on background colors:
I try to setu
Hi Jan,
yes, I've read these texts once and they played a role in thinking about
getting into ConTEXt.
Thank you for your answer, now I have something to investigate.
Another follow up question on background colors:
I try to setup the background color by
\setupbackgrounds
Hans Hagen schrieb am 28.04.2019 um 18:42:
On 4/28/2019 5:56 PM, Aditya Mahajan wrote:
On Sun, 28 Apr 2019, Wolfgang Schuster wrote:
The problem are these settings in buff-imp-default.mkiv:
\setupstartstop
[DefaultSnippet]
[\c!before={\typingparameter\c!before},
\c!after={\typingparamet
On 4/28/2019 5:56 PM, Aditya Mahajan wrote:
On Sun, 28 Apr 2019, Wolfgang Schuster wrote:
The problem are these settings in buff-imp-default.mkiv:
\setupstartstop
[DefaultSnippet]
[\c!before={\typingparameter\c!before},
\c!after={\typingparameter\c!after},
\c!style={\typingparameter\
On Sun, 28 Apr 2019, Wolfgang Schuster wrote:
The problem are these settings in buff-imp-default.mkiv:
\setupstartstop
[DefaultSnippet]
[\c!before={\typingparameter\c!before},
\c!after={\typingparameter\c!after},
\c!style={\typingparameter\c!style}]
In buff-imp-tex.mkiv these values
, before=\startEXAMPLE, after=\stopEXAMPLE]
\starttext
\starttyping
A = B + C
\stoptyping
\stoptext
gives the attached output where the background is repeated twice. The
bug is present with both mkiv and ltmx.
Aditya
\stoptyping
\stoptext
gives the attached output where the background is repeated twice. The bug
is present with both mkiv and ltmx.
Aditya
test.pdf
Description: Adobe PDF document
___
If your question is of interest to
27;.
> >
> > In this minimal example, the frame doesn't appear (or if i set
> > [frame=on,leftframe=off] all the frame is rendered) and the left and
> > right offsets are not took into account.
>
> textbackground uses metapost for ALL backgrounds and the default m
ibliography for
> > > examples).
> > > I suppose Hans Hagen made use of metafun to do it but I encounter some
> > > problems with 'textbackgrounds'.
> > >
> > > In this minimal example, the frame doesn't appear (or if i set
> > &g
ith 'textbackgrounds'.
> >
> > In this minimal example, the frame doesn't appear (or if i set
> > [frame=on,leftframe=off] all the frame is rendered) and the left and
> > right offsets are not took into account.
>
> textbackground uses metapost for ALL bac
post for ALL backgrounds and the default metapost
code to draw the background (draw_multi_pars, defined in mp-abck.mkiv)
doesn't handle individual frames. So, you have to write your own metapost
code to draw the side bar.
Another option for simple backgrounds is to use `\definebackgrou
o.bib]
\setupbtxrendering
[before={\startbiblio},
after={\stopbiblio}]
% Arri�re-plan biblio
\definetextbackground[biblio]
[location=paragraph,
background=color,
backgroundcolor=green,
%backgroundoffset=2em,
leftoffset=1em,
rightoffset=1em,
topoffset=1.5em,
bottomoff
t; \setuplayout[grid=yes]
> > \showgrid
> > \setupcolumns[n=2]
> >
> > \starttext
> >
> > \startcolumns
> > \input knuth
> > \column
> > \input knuth
> > \stopcolumns
> >
> > \stoptext
> >
> > in t
Marcus Vinicius Mesquita schrieb am 08.02.19 um 17:47:
Dear list,
When processing the attached mwe:
\setuplayout[grid=yes]
\showgrid
\setupcolumns[n=2]
\starttext
\startcolumns
\input knuth
\column
\input knuth
\stopcolumns
\stoptext
in the final result there is a background color.
How do
Dear list,
When processing the attached mwe:
\setuplayout[grid=yes]
\showgrid
\setupcolumns[n=2]
\starttext
\startcolumns
\input knuth
\column
\input knuth
\stopcolumns
\stoptext
in the final result there is a background color.
How do I get rid of it?
Marcus Vinicius
mwe.tex
Description
=0.00]
>
> \defineornament
>[FrameTitle]
>[preset=lefttop]
>[
> frame=off,
> foregroundstyle=\bfx,
> foregroundcolor=white,
> background=color,
> backgroundcolor=MyColorB,
> ]
>
> \defineframedtext
> [Framed
Hello,
done here (on the bottom of the page):
http://wiki.contextgarden.net/Command/setupheader
But the result doesn't show the goal of the example:
- header is not shown at all, including its blue "underline",
- user cannot check the emptiness of the second page.
Maybe a switch to w
On 09/01/2017 09:31 AM, Procházka Lukáš Ing. wrote:
> Hello Pablo,
>
> you inspired me:
>
>
> \setuplayout[header=5mm,headerdistance=5mm,]
> \setupheader
>[text]
>[before={\startframed[frame=off,bottomframe=on,framecolor=blue,]},
> after={\stopframed},
>]
> \setupheadertexts[
Hello Pablo,
you inspired me:
\setuplayout[header=5mm,headerdistance=5mm,]
\setupheader
[text]
[before={\startframed[frame=off,bottomframe=on,framecolor=blue,]},
after={\stopframed},
]
\setupheadertexts[left][right]
\starttext
Page 1
\page[empty,blank]
Page 2
\stoptext
Hello Pablo,
thanks for the answer - yes, it works - for the situation header underline has
been defined via \blackrule and not background.
I found a proposal for this situation spoken here before:
- to provide [noheaderandfooterbackground] (or similar) option for \page which
would
what you intend.
>
> \definecolor[MyColorA][r=0.8784, g=0.8784, b=0.8784]
> \definecolor[MyColorB][c=0.00,m=0.27,y=1.00,k=0.00]
>
> \defineornament
> [FrameTitle]
> [preset=lefttop]
> [
> frame=off,
> foregroundstyle=\
\definecolor[MyColorA][r=0.8784, g=0.8784, b=0.8784]
\definecolor[MyColorB][c=0.00,m=0.27,y=1.00,k=0.00]
\defineornament
[FrameTitle]
[preset=lefttop]
[
frame=off,
foregroundstyle=\bfx,
foregroundcolor=white,
b
On 08/30/2017 05:19 PM, Procházka Lukáš Ing. wrote:
> [...]
> How to:
>
> - define header to be framed normally and
> - to be "frame-free" when \page[empty] (and/or maybe \page[blank]) is called?
Hi Lukáš,
from your sample, I wonder whether you need a complete frame or only a
rule in the header.
Hi Aditya,
I tried :
\defineframedtext
[FramedText]
[
offset=0.6em,
toffset=\lineheight,
background=color,
backgroundcolor=MyColorA,
foregroundstyle={\switchtobodyfont[10pt]},
align=verytolerant,
alternative=serried, % text wrapped
frame=off,
corner=00
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 - b
=0.8784, b=0.8784]
>> \definecolor[MyColorB][c=0.00,m=0.27,y=1.00,k=0.00]
>>
>> \defineornament
>> [FrameTitle]
>> [preset=lefttop]
>> [
>> frame=off,
>> foregroundstyle=\bfx,
>> foregroundcolor=white,
>>
orA][r=0.8784, g=0.8784, b=0.8784]
>> \definecolor[MyColorB][c=0.00,m=0.27,y=1.00,k=0.00]
>>
>> \defineornament
>> [FrameTitle]
>> [preset=lefttop]
>> [
>> frame=off,
>> foregroundstyle=\bfx,
>> foregroundcolor=white,
&g
frame=off,
> foregroundstyle=\bfx,
> foregroundcolor=white,
> background=color,
> backgroundcolor=MyColorB,
> ]
>
> \defineframedtext
> [FramedText]
> [
> offset=0.6em,
> toffset=\lineheight,
> background=color,
> b
=\bfx,
foregroundcolor=white,
background=color,
backgroundcolor=MyColorB,
]
\defineframedtext
[FramedText]
[
offset=0.6em,
toffset=\lineheight,
background=color,
backgroundcolor=MyColorA,
foregroundstyle={\switchtobodyfont[10pt]},
align=verytolerant
eMPgraphic
\defineoverlay
[MyFrame]
[\useMPgraphic{MyFrame}]
\defineframedtext
[MyFrame]
[frame=off,
foregroundstyle={\switchtobodyfont[10pt]},
background=MyFrame,
align={verytolerant},
height=fit]
\definefloat
[recipe]
[figure]
\setupfloat
[recipe]
[default={right,none}]
Am 2017-07-29 um 01:01 schrieb Aditya Mahajan :
> On Fri, 28 Jul 2017, Henning Hraban Ramm wrote:
>
>> Ahoi,
>>
>> is there are way to use a texture (i.e. a repeated pixel image) as a
>> background of a frame?
>
> Use \backgroundimage
>
> See https:
On Fri, 28 Jul 2017, Henning Hraban Ramm wrote:
Ahoi,
is there are way to use a texture (i.e. a repeated pixel image) as a background
of a frame?
Use \backgroundimage
See https://tex.stackexchange.com/a/69138/323
Aditya
Ahoi,
is there are way to use a texture (i.e. a repeated pixel image) as a background
of a frame?
Greetlings, Hraban
---
http://www.fiee.net
http://wiki.contextgarden.net
GPG Key ID 1C9B22FD
___
If your question
1 - 100 of 553 matches
Mail list logo