[NTG-context] Re: There is something wrong with this paragraph.

2025-04-08 Thread Aditya Mahajan
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

[NTG-context] There is something wrong with this paragraph.

2025-04-08 Thread Ursula Hermann
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

[NTG-context] Re: Color in a Columntext, how does it work?, Here is my example, that works great now, but some questions, after new work.

2025-03-14 Thread Ursula Hermann
. \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

[NTG-context] Re: Color in a Columntext, how does it work?, Here is my example, that works great now, but some questions, after new work.

2025-03-13 Thread Ursula Hermann
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

[NTG-context] The formula after the text

2025-02-17 Thread Ursula Hermann
, 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

[NTG-context] Re: The formula after the text

2025-02-17 Thread Wolfgang Schuster
[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

[NTG-context] The formula after the text

2025-02-17 Thread Ursula Hermann
] \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

[NTG-context] Example, the formular is too much in the middle, should be mor left

2025-02-11 Thread Ursula Hermann
, 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

[NTG-context] Re: Draw leftframe to a description

2024-10-06 Thread Aditya Mahajan
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

[NTG-context] Re: Breakable tcolorbox in ConTeXt

2024-08-11 Thread Florent Michel
;). 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

[NTG-context] Re: Breakable tcolorbox in ConTeXt

2024-08-11 Thread Hans Hagen via ntg-context
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

[NTG-context] Breakable tcolorbox in ConTeXt

2024-08-11 Thread Florent Michel
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

[NTG-context] Draw leftframe to a description

2024-07-08 Thread Gerion Entrup
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

[NTG-context] background= key not working in \startbackground and \starttextbackground

2024-06-06 Thread Aditya Mahajan
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 [

[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
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, >

[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 works,

[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
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

[NTG-context] Re: Problem with the paragraph

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

[NTG-context] Re: Problem with the paragraph

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

[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
[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

[NTG-context] Re: Colored Paragraph

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

[NTG-context] Re: Colored Paragraph

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

[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
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

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

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

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

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

[NTG-context] Pass string into text background graphic

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

[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
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] [ fra

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

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

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, the

[NTG-context] textbackground not working

2021-06-24 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
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

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 (202

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

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

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

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

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? &g

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, loc

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 a

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 sidebar (cr

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
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

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

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

[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

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=fondp

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
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

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 s

[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 wor

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-04 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 >> j

Re: [NTG-context] Strange pagebreaks in LMTX

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

Re: [NTG-context] Strange pagebreaks in LMTX

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

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
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

[NTG-context] Unwanted white box above float

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

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
\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
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

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

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

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

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

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

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

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

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

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

2018-09-25 Thread Hans Hagen
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   2   3   4   5   >