[NTG-context] Re: Struggling with the distance and right margin text

2024-03-22 Thread Ursula Hermann
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

[NTG-context] Re: Struggling with the distance and right margin text

2024-03-15 Thread Pablo Rodriguez via ntg-context
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, >

[NTG-context] Struggling with the distance and right margin text

2024-03-15 Thread Ursula Hermann
[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

[NTG-context] Re: How can I do this?

2024-03-08 Thread Otared Kavian
\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

[NTG-context] How can I do this?

2024-03-06 Thread Ursula Hermann
, 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

[NTG-context] Re: Works now! At Work, and a question to paragraphs in an Theorem

2024-02-27 Thread Pablo Rodriguez via ntg-context
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

[NTG-context] Works now! At Work, and a question to paragraphs in an Theorem

2024-02-27 Thread Ursula Hermann
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

[NTG-context] Re: Problem with the paragraph

2023-12-18 Thread Ursula Hermann
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

[NTG-context] Re: Problem with the paragraph

2023-12-15 Thread Bruce Horrocks
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.

[NTG-context] Re: Problem with the paragraph

2023-12-14 Thread Wolfgang Schuster
=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

[NTG-context] Re: Problem with the paragraph

2023-12-14 Thread Ursula Hermann
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

[NTG-context] Re: Problem with the paragraph

2023-12-13 Thread Henning Hraban Ramm
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

[NTG-context] Problem with the paragraph

2023-12-13 Thread Ursula Hermann
, ] \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

2023-12-05 Thread Ursula Hermann
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

[NTG-context] Re: Colored Paragraph

2023-12-05 Thread Henning Hraban Ramm
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

[NTG-context] Re: Colored Paragraph

2023-12-05 Thread 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

[NTG-context] Re: Colored Paragraph

2023-12-05 Thread Ursula Hermann
: 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

[NTG-context] Re: Colored Paragraph

2023-12-05 Thread Henning Hraban Ramm
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

[NTG-context] Verbatim Textbox with Reference NUmbering

2023-09-09 Thread Jeroen
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

[NTG-context] Re: Text runs out of Verbatim Frame

2023-09-08 Thread Wolfgang Schuster
; 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

[NTG-context] Text runs out of Verbatim Frame

2023-09-08 Thread Jeroen
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

[NTG-context] Re: Pass string into text background graphic

2023-08-12 Thread Hans Hagen via ntg-context
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

[NTG-context] Re: Pass string into text background graphic

2023-08-12 Thread Thangalin
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

[NTG-context] Re: Pass string into text background graphic

2023-08-11 Thread Hans Hagen
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

[NTG-context] Pass string into text background graphic

2023-08-11 Thread Thangalin
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

[NTG-context] Defineenumeration head offset

2022-11-07 Thread Alexandre Christe via ntg-context
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

Re: [NTG-context] Floating Figure in framed-environment

2022-10-19 Thread Wolfgang Schuster via ntg-context
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

[NTG-context] Question about text backgrounds

2022-09-03 Thread Alexandre Christe via ntg-context
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

[NTG-context] textbackground for text of different size

2021-09-12 Thread Sylvain Hubert via ntg-context
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

Re: [NTG-context] lmtx update/t-vim (again)

2021-08-23 Thread Benjamin Buchmuller via ntg-context
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

Re: [NTG-context] Verbatim text in a frame

2021-07-31 Thread Wolfgang Schuster via ntg-context
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

Re: [NTG-context] Verbatim text in a frame

2021-07-30 Thread Hans Hagen via ntg-context
] \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

[NTG-context] Verbatim text in a frame

2021-07-30 Thread Jeroen via ntg-context
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

Re: [NTG-context] textbackground not working

2021-06-25 Thread Hans Hagen
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

[NTG-context] textbackground not working

2021-06-25 Thread Christoph Reller
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

Re: [NTG-context] Vertical space when surrounding with textbackground

2020-11-26 Thread Johann Birnick
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

Re: [NTG-context] Vertical space when surrounding with textbackground

2020-11-26 Thread Johann Birnick
> > 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.

Re: [NTG-context] Vertical space when surrounding with textbackground

2020-11-26 Thread Wolfgang Schuster
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

Re: [NTG-context] Vertical space when surrounding with textbackground

2020-11-26 Thread Johann Birnick
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]}

Re: [NTG-context] Vertical space when surrounding with textbackground

2020-11-26 Thread Johann Birnick
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? > &

Re: [NTG-context] Vertical space when surrounding with textbackground

2020-11-26 Thread Wolfgang Schuster
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

Re: [NTG-context] Vertical space when surrounding with textbackground

2020-11-26 Thread Aditya Mahajan
t; > > > > > > these > > > > > > > and > > > > > > > a > > > > > > > sidebar. No addition spacing / empty lines. > > > > > > A MWE will help... > > > > > > > > > >

Re: [NTG-context] Vertical space when surrounding with textbackground

2020-11-26 Thread Johann Birnick
t; > > > a > > > > > > sidebar. No addition spacing / empty lines. > > > > > A MWE will help... > > > > > > > > > > Aditya > > > > For example, take: > > > > > > > > \definetextba

Re: [NTG-context] Vertical space when surrounding with textbackground

2020-11-26 Thread Wolfgang Schuster
? 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

Re: [NTG-context] Vertical space when surrounding with textbackground

2020-11-26 Thread Johann Birnick
ings properly? I just want a background to these > > > > and > > > > a > > > > sidebar. No addition spacing / empty lines. > > > > > > A MWE will help... > > > > > > Aditya > > > > For example

Re: [NTG-context] Vertical space when surrounding with textbackground

2020-11-26 Thread Wolfgang Schuster
... 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

Re: [NTG-context] Vertical space when surrounding with textbackground

2020-11-26 Thread Aditya Mahajan
> > > sidebar. No addition spacing / empty lines. > > > > A MWE will help... > > > > Aditya > > For example, take: > > \definetextbackground[code][background=color, backgroundcolor=lightgray, > frame=off, location=paragraph] >

Re: [NTG-context] Vertical space when surrounding with textbackground

2020-11-26 Thread Johann Birnick
> > 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

[NTG-context] Vertical space when surrounding with textbackground

2020-11-26 Thread Johann Birnick
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

Re: [NTG-context] Piecewise margin line

2020-11-19 Thread Otared Kavian
; 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

Re: [NTG-context] Concerning text backgrounds (and further tuning) in references

2020-10-24 Thread Jairo A. del Rio
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]

Re: [NTG-context] Concerning text backgrounds (and further tuning) in references

2020-10-24 Thread Wolfgang Schuster
=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

[NTG-context] Concerning text backgrounds (and further tuning) in references

2020-10-23 Thread Jairo A. del Rio
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

Re: [NTG-context] Text around a figure

2020-07-16 Thread Fabrice Couvreur
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

Re: [NTG-context] Text around a figure

2020-07-16 Thread Wolfgang Schuster
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

Re: [NTG-context] Text around a figure

2020-07-16 Thread Otared Kavian
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

Re: [NTG-context] Text around a figure

2020-07-16 Thread Fabrice Couvreur
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] > &

Re: [NTG-context] Text around a figure

2020-07-15 Thread Otared Kavian
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

Re: [NTG-context] Bar within math (amended)

2020-06-15 Thread Henning Hraban Ramm
> 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

Re: [NTG-context] Bar within math (amended)

2020-06-11 Thread 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, > background=color, > backgroundcolor=yellow] > > \starttext > > \m{1

Re: [NTG-context] Bar within math (amended)

2020-06-09 Thread Wolfgang Schuster
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

Re: [NTG-context] Using TestBackground inside Offset

2019-12-23 Thread Wolfgang Schuster
. \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

Re: [NTG-context] Textbackground inside Layer?

2019-12-09 Thread Wolfgang Schuster
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

[NTG-context] Textbackground inside Layer?

2019-12-05 Thread Jon Wong
\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

Re: [NTG-context] Strange pagebreaks in LMTX

2019-09-05 Thread Aditya Mahajan
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

Re: [NTG-context] Strange pagebreaks in LMTX

2019-09-05 Thread Duncan Hothersall
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

Re: [NTG-context] Strange pagebreaks in LMTX

2019-09-04 Thread Otared Kavian
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

Re: [NTG-context] Strange pagebreaks in LMTX

2019-09-04 Thread Otared Kavian
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

Re: [NTG-context] Strange pagebreaks in LMTX

2019-09-04 Thread Wolfgang Schuster
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

Re: [NTG-context] Strange pagebreaks in LMTX

2019-09-04 Thread Hans Hagen
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

Re: [NTG-context] startnarrower and framed?

2019-08-21 Thread Jon Wong
] 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

Re: [NTG-context] startnarrower and framed?

2019-08-21 Thread Jon Wong
[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

Re: [NTG-context] Unwanted white box above float

2019-07-22 Thread Taco Hoekwater
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

[NTG-context] Unwanted white box above float

2019-07-22 Thread Duncan Hothersall
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

Re: [NTG-context] option=tex in setuptyping causes the background to be drawn twice

2019-04-28 Thread Wolfgang Schuster
    [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

[NTG-context] option=tex in setuptyping causes the background to be drawn twice

2019-04-28 Thread Aditya Mahajan
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

Re: [NTG-context] Incorrect offset when textframe is used inside TEXpage

2019-03-25 Thread Hans Hagen
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

[NTG-context] Incorrect offset when textframe is used inside TEXpage

2019-03-24 Thread Aditya Mahajan
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

Re: [NTG-context] Small pages and large framed texts

2019-03-21 Thread Willi Egger
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

Re: [NTG-context] Small pages and large framed texts

2019-03-20 Thread Wolfgang Schuster
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

Re: [NTG-context] Background under bibliography (like in mkiv-publications.pdf)

2019-03-18 Thread Romain Diss
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

Re: [NTG-context] Background under bibliography (like in mkiv-publications.pdf)

2019-03-18 Thread Romain Diss
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

Re: [NTG-context] Background under bibliography (like in mkiv-publications.pdf)

2019-03-18 Thread Alan Braslau
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

Re: [NTG-context] Background under bibliography (like in mkiv-publications.pdf)

2019-03-18 Thread Aditya Mahajan
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

Re: [NTG-context] Background under bibliography (like in mkiv-publications.pdf)

2019-03-18 Thread Romain Diss
[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

Re: [NTG-context] MetaFun: nofmultipars wrong?

2018-09-25 Thread Hans Hagen
(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

[NTG-context] MetaFun: nofmultipars wrong?

2018-09-24 Thread Henri Menke
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

Re: [NTG-context] \definetextbackground does not fill tables within

2018-08-15 Thread Xavier B.
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

Re: [NTG-context] \definetextbackground does not fill tables within

2018-08-14 Thread Alan Braslau
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

Re: [NTG-context] \definetextbackground does not fill tables within

2018-08-14 Thread Hans Hagen
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

Re: [NTG-context] \definetextbackground does not fill tables within

2018-08-13 Thread Alan Braslau
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

[NTG-context] \definetextbackground does not fill tables within

2018-08-13 Thread dxpublica
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

Re: [NTG-context] Textbackground offset with multi-col paragraphs

2017-11-23 Thread Thomas Floeren
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=.

[NTG-context] Textbackground offset with multi-col paragraphs

2017-11-02 Thread Thomas Floeren
] \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

Re: [NTG-context] t-vim module: math in "normal" code and background color

2017-07-19 Thread Aditya Mahajan
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

Re: [NTG-context] t-vim module: math in "normal" code and background color

2017-07-19 Thread Aditya Mahajan
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

Re: [NTG-context] t-vim module: math in "normal" code and background color

2017-07-19 Thread Henri Menke
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).  &

Re: [NTG-context] t-vim module: math in "normal" code and background color

2017-07-19 Thread Gerion Entrup
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

Re: [NTG-context] t-vim module: math in "normal" code and background color

2017-07-19 Thread Aditya Mahajan
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

Re: [NTG-context] t-vim module: math in "normal" code and background color

2017-07-17 Thread Henri Menke
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   2   3   4   >