On Tue, 8 Apr 2025, Ursula Hermann wrote:
> Dear List,
> There is a problem with this paragraph, because the has not the right height?
>
> \starttext
> \switchtobodyfont[termes, 7.70pt]
> \definetextbackground[MyBackground][
> location=paragraph,
> background=co
Dear List,
There is a problem with this paragraph, because the has not the right height?
\starttext
\switchtobodyfont[termes, 7.70pt]
\definetextbackground[MyBackground][
location=paragraph,
background=color,
backgroundcolor=greenyellow, x=F1E788,
leftoffset=.8\bodyfontsize,
rightoffset
.
\starttext
\setupcolors[state=start]
\definetextbackground [book]
[state=start, topoffset=.5ex, location=paragraph,
leftoffset=1ex,bottomoffset=1ex]
\starttextbackground[book]
Tufte again
\startcolumns[n=2]
{Das bin ich}
\column
{Du}
\stopcolumns
\stoptextbackground
\stoptext
question: I only need the columns, with white background and
mediumviolet, sometimes black color, as textcolor, the topframe should be off.
How can I do that?
Like this, example, after: Hallo das bin ich.
\starttext
\setupcolors[state=start]
\definetextbackground [book]
[state=start
,
width=fit,
distance=0.2em,
alternative=serried,
]
\definetextbackground[GrayBackground][
location=paragraph,
background=color,
backgroundcolor=lightgray,
leftoffset=.5\bodyfontsize,
rightoffset=.5\bodyfontsize,
topoffset=.5\bodyfontsize,
bottomoffset=.5\bodyfontsize,
frame
[backspace=2.9cm,
width=13.50cm]
\defineenumeration
[theorem]
[
text=Theorem,
title=yes,
width=fit,
distance=0.2em,
alternative=serried,
]
\definetextbackground[GrayBackground][
location=paragraph,
background=color,
backgroundcolor=lightgray
]
\defineenumeration
[theorem]
[
text=Theorem,
title=yes,
width=fit,
distance=0.2em,
alternative=serried,
]
\definetextbackground[GrayBackground][
location=paragraph,
background=color,
backgroundcolor=lightgray,
leftoffset=.5\bodyfontsize,
rightoffset=.5\bodyfontsize
,
title=yes,
width=fit,
distance=0.2em,
alternative=serried,
]
\definetextbackground[GrayBackground][
location=paragraph,
background=color,
backgroundcolor=lightgray,
leftoffset=.5\bodyfontsize,
rightoffset=.5\bodyfontsize,
topoffset=.5\bodyfontsize,
bottomoffset=.5
rs when there is not enough material to
%D fit in the page. So, we want to limit textbackground till the typeset
%D material. This has not been interfaced yet, so I use a low level \TEX\
%D command.
\chardef\kindofpagetextareas\plusone
Adding the same works in your example:
\definetextbackgroun
;). It works nicely out
> of
> > the box (pun intended) using `\definetextbackground` and drawing the
> > frame with MetaPost, using counters to keep track of whether the current
> > text is at the top, middle, or bottom of the box. However, I'm having
> > issues when
ly out of
the box (pun intended) using `\definetextbackground` and drawing the
frame with MetaPost, using counters to keep track of whether the current
text is at the top, middle, or bottom of the box. However, I'm having
issues when one box ends and another starts on the same page (see mo
Hi,
I am trying to reproduce the behaviour of the tcolorbox LaTeX package, more
specifically breakable boxes (as illustrated here:
https://tex.stackexchange.com/a/676607/123770). It works nicely out of the
box (pun intended) using `\definetextbackground` and drawing the frame with
MetaPost, using
thickness=1mm,
framecolor=blue,
toffset=0mm, % there is an offset anyways
]
%% -> mwe-textbackground.pdf
% \definetextbackground[excursusbg] [
% location=text,
% background=color,
% backgroundcolor=lightblue,
% frame=on,
% loffset=10cm, % seems t
draw OverlayBox withcolor red withpen pencircle scaled 2bp;
\stopuseMPgraphic
\defineoverlay[background:test][\useMPgraphic{background:test}]
\definetextbackground
[testA]
[
location=paragraph,
background=background:test,
frame=off,
]
\definebackground
[
r sample makes no use of it.
Sorry, but I don’t get it.
> \defineenumeration
> [theorem]
> [
> text=Theorem,
> title=yes,
> width=fit,
> distance=0.2em,
> alternative=serried,
> ]
> \definetextbackground[GrayBackground][
> locatio
y, but I don’t get it.
> \defineenumeration
> [theorem]
> [
> text=Theorem,
> title=yes,
> width=fit,
> distance=0.2em,
> alternative=serried,
> ]
> \definetextbackground[GrayBackground][
> location=paragraph,
> background=color,
>
[MyInMargin][inleft]
\definemarginframed[MyInMargin][topframe=on,bottomframe=on,rulethickness=1pt,width=1.90cm]
\defineenumeration
[theorem]
[
text=Theorem,
title=yes,
width=fit,
distance=0.2em,
alternative=serried,
]
\definetextbackground[GrayBackground][
location
\starttext.
Best regards: Otared
% begin textbackground-Ursula.tex
\definetextbackground[myBG][
location=paragraph,
background=color,
backgroundcolor=lightgray,
leftoffset=.8\bodyfontsize,
rightoffset=.8\bodyfontsize,
topoffset=.5\bodyfontsize,
bottomoffset=.5\bodyfontsize,
frame
,
alternative=serried,
]
\definetextbackground[GrayBackground][
location=paragraph,
background=color,
backgroundcolor=lightgray,
leftoffset=.8\bodyfontsize,
rightoffset=.8\bodyfontsize,
topoffset=.5\bodyfontsize,
bottomoffset=.5\bodyfontsize,
frame=off,]
\margintext{\blackrule[color=black
On 2/27/24 10:10, Ursula Hermann wrote:
>[...]
> I have a question to my paragraphs:
>
> \definetextbackground[Paragaph][
> [...]
> \startparagraph
Hi Uschi,
if you define Paragaph, then you should use \startParagaph (and
\stopParagaph).
> \starttext
Even if that works,
Dear List,
At Work everything works fine now. Many thanks for those, who have written me.
I have a question to my paragraphs:
\definetextbackground[Paragaph][
location=paragraph,
background=color,
backgroundcolor=lightgray,
leftoffset=.5\bodyfontsize,
rightoffset=.5\bodyfontsize
t[Times New Roman, 12.2pt] \definemargindata
[MyInMargin][inright]
\definemarginframed[MyInMargin][topframe=on,bottomframe=on,rulethickness=1pt,width=1.90cm]
\defineenumeration
[theorem]
[
text=Theorem,
title=yes,
width=fit,
distance=0.2em,
alternative=serried,
]
\definetext
,
alternative=serried,
]
\definetextbackground[GrayBackground][
location=paragraph,
background=color,
backgroundcolor=lightgray,
leftoffset=.5\bodyfontsize,
rightoffset=.5\bodyfontsize,
topoffset=.5\bodyfontsize,
bottomoffset=.5\bodyfontsize,
frame=off,]
\margintext{\blackrule[color=black,
me=on,bottomframe=on,rulethickness=1pt,width=1.90cm]
\defineenumeration
[theorem]
[
text=Theorem,
title=yes,
width=fit,
distance=0.2em,
alternative=serried,
]
\definetextbackground[paragraph][
location=paragraph,
background=color,
backgroundcolor=lightgray,
leftoffset=.5\bodyfon
Betreff: [NTG-context] Re: Problem with the paragraph
Am 13.12.23 um 15:22 schrieb Ursula Hermann:
> Dear list,
>
> I have this example. I need the whole paragraph in color. But there is
> something wrong.
> \definetextbackground[paragraph][
> \startparagraph
\startparagraph
Am 13.12.23 um 15:22 schrieb Ursula Hermann:
Dear list,
I have this example. I need the whole paragraph in color. But there is
something wrong.
\definetextbackground[paragraph][
\startparagraph
\startparagraph starts a paragraph environment. If you overwrite it by
defining another
,
]
\definetextbackground[paragraph][
location=paragraph,
background=color,
backgroundcolor=lightgray,
leftoffset=.5\bodyfontsize,
rightoffset=.5\bodyfontsize,
topoffset=.5\bodyfontsize,
bottomoffset=.5\bodyfontsize,
before={\switchtobodyfont[global]},
after={},
frame=off
[NTG-context] Re: Colored Paragraph
>
> Am 05.12.23 um 14:16 schrieb Ursula Hermann:
>> The paragraph should have a color in the background. How can I get an
>> colored paragraph?
>
> Did you try \definetextbackground?
>
> https://wiki.contex
ve a color in the background. How can I get an
colored paragraph?
Did you try \definetextbackground?
https://wiki.contextgarden.net/TextBackground
https://wiki.contextgarden.net/Command/definetextbackground
Hraban
_
ann:
> The paragraph should have a color in the background. How can I get an
> colored paragraph?
Did you try \definetextbackground?
https://wiki.contextgarden.net/TextBackground
https://wiki.contextgarden.net/Command/definetextba
: Colored Paragraph
Am 05.12.23 um 14:16 schrieb Ursula Hermann:
> The paragraph should have a color in the background. How can I get an
> colored paragraph?
Did you try \definetextbackground?
https://wiki.contextgarden.net/TextBackground
https://wiki.contextgarden.net/Command/definetextback
Am 05.12.23 um 14:16 schrieb Ursula Hermann:
The paragraph should have a color in the background. How can I get an
colored paragraph?
Did you try \definetextbackground?
https://wiki.contextgarden.net/TextBackground
https://wiki.contextgarden.net/Command/definetextbackground
Hraban
upto nofmultipars :
p := multipars[1] topenlarged 4pt bottomenlarged 4pt cornered 2mm ;
fill p withcolor 0.95white ;
draw p withcolor black
withpen pencircle scaled \MPvar{linewidth};
endfor;
\stopuseMPgraphic
\definetextbackground
[listingbackground]
[state=start,
mp
;
draw p withcolor black
withpen pencircle scaled \MPvar{linewidth};
endfor;
\stopuseMPgraphic
\definetextbackground
[listingbackground]
[state=start,
mp=mpos:par:myexample,
location=paragraph,
topoffset=0.4em,
leftoffset=0em,
rulethickness=0.7pt]
\definetyping[Listing]
[option=commands
scaled \MPvar{linewidth};
endfor;
\stopuseMPgraphic
\definetextbackground
[listingbackground]
[state=start,
mp=mpos:par:myexample,
location=paragraph,
topoffset=0.4em,
leftoffset=0em,
rulethickness=0.7pt]
\definetyping[Listing]
[option=commands]
\setuptyping
[Listing
multipars[ index ] --
ulcorner multipars[ index ] --
ulcorner multipars[ index ] shifted (9mm, 0);
draw p;
else:
% Draw only the vertical rule only when crossing page boundaries.
draw
llcorner multipars[ index ] --
ulcorner multipars[ index ];
fi
\stopuseMPgra
ge boundaries.
draw
llcorner multipars[ index ] --
ulcorner multipars[ index ];
fi
\stopuseMPgraphic
\definetextbackground[TextConcurrentFrame][
mp=GraphicConcurrent,
frame=off,
topoffset=1em,
leftoffset=1em,
before=\blank[2*big],
after=\blank,
location=paragraph,
]
\startsetups co
image(
draw border;
draw title;
);
endgroup;\stopusableMPgraphic
\definetextbackground[TextConcurrentFrame][
mp=GraphicConcurrent,
frame=off,
topoffset=1em,
leftoffset=1em,
location=paragraph,
]
\definestartstop[concurrent][
before={%
\blank[big]%
LEGEND:
ulcorner multipars[i] shifted 8 down ..
ulcorner multipars[i] shifted 8 right --
urcorner multipars[i]
withpen pencircle scaled 0.75 withcolor black;
endfor;
);
draw image(
draw border;
draw title;
);
endgroup;\stopusableMPgraphic
\def
Dear list,
Is there a trick to not apply the leftoffset to the header of a
defineenumeration?
MWE:
\definetextbackground
[textFrameEx]
[
frame=off,
framecolor=darkgreen,
rulethickness=2ex,
background=,
location=paragraph,
leftoffset=2.25ex,
rightoffset=2.25ex
create a block of text
where floats work as expected.
\definetextbackground
[Oliver]
[ location=paragraph,
corner=round,
rulethickness=2pt,
framecolor=black,
topoffset=1em,
bottomoffset=1em,
leftoffset=1em,
rightoffset=1em,
before=\blank
multipars[i]) -- (llcorner
multipars[i] xshifted .25cm) -- (ulcorner multipars[i] xshifted .25cm) --
cycle ;
fill p withcolor "darkgreen" ;
endfor;
endgroup;
\stopuseMPgraphic
together with
\definetextbackground
[exampleFrame]
[
mp=mp:textFrame,
location=paragraph,
]
Assuming I ha
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
This is the setup I have been using, but I'm unsure if the problem could be
related to the other problem I had. (Not scaled to a MWE, but short enough.) I
figured the issue by removing some of the lines.
\usemodule[vim]
\definetextbackground[codebkg]
[
fra
seem to work
\setupcolors[state=start]
\setupcolor[xwi]
\definetextbackground
[Code]
[frame=on,
framecolor=black,
%corner=0,
%offset=10pt,
background=color,
backgroundcolor=gray,
location=paragraph]
\setuptyping
[before={\blank\starttextbackground[Code
]
\definetextbackground
[Code]
[frame=on,
framecolor=black,
%corner=0,
%offset=10pt,
background=color,
backgroundcolor=gray,
location=paragraph]
\setuptyping
[before={\blank\starttextbackground[Code]},
after={\stoptextbackground\blank}]
\starttext
\starttyping
I am using the following preamble to put a frame around verbatim text. How
can I have all the text start some 5pt from the frame and how can I get
rounded corners, corner=0 does not seem to work
\setupcolors[state=start]
\setupcolor[xwi]
\definetextbackground
[Code]
[frame=on
On 6/25/2021 8:33 AM, Christoph Reller wrote:
Hi,
Consider the MWE:
\definetextbackground[background][
background=color,
backgroundcolor=gray]
\starttext
\starttextbackground[background]
Test
\stoptextbackground
\stoptext
In the latest version 2021-06-24 of ConTeXt LMTX, the
Hi,
Consider the MWE:
\definetextbackground[background][
background=color,
backgroundcolor=gray]
\starttext
\starttextbackground[background]
Test
\stoptextbackground
\stoptext
In the latest version 2021-06-24 of ConTeXt LMTX, the textbackground is not
working. Could this be a bug or am I
ere is no option line for me in the following example (LuaTeX and
> > LMTX) with the current version (2020.11.26 15:41).
> >
> > \usemodule[scite]
> >
> > \definetextbackground
> > [CodeBackground]
> > [ frame=off,
> > b
> > Cpp pretty printer. So do you know what's going on with Scite module?
>
> 1. There is still no working minimal example, just another piece.
>
> 2. There is no option line for me in the following example (LuaTeX and
> LMTX) with the current version (202
just another piece.
2. There is no option line for me in the following example (LuaTeX and
LMTX) with the current version (2020.11.26 15:41).
\usemodule[scite]
\definetextbackground
[CodeBackground]
[ frame=off,
background=color,
backgroundcolor=lightgray,
loc
gt; >
> > Why do pass a option for the typing environment to \starttext?
> >
> > > \definetextbackground[code][background=color, backgroundcolor=lightgray,
> > > frame=off, location=paragraph]
> > >
> > > \setuptyping[before={\startbackground[c
On Thu, 2020-11-26 at 19:35 +0100, Wolfgang Schuster wrote:
> Johann Birnick schrieb am 26.11.2020 um 19:26:
> > I didn't want to copy paste it :D Just add [option=XML] to \starttext like
> > this:
>
> Why do pass a option for the typing environment to \starttext?
&g
Johann Birnick schrieb am 26.11.2020 um 19:26:
I didn't want to copy paste it :D Just add [option=XML] to \starttext like this:
Why do pass a option for the typing environment to \starttext?
\definetextbackground[code][background=color, backgroundcolor=lightgray,
frame=off, loc
t; > > > > > > these
> > > > > > > and
> > > > > > > a
> > > > > > > sidebar. No addition spacing / empty lines.
> > > > > > A MWE will help...
> > > > > >
> > > >
t; > > > a
> > > > > > sidebar. No addition spacing / empty lines.
> > > > > A MWE will help...
> > > > >
> > > > > Aditya
> > > > For example, take:
> > > >
> > > > \definetextba
? I just want a background to these
and
a
sidebar. No addition spacing / empty lines.
A MWE will help...
Aditya
For example, take:
\definetextbackground[code][background=color, backgroundcolor=lightgray,
frame=off, location=paragraph]
\starttextbackground[code]
\starttyping
This is some code
a
ings properly? I just want a background to these
> > > > and
> > > > a
> > > > sidebar. No addition spacing / empty lines.
> > >
> > > A MWE will help...
> > >
> > > Aditya
> >
> > For example
...
Aditya
For example, take:
\definetextbackground[code][background=color, backgroundcolor=lightgray,
frame=off, location=paragraph]
\starttextbackground[code]
\starttyping
This is some code
a second line
\stoptyping
\stoptextbackground
You missed the W (working) in MWE.
\definetextbackground
> > > sidebar. No addition spacing / empty lines.
> >
> > A MWE will help...
> >
> > Aditya
>
> For example, take:
>
> \definetextbackground[code][background=color, backgroundcolor=lightgray,
> frame=off, location=paragraph]
>
>
> Aditya
For example, take:
\definetextbackground[code][background=color, backgroundcolor=lightgray,
frame=off, location=paragraph]
\starttextbackground[code]
\starttyping
This is some code
a second line
\st
Hi there,
in my document(s) I have enumerations (created with \defineenumeration) and
"typing"s (created with \definetyping) and I need to give a specific layout to
them. In particular, I want to add textbackground (created with
\definetextbackground) and sometimes a sidebar (cr
;
draw_multi_side;
\stopuseMPgraphic
\definetextbackground[leftbartext]
[location=paragraph,
mp=mpos:region:leftbar,
width=broad,
frame=off,
framecolor=darkred,
rulethickness=2pt,
frameoffset=1.25em,
topoffset=-2ex,
bottomoffset=-2ex
question in TeX.SE.
> > |
> >
> > |My attempt of solving was:
> > |
> >
> > |
> >
> https://tex.stackexchange.com/questions/567655/change-background-color-of-hyperlinks/567719?noredirect=1#comment1431936_567719
> >
> > \setupinteraction [sta
state=start] \definetextbackground[MyUrl] [
location=text, background=color,backgroundcolor=yellow, frame=off,
]\def\myfootnote#1{\MyUrl{\high{#1}}}
\setupfootnotes[textcommand=\myfootnote]
\definepapersize[default][A8,portrait] \setuppapersize [default]
\useURL[aurl] [https://wiki.contextgarde
Hi, list! I've seen the following question in TeX.SE.
My attempt of solving was:
https://tex.stackexchange.com/questions/567655/change-background-color-of-hyperlinks/567719?noredirect=1#comment1431936_567719
\setupinteraction [state=start]\definetextbackground[MyUrl]
[
location
Hi Otared and Wolfgang,
It's great, the following code does the job!
Thank you so much.
Fabrice
\useMPlibrary[dum]
\definecolor[fondpaille][c=0,m=0,y=0.2,k=0]
\setupfloats[freeregion=no]
\definetextbackground[fondpaille]
[background=color,
backgroundcolor=fondp
Otared Kavian schrieb am 16.07.2020 um 11:58:
Hi Fabrice,
Maybe you can play with different settings of your textbackground, as in
\definetextbackground[fondpaille]
[background=color,
backgroundcolor=fondpaille,
frame=off,
location=paragraph, % or: text, always
Hi Fabrice,
Maybe you can play with different settings of your textbackground, as in
\definetextbackground[fondpaille]
[background=color,
backgroundcolor=fondpaille,
frame=off,
location=paragraph, % or: text, always, paragraph
backgroundoffset=4pt
Wolfgang suggests is something like the following:
>
> \useMPlibrary[dum]
> \definecolor[fondpaille][c=0,m=0,y=0.2,k=0]
> \definetextbackground[fondpaille]
> [background=color,
> backgroundcolor=fondpaille,
> frame=off,
> location=always]
>
&
Hi Fabrice,
I think what Wolfgang suggests is something like the following:
\useMPlibrary[dum]
\definecolor[fondpaille][c=0,m=0,y=0.2,k=0]
\definetextbackground[fondpaille]
[background=color,
backgroundcolor=fondpaille,
frame=off,
location=always]
\starttext
> Am 11.06.2020 um 13:41 schrieb Axel Kielhorn :
>
>> Am 09.06.2020 um 20:41 schrieb Wolfgang Schuster
>> :
>>
>> Use a textbackground to highlight parts of your text.
>>
>> \definetextbackground
>> [Highlight]
>> [frame=off,
>> bac
> Am 09.06.2020 um 20:41 schrieb Wolfgang Schuster
> :
>
> Use a textbackground to highlight parts of your text.
>
> \definetextbackground
> [Highlight]
> [frame=off,
> background=color,
> backgroundcolor=yellow]
>
> \starttext
>
> \m{1
hat I can use \inframed to get background filled fully, but anyway - how about
usage of "bar" for this?
Use a textbackground to highlight parts of your text.
\definetextbackground
[Highlight]
[frame=off,
background=color,
backgroundcolor=yellow]
\starttext
\m{1 + 2 = \unit{3 kilo
.
\definetextbackground [DisplayBackground] [location=paragraph]
\definetextbackground [InlineBackground] [location=text]
\starttext
X\offset[x=1em]{\starttextbackground[InlineBackground]Text\stoptextbackground}
X\offset[x=1em]{\vtop{\starttextbackground[DisplayBackground]Text\crlf
Text\stoptextbackground
Jon Wong schrieb am 06.12.2019 um 04:13:
\setupwhitespace[line] % A line's spacing between paragraphs.
\starttext
\definetextbackground[InfoText][
location=paragraph, frame=on]
You can't use "location=paragraph" because the argument of the \setlayer
command is a s
\setupwhitespace[line] % A line's spacing between paragraphs.
\starttext
\definetextbackground[InfoText][
location=paragraph, frame=on]
\definelayer[testlayer]
\setlayer[testlayer][x=1cm,y=3cm]{%
\startInfoText
\stopInfoText
}
\flushlayer[testlayer]
\stoptext
Doesn’t work. Only wor
On Thu, 5 Sep 2019, Otared Kavian wrote:
Hi Aditya,
Thank you for your reply and for the link to your article: your explanations
are cristal clear and the solution for me is to use what you explain.
There is only one issue remaining, when using your code, that is:
\definetextbackground
cle: your
> explanations are cristal clear and the solution for me is to use what you
> explain.
>
> There is only one issue remaining, when using your code, that is:
>
> \definetextbackground
> [leftbartext]
> [
> location=paragraph,
> mp=mpos:region:left
Hi Aditya,
Thank you for your reply and for the link to your article: your explanations
are cristal clear and the solution for me is to use what you explain.
There is only one issue remaining, when using your code, that is:
\definetextbackground
[leftbartext]
[
location=paragraph
; lmtx without any problem.
>>>
>>> Thanks in advance for any help,
>>> Best regards: OK
>> you have some interaction between textrules and backgrounds (and that can be
>> a matter of very small differences in dimensions and rounding and such .. i
>> j
nding
and such .. i just don't see a quick way out) ... esp these
backgrounds are an old mechanism (maybe i should alias it to
textbackgrounds in lmtx)
much better is to use this:
\definetextbackground
[xx]
[location=paragraph]
\starttextbackground[xx]
\stoptextbackground
can you
don't see a quick way out) ... esp these backgrounds are
an old mechanism (maybe i should alias it to textbackgrounds in lmtx)
much better is to use this:
\definetextbackground
[xx]
[location=paragraph]
\starttextbackground[xx]
\stoptextbackground
can you try to use that instead?
] prevent \blank[-0.5em] from working
after a \framed?
(Ok. I better sleep before I pollute the mailing list further.)
Apparent Solution:
\usecolors[xwi]
\setupwhitespace[line]
\starttext
\definetextbackground[secondary][
location=always,
background=color,
backgroundcolor=lightgray
[line]
\starttext
\definetextbackground[secondary][
location=always,
background=color,
backgroundcolor=lightgray,
leftoffset=.5\bodyfontsize,
rightoffset=.5\bodyfontsize,
topoffset=.5\bodyfontsize,
bottomoffset=.5\bodyfontsize,
frame=off,]
\input knuth
\startnarrower
\dontleavehmode
hich
> appears above it no matter what permutations I try.
>
> (Secondary query: why do I have to set leftoffset=, rightoffset= etc.
> individually for the text background? offset= seems to have no effect.)
>
> Thanks for any help you can offer.
>
>
> \definete
the white box
which appears above it no matter what permutations I try.
(Secondary query: why do I have to set leftoffset=, rightoffset= etc.
individually for the text background? offset= seems to have no effect.)
Thanks for any help you can offer.
\definetextbackground[TintBoxed
[TexSnippet]
[DefaultSnippet]
Wolfgang
Aditya Mahajan schrieb am 28.04.2019 um 17:00:
Hi,
The following minimal example:
\definetextbackground
[EXAMPLE]
[
location=paragraph,
rulethickness=1pt,
leftoffset=5em,
rightoffset=0mm,
]
\setuptyping[option=tex
Hi,
The following minimal example:
\definetextbackground
[EXAMPLE]
[
location=paragraph,
rulethickness=1pt,
leftoffset=5em,
rightoffset=0mm,
]
\setuptyping[option=tex, before=\startEXAMPLE, after=\stopEXAMPLE]
\starttext
\starttyping
A = B + C
On 3/24/2019 5:46 PM, Aditya Mahajan wrote:
Hi,
With the latest beta, the following example:
\definetextbackground
[test]
[
location=paragraph,
]
\starttext
\startTEXpage[offset=5cm]
\starttest
\input knuth
\stoptest
\stopTEXpage
\stoptext
gives the attached output
Hi,
With the latest beta, the following example:
\definetextbackground
[test]
[
location=paragraph,
]
\starttext
\startTEXpage[offset=5cm]
\starttest
\input knuth
\stoptest
\stopTEXpage
\stoptext
gives the attached output.
Note that in the output the left and right offsets
and] in such a way, that the framed pieces break
>> over the page.
>
> \usemodule [setups]
>
> \setuppapersize [A6] [A6]
>
> \setupbodyfont [pagella,9pt]
>
> \definetextbackground
> [SetupsParameter]
> [before=\blank,
> after=\blank,
> to
\placelistofsorts[texcommand] in such a way, that the framed pieces break over
the page.
\usemodule [setups]
\setuppapersize [A6] [A6]
\setupbodyfont [pagella,9pt]
\definetextbackground
[SetupsParameter]
[before=\blank,
after=\blank,
topoffset=10pt,
leftoffset=10pt,
location
etapost
> 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 `\definebackground` instead
> of `defi
t; [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 metapost
> > code to draw the background (draw_multi_pars, defined in mp-abck.
kgrounds 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 `\define
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
l.lft(decimal i, ulcorner multipars[i]) withcolor red ;
endfor ;
\stopuseMPgraphic
\definetextbackground
[PageFrame]
[mp=pageframe,
location=paragraph]
\starttext
\samplefile{knuth}
\starttextbackground[PageFrame]
\samplefile{knuth}
\stoptextbackground
\samplefile{
1 - 100 of 429 matches
Mail list logo