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
orry, 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 work
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
w 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,
]
\definetextbackground
rnative=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, height=0.
=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\bodyfontsize
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
ext] 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.contextgarden.ne
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
___
If your
:
> 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
: 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
ipars[ 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
\stopuseMPgraphic
undaries.
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 conc
draw title;
);
endgroup;\stopusableMPgraphic
\definetextbackground[TextConcurrentFrame][
mp=GraphicConcurrent,
frame=off,
topoffset=1em,
leftoffset=1em,
location=paragraph,
]
\definestartstop[concurrent][
before={%
\blank[big]%
LEGEND: \xmlatt{\getvariable{div}{con
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
\definetextbackground[TextConcurre
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
to 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]
[
frame
not 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 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
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
s 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,
> > backgr
> > 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 (2020.11.
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,
location
t; >
> > Why do pass a option for the typing environment to \starttext?
> >
> > > \definetextbackground[code][background=color, backgroundcolor=lightgray,
> > > frame=off, location=paragraph]
> > >
> > > \setuptyping[before={\startbackground[code]}
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?
>
&
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, location
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
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 sideba
;
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
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]
=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.contextgarden.net
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=text
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=fondpaille
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
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 newton}}
\m{1 + 2 = \Highlig
.
\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 simple hori
\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 works
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
>> just don't
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 try to use
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? less page
] 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
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.
>
>
> \definetextbackgrou
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[TintBoxedBackground
[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
the
\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
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 `definetextbackground`. The
l 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.mkiv)
> > doesn't handl
ost
> 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 `defin
he 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 `\definebackground`
instead of `definetextbackgrou
[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,
bottomoffset=1em,
frame=off,
le
(decimal i, ulcorner multipars[i]) withcolor red ;
endfor ;
\stopuseMPgraphic
\definetextbackground
[PageFrame]
[mp=pageframe,
location=paragraph]
\starttext
\samplefile{knuth}
\starttextbackground[PageFrame]
\samplefile{knuth}
\stoptextbackground
\samplefile{knuth
nofmultipars :
draw (ulcorner multipars[i] -- urcorner multipars[i]) withcolor red ;
draw (llcorner multipars[i] -- lrcorner multipars[i]) withcolor red ;
label.lft(decimal i, ulcorner multipars[i]) withcolor red ;
endfor ;
\stopuseMPgraphic
\definetextbackground
[PageFrame]
[mp
On Tue, 14 Aug 2018 09:49:05 +0200
Hans Hagen ha escrit:
> On 8/13/2018 11:37 PM, dxpubl...@posteo.net wrote:
> > Hi,
> >
> > I have simple document which I define my \definetextbackground:
> > \startteoria and \stopteoria (see below). When I use it and put table
On Tue, 14 Aug 2018 09:49:05 +0200
Hans Hagen wrote:
> > I have simple document which I define my \definetextbackground:
> > \startteoria and \stopteoria (see below). When I use it and put table
> > within, the table does not get filled with color. Any solution?
&g
On 8/13/2018 11:37 PM, dxpubl...@posteo.net wrote:
Hi,
I have simple document which I define my \definetextbackground:
\startteoria and \stopteoria (see below). When I use it and put table
within, the table does not get filled with color. Any solution?
\setupfloats[table][freeregion
or location=right.
On Mon, 13 Aug 2018 21:37:45 +
dxpubl...@posteo.net wrote:
> Hi,
>
> I have simple document which I define my \definetextbackground:
> \startteoria and \stopteoria (see below). When I use it and put table
> within, the table does not get filled with colo
Hi,
I have simple document which I define my \definetextbackground:
\startteoria and \stopteoria (see below). When I use it and put table
within, the table does not get filled with color. Any solution?
Thanks in advance,
Xavier
\definecolor[teoriacolor][lightgray]
\definetextbackground
A minimal:
>
> \defineparagraphs [TestPar][n=2, distance=7mm]
> \setupparagraphs [TestPar][1][width=2em]
>
> \definetextbackground [CB][
> location=paragraph,
> backgroundcolor=gray,
> leftoffset=.3em,
> rightoffset=.3em,
> topoffset=.3em,
> bottomoffset=.
]
\definetextbackground [CB][
location=paragraph,
backgroundcolor=gray,
leftoffset=.3em,
rightoffset=.3em,
topoffset=.3em,
bottomoffset=.3em,
frame=off
]
\starttext
\starttextbackground [CB]
\dorecurse {40} {a b c }
\stoptextbackground
text
\starttextbackground [CB]
\startTestPar
img
\TestPar
\dorecurse {40
m]
> \definevimtyping[python][syntax=python, escape=on]
>
> \starttext
> \startpython[highlight=1]
> # Returns \m{\sum_{i=1}^{n}i \in F \int_i f}
> \stoppython
> \stoptext
> ```
By default, the highlighting is done using the bars mechanism. It works
for simple cases but f
lly usable:
> ```
> \usemodule[vim]
> \definevimtyping[python][syntax=python, escape=on]
>
> \starttext
> \startpython[highlight=1]
> # Returns \m{\sum_{i=1}^{n}i \in F \int_i f}
> \stoppython
> \stoptext
> ```
By default, the highlighting is done using the bar
rtpython[highlight=1]
> > # Returns \m{\sum_{i=1}^{n}i \in F \int_i f}
> > \stoppython
> > \stoptext
> > ```
> By default, the highlighting is done using the bars mechanism. It works
> for simple cases but fails with math mode (the spaces are not covered).
&
gt; # Returns \m{\sum_{i=1}^{n}i \in F \int_i f}
> > \stoppython
> > \stoptext
> > ```
>
> By default, the highlighting is done using the bars mechanism. It works
> for simple cases but fails with math mode (the spaces are not covered).
> One option is to highlight using the textbackgr
using the textbackground mechanism:
\definetextbackground[texthighlight]
[
background=color,
backgroundcolor=gray,
frame=off,
]
\define[1]\texthighlight{\starttexthighlight#1\stoptexthighlight}
\usemodule[vim]
\definevimtyping[python][syntax=python, escape
nd the code?
Background is no problem, escape in code is not implemented in t-vim. I filed
a feature request for
/BTEX ... /ETEX escaping as in regular typing on Aditya's GitHub:
https://github.com/adityam/filter/
issues/23
\definetextbackground
[verbatim]
[location=paragraph]
\usemodu
1 - 100 of 387 matches
Mail list logo