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

2024-10-06 Thread Aditya Mahajan
On Sun, 6 Oct 2024, Gerion Entrup wrote: > I got exactly the same problems like with textbackground (see the > stackexchange post for screenshots). I had replied to you on stackexachange, but I think that the mailing list is a better place to discuss this, so I am following u

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

2024-10-05 Thread Gerion Entrup
ar Thank you for that command, it is pretty much that what I want. In contrast to a textbackground, it seems to be always in the margin of the page. I tried: ``` \definesidebar[excursussb][ rulethickness=1mm, rulecolor=darkred, distance=1mm, % <- this seems to be not r

[NTG-context] Draw leftframe to a description

2024-07-08 Thread Gerion Entrup
without success. The solution with \textbackground looks somewhat promising. It supports pagebreaks, but draws above footnotes and prints a small rectangle at the end of the excursus. I also didn't found a way to specify a leftframe only. Also, loffset seems to have no effect, here. Do I use the

[NTG-context] Wiki - question about Command/ pages which start with a space character

2024-04-14 Thread garulfo
ayer Command/ startxtable Command/ stoplinenote Command/ style Command/ synonym Command/ textbackground Command/ textnote Command/ tooltip Command/ type Command/ typebuffer Command/ unit ___ If your question is of interest

[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] Re: textbackground spacing offset

2024-01-31 Thread Marco Patzer
On Wed, 31 Jan 2024 19:41:02 +0100 Hans Hagen wrote: > >> How do it get the same spacing as in the framedtext case? > > > > Is there a solution to this? Or an explanation why the spacing > > differs? > these are fundamentally different mechanisms .. you can play with > \inframed in the seco

[NTG-context] Re: textbackground spacing offset

2024-01-31 Thread Hans Hagen
On 1/31/2024 7:15 PM, Marco Patzer wrote: On Thu, 16 Nov 2023 13:52:05 +0100 Marco Patzer wrote: I'm having problems getting the textbackground spacing offset to work. Example: \setupframedtext [offset=overlay, width=max, depthcorrection=off] \setuptextbackground [loc

[NTG-context] Re: textbackground spacing offset

2024-01-31 Thread Marco Patzer
On Thu, 16 Nov 2023 13:52:05 +0100 Marco Patzer wrote: > I'm having problems getting the textbackground spacing offset to work. > Example: > > \setupframedtext > [offset=overlay, >width=max, >depthcorrection=off] > > \setuptextbackground >

[NTG-context] Re: Problem with the paragraph

2023-12-18 Thread Ursula Hermann
:44, Ursula Hermann wrote: > > If I change the name of the textbackground with my example, I sent yesterday, > there is no color in the paragraph. > Try the following version of your example which incoporates Hraban's and Wolfgang's suggestions. Also take care over ch

[NTG-context] Re: Problem with the paragraph

2023-12-15 Thread Bruce Horrocks
> On 14 Dec 2023, at 09:44, Ursula Hermann wrote: > > If I change the name of the textbackground with my example, I sent yesterday, > there is no color in the paragraph. > Try the following version of your example which incoporates Hraban's and Wolfgang's suggest

[NTG-context] Re: Problem with the paragraph

2023-12-14 Thread Ursula Hermann
Dear Henning, If I change the name of the textbackground with my example, I sent yesterday, there is no color in the paragraph. Many thanks Uschi Von: Henning Hraban Ramm Gesendet: Mittwoch, 13. Dezember 2023 15:52:08 An: mailing list for ConTeXt users

[NTG-context] Re: Problem with the paragraph

2023-12-13 Thread Henning Hraban Ramm
, the behaviour is undefined. First try to give your textbackground a different name. Hraban ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl

[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] textbackground spacing offset

2023-11-16 Thread Marco Patzer
Hi! I'm having problems getting the textbackground spacing offset to work. Example: \setupframedtext [offset=overlay, width=max, depthcorrection=off] \setuptextbackground [location=paragraph, %% offset=overlay, %% does nothing %% backgroundoffset=overlay, %%

Re: [NTG-context] Visual highlighted text with title, mix of enumeration and framedtext

2023-03-06 Thread Aditya Mahajan via ntg-context
of an enumeration and framedtext that can produce > > something like in the attached picture? > > If you don’t need an enumeration, then don’t use one. > > Did you try text backgrounds? > https://wiki.contextgarden.net/TextBackground As an example, see this article th

Re: [NTG-context] Visual highlighted text with title, mix of enumeration and framedtext

2023-03-06 Thread Henning Hraban Ramm via ntg-context
t that can produce something like in the attached picture? If you don’t need an enumeration, then don’t use one. Did you try text backgrounds? https://wiki.contextgarden.net/TextBackground And then use the plethora of \framed option

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

2022-10-19 Thread Wolfgang Schuster via ntg-context
work and I haven’t found out why. Maybe I totally use it the wrong way. I would appreciate if someone could help me or has a tipp. Here is an example code, where the figure does not behave as expected, i.e. the figure is behind the text: [...] You have to use the textbackground mechanism to

[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] numbered exercises

2021-08-24 Thread Henning Hraban Ramm via ntg-context
-drawn line. What’s the right approach? Overlay? Textbackground? Hraban ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman

Re: [NTG-context] textbackground not working

2021-06-25 Thread Hans Hagen
textbackground is not working. Could this be a bug or am I doing something wrong? Cheers, Christoph fixed in next upload (note: tex->mp parameters are redone, more in a pull than push fash

[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] frameoffset in textbackground?

2021-06-08 Thread Wolfgang Schuster
Hans van der Meer schrieb am 07.06.2021 um 21:46: In the following MWE for a textbackground the parameter backgroundoffset has the expected effect. But for positive values only. A backgroundoffset=-10pt has no visible effect. But the real problem is the parameter frameoffset. No effect at all

[NTG-context] frameoffset in textbackground?

2021-06-07 Thread Hans van der Meer
In the following MWE for a textbackground the parameter backgroundoffset has the expected effect. But for positive values only. A backgroundoffset=-10pt has no visible effect.But the real problem is the parameter frameoffset. No effect at all, whatever frameoffset= is set to. dr. Hans van der Meer

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

2020-11-26 Thread Johann Birnick
On Thu, 2020-11-26 at 21:01 +0100, Johann Birnick wrote: > On Thu, 2020-11-26 at 20:11 +0100, Wolfgang Schuster wrote: > > Johann Birnick schrieb am 26.11.2020 um 19:42: > > > Ah, sorry again. I use > > > > > > \usemodule[Scite] > > > > > > at the begin of the document. Removing this helps. But I

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

2020-11-26 Thread Wolfgang Schuster
? You have to use the textbackground environment with a custom background to draw the line, the sidebar environment doesn't work because the code blocks forces a line break at the begin and end. You can look at Adityas blog for a example to create such a background: https://adityam.github.

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

2020-11-26 Thread Johann Birnick
On Thu, 2020-11-26 at 20:11 +0100, Wolfgang Schuster wrote: > Johann Birnick schrieb am 26.11.2020 um 19:42: > > Ah, sorry again. I use > > > > \usemodule[Scite] > > > > at the begin of the document. Removing this helps. But I need it for the C > > and > > Cpp pretty printer. So do you know what'

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

2020-11-26 Thread Wolfgang Schuster
Johann Birnick schrieb am 26.11.2020 um 19:42: Ah, sorry again. I use \usemodule[Scite] at the begin of the document. Removing this helps. But I need it for the C and Cpp pretty printer. So do you know what's going on with Scite module? 1. There is still no working minimal example, just anoth

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

2020-11-26 Thread Johann Birnick
On Thu, 2020-11-26 at 19:39 +0100, Johann Birnick wrote: > 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 th

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? > > > \definetextbackground[code

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

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

2020-11-26 Thread Aditya Mahajan
On Thu, 26 Nov 2020, Johann Birnick wrote: > On Thu, 2020-11-26 at 19:17 +0100, Wolfgang Schuster wrote: > > Johann Birnick schrieb am 26.11.2020 um 19:10: > > > On Thu, 2020-11-26 at 17:31 +0100, Wolfgang Schuster wrote: > > > > Johann Birnick schrieb am 26.11.2020 um 17:00: > > > > > On Thu, 202

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

2020-11-26 Thread Johann Birnick
On Thu, 2020-11-26 at 19:17 +0100, Wolfgang Schuster wrote: > Johann Birnick schrieb am 26.11.2020 um 19:10: > > On Thu, 2020-11-26 at 17:31 +0100, Wolfgang Schuster wrote: > > > Johann Birnick schrieb am 26.11.2020 um 17:00: > > > > On Thu, 2020-11-26 at 09:38 -0500, Aditya Mahajan wrote: > > > >

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

2020-11-26 Thread Wolfgang Schuster
Johann Birnick schrieb am 26.11.2020 um 19:10: On Thu, 2020-11-26 at 17:31 +0100, Wolfgang Schuster wrote: Johann Birnick schrieb am 26.11.2020 um 17:00: On Thu, 2020-11-26 at 09:38 -0500, Aditya Mahajan wrote: On Thu, 26 Nov 2020, Johann Birnick wrote: How to surround such things properly?

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

2020-11-26 Thread Johann Birnick
On Thu, 2020-11-26 at 17:31 +0100, Wolfgang Schuster wrote: > Johann Birnick schrieb am 26.11.2020 um 17:00: > > On Thu, 2020-11-26 at 09:38 -0500, Aditya Mahajan wrote: > > > On Thu, 26 Nov 2020, Johann Birnick wrote: > > > > > > > How to surround such things properly? I just want a background to

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

2020-11-26 Thread Wolfgang Schuster
Johann Birnick schrieb am 26.11.2020 um 17:00: On Thu, 2020-11-26 at 09:38 -0500, Aditya Mahajan wrote: On Thu, 26 Nov 2020, Johann Birnick wrote: How to surround such things properly? I just want a background to these and a sidebar. No addition spacing / empty lines. A MWE will help... Adi

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

2020-11-26 Thread Aditya Mahajan
On Thu, 26 Nov 2020, Johann Birnick wrote: > On Thu, 2020-11-26 at 09:38 -0500, Aditya Mahajan wrote: > > On Thu, 26 Nov 2020, Johann Birnick wrote: > > > > > How to surround such things properly? I just want a background to these > > > and > > > a > > > sidebar. No addition spacing / empty line

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

2020-11-26 Thread Johann Birnick
On Thu, 2020-11-26 at 09:38 -0500, Aditya Mahajan wrote: > On Thu, 26 Nov 2020, Johann Birnick wrote: > > > How to surround such things properly? I just want a background to these and > > a > > sidebar. No addition spacing / empty lines. > > A MWE will help... > > Aditya For example, take: \de

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

2020-11-26 Thread Aditya Mahajan
On Thu, 26 Nov 2020, Johann Birnick wrote: > How to surround such things properly? I just want a background to these and a > sidebar. No addition spacing / empty lines. A MWE will help... Aditya ___ If your question

[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] Text around a figure

2020-07-16 Thread Fabrice Couvreur
ward \stopitem} \stopitemize \stoptextbackground \stoptext Le jeu. 16 juil. 2020 à 14:59, Wolfgang Schuster < wolfgang.schuster.li...@gmail.com> a écrit : > Otared Kavian schrieb am 16.07.2020 um 11:58: > > Hi Fabrice, > > > > Maybe you can play with different settin

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
; >> \startframedtext[width=max,background=color,backgroundcolor=fondpaille] > >> \placefloat[][right,none]{} > >>{\externalfigure[dummy]} > >> \startitemize[n] > >>\dorecurse{3}{\startitem \input

Re: [NTG-context] Text around a figure

2020-07-15 Thread Otared Kavian
;> \startitemize[n] >>\dorecurse{3}{\startitem \input ward \stopitem} >> \stopitemize >>\stopframedtext >>\stoptext > > > Side floats don't work in frames, use the textbackground environment to add a > colored box behind the text. > &g

Re: [NTG-context] Text around a figure

2020-07-15 Thread Wolfgang Schuster
,background=color,backgroundcolor=fondpaille]      \placefloat[][right,none]{}        {\externalfigure[dummy]}      \startitemize[n]        \dorecurse{3}{\startitem \input ward \stopitem}      \stopitemize    \stopframedtext    \stoptext Side floats don't work in frames, use the textbackg

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] background of \typing fills column

2020-06-01 Thread Wolfgang Schuster
Henning Hraban Ramm schrieb am 01.06.2020 um 20:22: Hi, I finally wanted to attack CG journal 2019 again and stumble upon this error: If an article contains several \starttyping ... \stoptyping examples with a textbackground, it sometimes fills the whole column (pagecolumns). It doesn’t occur

[NTG-context] background of \typing fills column

2020-06-01 Thread Henning Hraban Ramm
Hi, I finally wanted to attack CG journal 2019 again and stumble upon this error: If an article contains several \starttyping ... \stoptyping examples with a textbackground, it sometimes fills the whole column (pagecolumns). It doesn’t occur if the "typing" is at top or bottom of the

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 horizontal box whic

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

Re: [NTG-context] Strange pagebreaks in LMTX

2019-09-04 Thread Duncan Hothersall
otnote and its number a little to the > right, or the leftbartext to the left. > > Best regards: OK > > > On 5 Sep 2019, at 06:45, Aditya Mahajan wrote: > > > > On Thu, 5 Sep 2019, Otared Kavian wrote: > > > >> Hi Wolfgang, > >> > >>

Re: [NTG-context] Strange pagebreaks in LMTX

2019-09-04 Thread Otared Kavian
left. Best regards: OK > On 5 Sep 2019, at 06:45, Aditya Mahajan wrote: > > On Thu, 5 Sep 2019, Otared Kavian wrote: > >> Hi Wolfgang, >> >> Thanks for your answer. I tried Hans' suggestion to use \textbackground >> instead of background: indee

Re: [NTG-context] Strange pagebreaks in LMTX

2019-09-04 Thread Aditya Mahajan
On Thu, 5 Sep 2019, Otared Kavian wrote: Hi Wolfgang, Thanks for your answer. I tried Hans' suggestion to use \textbackground instead of background: indeed it solves the problem of incorrect page breaks, but it seems that \setuptextbackground « leftframe=on » is not honoured, that i

Re: [NTG-context] Strange pagebreaks in LMTX

2019-09-04 Thread Otared Kavian
Hi Wolfgang, Thanks for your answer. I tried Hans' suggestion to use \textbackground instead of background: indeed it solves the problem of incorrect page breaks, but it seems that \setuptextbackground « leftframe=on » is not honoured, that is one cannot say for ins

Re: [NTG-context] startnarrower and framed?

2019-08-21 Thread Jon Wong
r > > \input knuth > \stoptext > > Regards > Jon > > >> On Aug 21, 2019, at 9:37 PM, Jon Wong > <mailto:jhannw...@gmail.com>> wrote: >> >> Hi all, >> >> Ah, found the solution in TextBackground. At here: >> https://www.conte

Re: [NTG-context] startnarrower and framed?

2019-08-21 Thread Jon Wong
, > > Ah, found the solution in TextBackground. At here: > https://www.contextgarden.net/TextBackground > <https://www.contextgarden.net/TextBackground> > > Can I have a 2-segment (2 vboxes) TextBackground (presumably with 2 > TextBackgrounds, zero vspace between the

Re: [NTG-context] startnarrower and framed?

2019-08-21 Thread Jon Wong
Hi all, Ah, found the solution in TextBackground. At here: https://www.contextgarden.net/TextBackground <https://www.contextgarden.net/TextBackground> Can I have a 2-segment (2 vboxes) TextBackground (presumably with 2 TextBackgrounds, zero vspace between them)? For the top segment,

Re: [NTG-context] Captions with background

2019-08-04 Thread Hans Hagen
. If the caption is short, the box should be minimal. Is this possible? Even better would be a textbackground just behind the text lines. Unfortunately my MP foo is not up to the task, the rectangular shadow was hard enough, but I’d try. There’s an example in details.pdf, but I don’t understand

[NTG-context] Captions with background

2019-08-03 Thread Henning Hraban Ramm
minimal. Is this possible? Even better would be a textbackground just behind the text lines. Unfortunately my MP foo is not up to the task, the rectangular shadow was hard enough, but I’d try. There’s an example in details.pdf, but I don’t understand how I could manipulate the path around the text

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

2019-03-21 Thread Willi Egger
I appears that I was not clear enough, though I am happy about the >> possibility of using textbackground. >> What I must do is to prepare a list of ConTeXt commands on a very small >> page. So the specific question is, how I can influence the >> \placelistofsorts[texcomm

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

2019-03-20 Thread Wolfgang Schuster
Willi Egger schrieb am 20.03.19 um 22:11: It’s me again… I appears that I was not clear enough, though I am happy about the possibility of using textbackground. What I must do is to prepare a list of ConTeXt commands on a very small page. So the specific question is, how I can influence the

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

2019-03-20 Thread Willi Egger
It’s me again… I appears that I was not clear enough, though I am happy about the possibility of using textbackground. What I must do is to prepare a list of ConTeXt commands on a very small page. So the specific question is, how I can influence the \placelistofsorts[texcommand] in such a way

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

2019-03-20 Thread Wolfgang Schuster
{\dorecurse{3}{\input ward\blank}} \stoptext Any hints would be welcome Use the textbackground environment. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki

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

2019-03-18 Thread Romain Diss
27;. > > > > In this minimal example, the frame doesn't appear (or if i set > > [frame=on,leftframe=off] all the frame is rendered) and the left and > > right offsets are not took into account. > > textbackground uses metapost for ALL backgrounds and the default m

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

2019-03-18 Thread Romain Diss
ibliography for > > > examples). > > > I suppose Hans Hagen made use of metafun to do it but I encounter some > > > problems with 'textbackgrounds'. > > > > > > In this minimal example, the frame doesn't appear (or if i set > > &g

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

2019-03-18 Thread Alan Braslau
ith 'textbackgrounds'. > > > > In this minimal example, the frame doesn't appear (or if i set > > [frame=on,leftframe=off] all the frame is rendered) and the left and > > right offsets are not took into account. > > textbackground uses metapost for ALL bac

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

2019-03-18 Thread Aditya Mahajan
made use of metafun to do it but I encounter some problems with 'textbackgrounds'. In this minimal example, the frame doesn't appear (or if i set [frame=on,leftframe=off] all the frame is rendered) and the left and right offsets are not took into account. textbackground uses meta

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

2017-11-23 Thread Thomas Floeren
> On 2. Nov 2017, at 15:17, Thomas Floeren wrote: > > Hi, > > I noticed that with one of the recent betas the right offset of my > textbackgrounds doesn’t work properly anymore when the textbackground > contains a multi-column “paragraph”. > > A minimal: > >

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

2017-11-02 Thread Thomas Floeren
> On 2. Nov 2017, at 18:55, Pablo Rodriguez wrote: > > On 11/02/2017 03:17 PM, Thomas Floeren wrote: >> Hi, >> >> I noticed that with one of the recent betas the right offset of my >> textbackgrounds doesn’t work properly anymore when the textbackground >

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

2017-11-02 Thread Pablo Rodriguez
On 11/02/2017 03:17 PM, Thomas Floeren wrote: > Hi, > > I noticed that with one of the recent betas the right offset of my > textbackgrounds doesn’t work properly anymore when the textbackground > contains a multi-column “paragraph”. > > The first box is OK and as expected

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

2017-11-02 Thread Thomas Floeren
Hi, I noticed that with one of the recent betas the right offset of my textbackgrounds doesn’t work properly anymore when the textbackground contains a multi-column “paragraph”. A minimal: \defineparagraphs [TestPar][n=2, distance=7mm] \setupparagraphs [TestPar][1][width=2em

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

2017-07-19 Thread Aditya Mahajan
` > \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 bars mechanism. It works fo

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

2017-07-19 Thread Aditya Mahajan
TeX-code is not really 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 i

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

2017-07-19 Thread Henri Menke
; > the text: > I'll look at this later > > > > > Another point I saw is, that highlight together with TeX-code is not really > > usable: > > ``` > > \usemodule[vim] > > \definevimtyping[python][syntax=python, escape=on] > > > > \star

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

2017-07-19 Thread Gerion Entrup
s later > > > Another point I saw is, that highlight together with TeX-code is not really > > usable: > > ``` > > \usemodule[vim] > > \definevimtyping[python][syntax=python, escape=on] > > > > \starttext > > \startpython

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

2017-07-19 Thread Aditya Mahajan
tion is to highlight using the textbackground mechanism: \definetextbackground[texthighlight] [ background=color, backgroundcolor=gray, frame=off, ] \define[1]\texthighlight{\starttexthighlight#1\stoptexthighlight} \usemodule[vim] \definevimtyping[python][synt

Re: [NTG-context] Footnote in TABLE isn't rendered anywhere

2017-07-16 Thread Mathias Schickel
ckground >>> \dorecurse{10}{test\footnote{tufte}: \input tufte\par} >>> \stoptextbackground >>> >>> \stoptext >>> >> I have found the following to be necessary when using textbackground, >> especially when backgrounds cross page boundaries: &g

Re: [NTG-context] Footnote in TABLE isn't rendered anywhere

2017-07-15 Thread Hans Hagen
when using textbackground, especially when backgrounds cross page boundaries: \setnewconstant\kindofpagetextareas\plusone % partial page. HH: low level, no high level switch (yet) Maybe Hans can explain this? Because it's an option (with no parameter yet .. not sure where/how to configure it

Re: [NTG-context] Footnote in TABLE isn't rendered anywhere

2017-07-15 Thread Alan Braslau
On Wed, 12 Jul 2017 19:05:26 +0200 Hans Hagen wrote: > best play with textbackgrounds > > \starttext > > \starttextbackground > \dorecurse{10}{test\footnote{tufte}: \input tufte\par} > \stoptextbackground > > \stoptext > I have found the following to be neces

Re: [NTG-context] Footnote in TABLE isn't rendered anywhere

2017-07-12 Thread Mathias Schickel
hat I can do to settle the problem? I have created a minimal example that shows the problem using textbackground to work around the footnote problem. But sadly the framedtext environment does not seem to be able to break across pages. Besides I would prefer the background solution. So what can I d

Re: [NTG-context] Textbackground issue with margin pictures

2017-04-03 Thread Hans Hagen
picture at the side of a textbackground, then the textbackground is suppressed for the entire height of the margin picture. Here is a minimal: \setuplayout [ leftmargin=0mm, rightmargin=45mm, height=fit, width=fit, ] \definetextbackground [test] \starttext \placefigure [margin

Re: [NTG-context] Textbackground issue with margin pictures

2017-04-03 Thread Tom
>> is, >> if there is a margin picture at the side of a textbackground, then the >> textbackground is suppressed for the entire height of the margin picture. >> >> >> Here is a minimal: >> >> \setuplayout [ >> leftmargin=0mm, >> rightm

Re: [NTG-context] Textbackground issue with margin pictures

2017-04-03 Thread Hans Hagen
On 4/3/2017 2:20 AM, Tom wrote: Hi, today I updated from ConTeXt 2015.11.19 to the recent Beta 2017.03.26 16:15. I noticed that my textbackgrounds now interfere with margin pictures, that is, if there is a margin picture at the side of a textbackground, then the textbackground is suppressed

[NTG-context] Textbackground issue with margin pictures

2017-04-02 Thread Tom
Hi, today I updated from ConTeXt 2015.11.19 to the recent Beta 2017.03.26 16:15. I noticed that my textbackgrounds now interfere with margin pictures, that is, if there is a margin picture at the side of a textbackground, then the textbackground is suppressed for the entire height of the margin

Re: [NTG-context] RTL bug in textbackground

2016-07-03 Thread Hans Hagen
On 7/3/2016 6:46 PM, Mohammad Hossein Bateni wrote: Hello, When using \definetextbackground in RTL setting, the boundaries are not determined correctly (both for location=paragraph and location=text) and colors gets messed up. Here a sort-of-minimal example adapted from details.pdf. Is there a

[NTG-context] RTL bug in textbackground

2016-07-03 Thread Mohammad Hossein Bateni
Hello, When using \definetextbackground in RTL setting, the boundaries are not determined correctly (both for location=paragraph and location=text) and colors gets messed up. Here a sort-of-minimal example adapted from details.pdf. Is there any particular keys I should use in RTL to fix the issu

Re: [NTG-context] Overlays as background in textbackground

2016-05-18 Thread Alan BRASLAU
Here is a trick (due to Hans, of course) to produce a watermark image. You can play with the idea in order to produce your own effect. \definecolor [percent] [s=1,a=1,t=.9] \externalfigure [cow] [background={foreground,color},backgroundcolor=percent] Alan On Wed, 18 May 2016 11:55:11 + "Meer

Re: [NTG-context] Overlays as background in textbackground

2016-05-18 Thread Meer, Hans van der
This code from three years back ia a reply to a question of placing an overlay background. Because the cow is very black I am curious if the \externalfigure can have a paramter to change the alpha of the cow, making it more transparent. By the way, it is not out of curiosity only. If possible it

Re: [NTG-context] Is there “toffset” option for \setupbackgrounds in context

2016-02-26 Thread Wolfgang Schuster
ed options but you can do a lot when you use Metapost to draw the background. \startuniqueMPgraphic{TextBackground} path p ; p := unitsquare xscaled OverlayWidth yscaled OverlayHeight ; draw p topenlarged 5mm ; setbounds currentpicture to OverlayBox ; \stopuniqueMPgraphic \define

Re: [NTG-context] textbackground

2015-02-26 Thread Hans Hagen
On 2/26/2015 10:22 AM, Alan BRASLAU wrote: Hello, For a multilingual document, alternating one language or another, not necessarily a bilingual, translated text, I thought about using textbackground to set-off paragraphs. This technique could also apply to a single language text having multiple

[NTG-context] textbackground

2015-02-26 Thread Alan BRASLAU
Hello, For a multilingual document, alternating one language or another, not necessarily a bilingual, translated text, I thought about using textbackground to set-off paragraphs. This technique could also apply to a single language text having multiple levels of information, perhaps statements

[NTG-context] textbackground within framedtext

2015-02-18 Thread Christoph Reller
Hi, How can I use textbackground within framedtext. In the following MWE, the background extends beyond the frame of framedtext. Do I have to use a different mechanism? \definetextbackground[bg][ background=color, backgroundcolor=yellow, frame=off] \starttext \startframedtext Before

Re: [NTG-context] TOC with Grey background for pages belonging to last section of every chapter

2015-02-02 Thread Wolfgang Schuster
5 um 12:51 schrieb Wolfgang Schuster >> mailto:schuster.wolfg...@gmail.com>>: >> >> You have to add „location=paragraph” to the textbackground setup. >> >> \definetextbackground >> [ChapterFrame] >> [frame=off, >> background=color, >> bac

[NTG-context] TOC with Grey background for pages belonging to last section of every chapter

2015-02-02 Thread Keith J. Schultz
Hi Wolgang, I noticed that \startnamedsection does not add it to the TOC how would one go about having these „namedsections“ added to the TOC. regards Keith. > Am 02.02.2015 um 12:51 schrieb Wolfgang Schuster > : > > You have to add „location=paragraph” to the textback

  1   2   3   >