[NTG-context] framed: rounded corner oddity

2023-12-05 Thread Henning Hraban Ramm
, background=color, backgroundcolor=yellow, framecorner=13, backgroundcorner=07, backgroundoffset=0.5em, ]{Das Runde muss ins Eckige} \blank \framed[ frame=on, corner=round, frameoffset=0.5em, framecolor=black, background=color, backgroundcolor=darkgreen, backgroundoffset=1em

[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] Colored Paragraph

2023-12-05 Thread Ursula Hermann
Hasselt his consent in 1486. \blank Other cities in the neighbourhood of Hasselt were afraid of the toll money to be paid when crossing this bridge so they prevented the construction for many years. \stopparagraph \stoptext The paragraph should have a color in the background. How can I get an colored

[NTG-context] Re: externalfigure crashed

2023-12-04 Thread Hans Hagen via ntg-context
\inframed [background=signature,framecolor=darkred] {\fieldbody[signature][width=3cm,option=hidden]} \stopTEXpage \stoptext after neing processed: mtxrun --script pdf --sign --certificate=sign-001.pem --password=test sign-001 (--library) and: mtxrun --script pdf

[NTG-context] Re: multipage metapost output from ConTeXt

2023-12-04 Thread Fabrice L
gt;> > >> \usecolors[crayola] > >> > >> \startMPinclusions > >> > >> picture p[]; > >> path TheFrame ; > >> TheFrame := fullsquare scaled 5in ; > >> > >> z0 = (0,0); > >> z1 = (60,40); > >> z2 = (40,90)

[NTG-context] Re: multipage metapost output from ConTeXt

2023-12-02 Thread Emanuel Han via ntg-context
=fea] > > >> \definefontsynonym [SerifBold] [notonaskharabic-Bold] [features=fea] > > >> \definefontsynonym [SerifBoldItalic] [notonaskharabic-Bold-Italic] > > >> [features=fea] > > >> \stoptypescript > > >> > > >> \startt

[NTG-context] Re: multipage metapost output from ConTeXt

2023-12-02 Thread Mikael Sundqvist
pt[notonaskharabic] > >> > >> \setupbodyfont [RomanFont] > >> > >> \usecolors[crayola] > >> > >> \startMPinclusions > >> > >> picture p[]; > >> path TheFrame ; > >> TheFrame := fullsquare scaled 5in ; > >

[NTG-context] Re: multipage metapost output from ConTeXt

2023-12-02 Thread Emanuel Han via ntg-context
picture p[]; > >> path TheFrame ; > >> TheFrame := fullsquare scaled 5in ; > >> > >> z0 = (0,0); > >> z1 = (60,40); > >> z2 = (40,90); > >> z3 = (10,70); > >> z4 = (30,50); > >> z5 = (90,70); > >> z6 =

[NTG-context] Re: multipage metapost output from ConTeXt

2023-12-02 Thread Mikael Sundqvist
..z1..z2..z3..z4 ; >> pair AStartPoint; AStartPoint = point 0 of A; >> pair AEndPoint; AEndPoint = point 4 of A; >> path B; B = z5..z6; >> pair BStartPoint; BStartPoint = point 0 of B; >> pair BEndPoint; BEndPoint = point 1 of B; >> path C; C = AStartPoint..AEndPoin

[NTG-context] Re: multipage metapost output from ConTeXt

2023-12-02 Thread fv leung
; draw A withcolor red; > ); > > p2:=image(draw A; label(lmt_outline [ > text = "\JapaneseFont 日本語" > ], AEndPoint);); > > p3:=image( > label(textext("\notonaskharabic \textdir TRT دانگ") scaled 1.2, > BStartPoint); > ); > > p4:=ima

[NTG-context] Re: multipage metapost output from ConTeXt

2023-12-02 Thread Emanuel Han via ntg-context
t 日本語" > ], AEndPoint);); > > p3:=image( > label(textext("\notonaskharabic \textdir TRT دانگ") scaled 1.2, BStartPoint); > ); > > p4:=image(draw A; label(lmt_outline [ > text = "\KoreanFont 한국어" > ], AStartPoint);); > > p5:=image( > label

[NTG-context] Re: multipage metapost output from ConTeXt

2023-11-29 Thread Emanuel Han via ntg-context
ot;) scaled 1.2, BStartPoint); ); p4:=image(draw A; label(lmt_outline [ text = "\KoreanFont 한국어" ], AStartPoint);); p5:=image( label(textext("bāng"), BEndPoint); draw C withcolor green; ); p6:=image( draw B withcolor blue; ); \stopMPinclusions \starttext \dorecurse{6}{ %

[NTG-context] Re: multipage metapost output from ConTeXt

2023-11-27 Thread Fabrice L
e[0] := (0,0); TheBrownianMotion := Coordinate[0] ; variance := 10 ; \stopMPinclusions \dorecurse{600}{ % Frame \setupMPpage[background=color, backgroundcolor=SpringGreen] \startMPpage[pagestate=start] currentime := #1 ; % Just for learning : draw TheFrame withpen pencircle scaled .1in withco

[NTG-context] Markdown to HTML cross-references

2023-11-21 Thread Thangalin
Hi list, I'm looking to implement a consistent syntax for cross-references in KeenWrite <https://keenwrite.com/> and am wondering what you think would make the most sense for translating into ConTeXt commands. First, some background (the first two give an overview, the others are cros

[NTG-context] textbackground spacing offset

2023-11-16 Thread Marco Patzer
does nothing %% depthcorrection=off, %% does nothing %% topoffset=3mm,%% works, but only for positive values background=, frame=on] \starttext \startframedtext \framed{Foo} \stopframedtext \starttextbackground \framed{Foo} \stoptextbackground \stoptext How

[NTG-context] Re: How to encircle text?

2023-11-05 Thread Pablo Rodriguez via ntg-context
xyscaled (OverlayWidth-OverlayLineWidth,OverlayHeight-OverlayLineWidth) withpen pencircle scaled OverlayLineWidth withcolor OverlayColor ; \stopusableMPgraphic \defineoverlay[MetaCirc][\useMPgraphic{MetaCirc}] a\dontleavehmode\framed [background=MetaCirc, bac

[NTG-context] Re: How to encircle text?

2023-11-05 Thread Hans Hagen via ntg-context
ramed [background=BigCirc, % frame=off, width=3cm, height=3cm] {test} but bigcirc isn't meant for that \startusableMPgraphic{MetaCirc} draw fullcircle xyscaled (OverlayWidth-OverlayLineWidth,OverlayHeight-OverlayLineWidth) withpen pencircle scaled Overla

[NTG-context] Re: Modernizing Parametric type design A case study of Nupuram Malayalam typeface

2023-11-04 Thread BPJ
I have created fonts for my "fictional scripts"[1] using MF[2] and "converted" them to TTF by importing the bitmap font into the background layer in Fontforge and tracing it with potrace. It was a long time ago, I used little metaness beyond setting weight through pen/path wi

[NTG-context] Re: Double sided pages leave a thin white line on the right side

2023-10-28 Thread Mia Bikey
on a specific zoom level. There are now some bottom white lines too on some zoom levels. Okay the issue seems to be happening on all pdf files regardless of whether it was made from context or not. The black background just allows me to notice it. Thank you for checking. On Sat, Oct 28, 2023 at 9

[NTG-context] Re: Double sided pages leave a thin white line on the right side

2023-10-28 Thread Mikael Sundqvist
noticed a thin white line on the right side. > > Here is a Minimal Working Example: > > ConTeXt ver: 2023.09.26 18:19 LMTX > > \setupbackgrounds[page][background=color,backgroundcolor=black] > \setuppagenumbering[alternative=doubles

[NTG-context] Double sided pages leave a thin white line on the right side

2023-10-28 Thread Mia Bikey
Hi, I was using \setuppagenumbering[alternative=doublesided] to get double sided pages. After doing that I noticed a thin white line on the right side. Here is a Minimal Working Example: ConTeXt ver: 2023.09.26 18:19 LMTX \setupbackgrounds[page][background=color,backgroundcolor=black

[NTG-context] Re: Framed Text with Chapter Numbers as Counter

2023-09-17 Thread Jeroen
; draw b; setbounds currentpicture to OverlayBox; \stopuseMPgraphic \defineoverlay [CountFrame] [\useMPgraphic{CountFrame}] \defineframedtext [CountFramedText] [frame=off, background=CountFrame, offset=\bodyfontsize, width=\textwidth, % style={\switchtobodyfont[11pt,tt]}] bod

[NTG-context] Framed Text with Chapter Numbers as Counter

2023-09-16 Thread Jeroen
CountFrame}] \defineframedtext [CountFramedText] [frame=off, background=CountFrame, offset=\bodyfontsize, width=\textwidth, % style={\switchtobodyfont[11pt,tt]}] bodyfont=11pt, style={\tt}, ] \def\FrameTitle#1% {\setMPtext{CountFrame} {\hbox spread 1em{\hss\strut#1\hss}}}\setMPtext{

[NTG-context] Verbatim Textbox with Reference NUmbering

2023-09-09 Thread Jeroen
boundingbox p ; setbounds currentpicture to unitsquare xyscaled(w,h) ; \stopuseMPgraphic \defineoverlay[FunnyFrame][\useMPgraphic{FunnyFrame}] \defineframedtext[FunnyText][frame=off,background=FunnyFrame] \def\FrameTitle#1% {\setMPtext{FunnyFrame}{\hbox spread 1em{\hss\strut#1\hss}}} \setMPtext{FunnyFrame

[NTG-context] Re: how to define an environment with key=value arguments

2023-09-08 Thread Henning Hraban Ramm
, alternative=setups, setups=frontispiz, color=white, background=color, backgroundcolor=Eifel, ] \startsetups[frontispiz] \starttransparent[tlumi]% \externalfigure[\structureuservariable{image}][ width=\measure{MaxWidth}, ]% \stoptransparent% \stopsetups \setuphead[chapter][ page

[NTG-context] Re: how to define an environment with key=value arguments

2023-09-08 Thread Henning Hraban Ramm
right (just “pageinjections“?) But my “image” consists of a background color (with bleed), a transparent overlay image (with bleed), a tilted image with a shadow on top and a caption (so far) – and pageinjection looks fixed to one image. How can I hook my own placement code in there? We can discuss

[NTG-context] Re: how to define an environment with key=value arguments

2023-09-08 Thread Wolfgang Schuster
, that might be enough. (Documented only in https://wiki.contextgarden.net/Command/setuphead so far. Even the source browser can’t find anything.) https://source.contextgarden.net/tex/context/base/mkxl/page-inj.mklx But my “image” consists of a background color (with bleed), a transparent overlay

[NTG-context] Re: how to define an environment with key=value arguments

2023-09-08 Thread Henning Hraban Ramm
://wiki.contextgarden.net/Command/setuphead so far. Even the source browser can’t find anything.) But my “image” consists of a background color (with bleed), a transparent overlay image (with bleed), a tilted image with a shadow on top and a caption (so far) – and pageinjection looks fixed to one

[NTG-context] Re: Question about building an array of values with Lua

2023-08-24 Thread Fabrice Couvreur
xt.startxtable{ align = "middle,lohi", bodyfont = "9pt", framecolor = > "black" } > context.startxrow{ background = "color", backgroundcolor = "lightgray" > } > context.startxcell{ nx = 4 } > context("Uni

[NTG-context] Re: Question about building an array of values with Lua

2023-08-23 Thread Wolfgang Schuster
completed version of what Wolfgang sent: I guess I completely missed the units digit part :) %% begin filling-with-lua.tex \starttext \startluacode context.startxtable{ align = "middle,lohi", bodyfont = "9pt", framecolor = "black" }     context.startxrow{ backgro

[NTG-context] Re: Question about building an array of values with Lua

2023-08-23 Thread Otared Kavian
filling-with-lua.tex \starttext \startluacode context.startxtable{ align = "middle,lohi", bodyfont = "9pt", framecolor = "black" } context.startxrow{ background = "color", backgroundcolor = "lightgray" } context.startx

[NTG-context] Re: Question about building an array of values with Lua

2023-08-23 Thread Wolfgang Schuster
ddle,lohi", bodyfont = "9pt", framecolor = "black" }     context.startxrow{ background = "color", backgroundcolor = "lightgray" }     context.startxcell{ nx = 4 }     context("Units digit of")     context.stopxcell()     context.

[NTG-context] Question about building an array of values with Lua

2023-08-23 Thread Fabrice Couvreur
Hi, I'm trying to fill an array using lua. So far it works but then I don't know if it's possible. Thanks Fabrice \startluacode context.startxtable({"align={middle,lohi},bodyfont=9pt,framecolor=black"}) context.startxrow({"background=co

[NTG-context] Re: Equivalent of the \cancel command with conTeXt

2023-08-22 Thread Fabrice Couvreur
cture cross; > cross := image(draw (0,0)--(1,1); draw (0,1)--(1,0);); > draw cross xscaled \overlaywidth yscaled \overlayheight withpen pencircle > scaled .8pt ; > \stopuniqueMPgraphic > > \defineoverlay[canceloverlay][\uniqueMPgraphic{cross out}] > > \define[1]\cancel{% >

[NTG-context] Re: Equivalent of the \cancel command with conTeXt

2023-08-22 Thread Alexandre Christe
; \stopuniqueMPgraphic \defineoverlay[canceloverlay][\uniqueMPgraphic{cross out}] \define[1]\cancel{%  \ifmmode  \mframed[background=canceloverlay, frame=off, offset=overlay]{{#1}}%  \else%  \framed[background=canceloverlay, frame=off, offset=overlay]{{#1}}%  \fi% } Maybe something else is available nowadays. A

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

2023-08-13 Thread Thangalin
Hi again, you could remove the \localcontrolled around the advance > I thought I tried that, but the counter incremented to 6, instead of 4. Using higher-level primitives seems more like the ConTeXt way. > why twice ? you only have to typeset the text once, right? > > > {text:\number\numexpr1+\

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

2023-08-12 Thread Hans Hagen via ntg-context
On 8/12/2023 7:19 PM, Thangalin wrote: Thanks Hans. The \newinteger approach would always increment the value, regardless of conditionals within the MetaPost code (i.e., it was like legend := "\ConcurrentTextGet" would always invoke the macro just be referencing the MPgraphic and nothing would p

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

2023-08-12 Thread Thangalin
Thanks Hans. The \newinteger approach would always increment the value, regardless of conditionals within the MetaPost code (i.e., it was like legend := "\ConcurrentTextGet" would always invoke the macro just be referencing the MPgraphic and nothing would prevent its execution). This meant that th

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

2023-08-11 Thread Hans Hagen
On 8/11/2023 9:57 PM, Thangalin wrote: Hi list, I'm attempting to make a stylized border around paragraphs that can span pages. The border runs along the side and the top. (Ideally the top border wouldn't repeat, but that's a minor issue.) The issue I'm having is that the title for the text does

[NTG-context] Pass string into text background graphic

2023-08-11 Thread Thangalin
Hi list, I'm attempting to make a stylized border around paragraphs that can span pages. The border runs along the side and the top. (Ideally the top border wouldn't repeat, but that's a minor issue.) The issue I'm having is that the title for the text doesn't always appear. Instead, there's a sma

[NTG-context] Re: upload

2023-08-10 Thread Thangalin
ly after the meeting) but here is one: > > \starttext > > \defineoverlay >[test] >[\color > [blue] > {TEST >\inframed > [foregroundcolor=red] > {xxx} >TEST}] > >

[NTG-context] upload

2023-08-09 Thread Hans Hagen
} TEST}] \framed [background=test, foregroundstyle=\switchtobodyfont[small]] {test} \stoptext From now on many commands accept (properly) nested [] inside commands that use [] as fences (like the setup commands) where it makes sense. It is up to the user to

[NTG-context] Re: \defineactivecharacter in LMTX + composing characters

2023-08-02 Thread Hamid,Idris
Ṣ {\d{S}} \defineactivecharacter ṣ {\d{s}} \stoptext This should not produce any typeset output but in lmtx it does. Background: The following characters are essential for Arabic transliteration (assuming your email client has the chars): Ṯṯ Ḥḥ Ḫḫ Ḏḏ Šš Ṣṣ Ḍḍ Ṭṭ Ẓẓ Ġġ Āā Īī Ūū ʿ ʾ I'd

[NTG-context] Re: \defineactivecharacter in LMTX + composing characters

2023-08-01 Thread Hans Hagen
any typeset output but in lmtx it does. Background: The following characters are essential for Arabic transliteration (assuming your email client has the chars): Ṯṯ Ḥḥ Ḫḫ Ḏḏ Šš Ṣṣ Ḍḍ Ṭṭ Ẓẓ Ġġ Āā Īī Ūū ʿ ʾ I'd use a different font but as you want to go cheap ... attached gets you going and

[NTG-context] \defineactivecharacter in LMTX + composing characters

2023-08-01 Thread Hamid,Idris
. Background: The following characters are essential for Arabic transliteration (assuming your email client has the chars): Ṯṯ Ḥḥ Ḫḫ Ḏḏ Šš Ṣṣ Ḍḍ Ṭṭ Ẓẓ Ġġ Āā Īī Ūū ʿ ʾ But most really good fonts don't have them, so we have to compose them. Now there are other methods, e.g, 1) \definechar

[NTG-context] Re: combining \definetyping and \definebuffer

2023-07-30 Thread Henning Hraban Ramm
I use \setuptyping for the general style with a background box. But that conflicts with the setups for special cases like code and result side by side. I guess I’ll also include this in the CGJ setup. ... attached an extension that supports inheritance (via category), still honors 'b

[NTG-context] Re: Link from a PDF to a reference of an embedded PDF

2023-07-22 Thread Pablo Rodriguez
.pdf#nameddest=destination). But it understands file:///. MuPDF-GL seems also not to handle named destinations, but it understands file:/// too. PDF.js (the default PDF viewer that comes with Firefox) handles named destinations, but doesn‘t seem to understand file:/// as a link. > Background of

[NTG-context] Link from a PDF to a reference of an embedded PDF

2023-07-20 Thread Gerion Entrup
n[item:bla], \in[item:blub]. \stoptext ``` Can I somehow access the references of inner.tex from outer.tex? For me, it is not that relevant, that the correct number is set, but the interaction within the outer PDF should work, so clicking on the reference should scroll to the correct content. Backgr

[NTG-context] Re: enhancing MetaPost presentation progress graphics

2023-07-19 Thread Taco Hoekwater
gt; > fill ship xysized (10,5) shifted pos rotatedaround (pos, 15) withcolor red; > \stopuseMPgraphic > > \defineoverlay[Waves][\useMPgraphic{Waves}] > > \setupbackgrounds[state=repeat] > \setupbackgrounds[page][background={Waves}] > > \starttext > > \dorecurse{10}{\recur

[NTG-context] enhancing MetaPost presentation progress graphics

2023-07-19 Thread Henning Hraban Ramm
= (0,10)---(70,10)...(60,0)---(10,0)...cycle; fill ship xysized (10,5) shifted pos rotatedaround (pos, 15) withcolor red; \stopuseMPgraphic \defineoverlay[Waves][\useMPgraphic{Waves}] \setupbackgrounds[state=repeat] \setupbackgrounds[page][background={Waves}] \starttext \dorecurse{10}{\recurs

[NTG-context] Re: text width shadow background

2023-07-09 Thread Keith McKay
Well this is fun.  Getting the right patterns could make some interesting with fonts. Thanks for the tip Hans! Best Wishes Keith McKay % \startMPpage vardef tst (expr x, y, i, n) = definecolor [ name = "MyColor1", r = uniformdeviate(1), g = uniformdeviate(1), b = uniformdeviate(

[NTG-context] Re: text width shadow background

2023-07-09 Thread Hans Hagen via ntg-context
On 7/9/2023 5:56 PM, Henning Hraban Ramm wrote: Am 09.07.23 um 15:49 schrieb Keith McKay: Hraban (and others), You got me thinking so I added this code to end of your code as a bit of fun. It's code from the luametafun manual to which I added two and a half lines. That’s funny. I replaced t

[NTG-context] Re: text width shadow background

2023-07-09 Thread Henning Hraban Ramm
Am 09.07.23 um 15:49 schrieb Keith McKay: Hraban (and others), You got me thinking so I added this code to end of your code as a bit of fun. It's code from the luametafun manual to which I added two and a half lines. That’s funny. I replaced the text by \TeX and published it here: https://f

[NTG-context] Re: Fwd: Re: text width shadow background

2023-07-09 Thread Keith McKay
Hraban (and others), You got me thinking so I added this code to end of your code as a bit of fun. It's code from the luametafun manual to which I added two and a half lines. Best Wishes Keith %%% \startMPcode vardef tst (expr x, y, i, n) = definecolor [ name = "MyColor1", r =

[NTG-context] Fwd: Fwd: Re: Fwd: Re: text width shadow background

2023-07-09 Thread Keith McKay
Reduced size as requested. Moderator please delete original message which was greater than 100k Thanks Keith McKay Forwarded Message Subject:Re: [NTG-context] Re: Fwd: Re: text width shadow background Date: Sat, 8 Jul 2023 14:14:38 +0100 From: Keith McKay To

[NTG-context] Re: Fwd: Re: text width shadow background

2023-07-08 Thread Henning Hraban Ramm
Am 08.07.23 um 15:14 schrieb Keith McKay: I played about with the number of shadow layers and added a wee bit randomness which gave a nice effect. See the code below and the attached png. Good idea, makes sense for big text – my captions are only 8pt, there 10 layers are already a lot, and th

[NTG-context] Re: Fwd: Re: text width shadow background

2023-07-08 Thread Henning Hraban Ramm
Am 08.07.23 um 11:39 schrieb Hans Hagen via ntg-context: On 7/8/2023 8:55 AM, Henning Hraban Ramm wrote: Please, can you explain why the result of lmt_outline is shifted to the right, if I use it in a macro? no time now but you can do this instead of the lmt_text:     draw lmt_outline [    

[NTG-context] Fwd: Re: text width shadow background

2023-07-08 Thread Hans Hagen via ntg-context
Forwarded Message Subject: Re: [NTG-context] Re: text width shadow background Date: Sat, 8 Jul 2023 11:39:32 +0200 From: Hans Hagen To: Henning Hraban Ramm On 7/8/2023 8:55 AM, Henning Hraban Ramm wrote: Please, can you explain why the result of lmt_outline is shifted to

[NTG-context] Re: text width shadow background

2023-07-07 Thread Henning Hraban Ramm
wunderschöne Bildunterschrift} \MyCaption{Ein ganz anderer Text} \stoptext """ BTW I recognized I need this not only for captions within images but also for the glow effect in the CCCamp23 style: https://events.ccc.de/camp/2023/infos/styleguide.html InDesign etc. crea

[NTG-context] lpdf.registerfontmethod

2023-07-06 Thread Max Chernoff
Hi Hans, In lpdf-emb.lmt, there's a commented-out definition of lpdf.registerfontmethod that I'd like to use. I've uncommented this in my installation and it's worked pretty well for me, so can you please uncomment/enable this by default in the distribution? If you want furt

[NTG-context] Re: text width shadow background

2023-07-06 Thread Henning Hraban Ramm
Am 06.07.23 um 21:27 schrieb Henning Hraban Ramm: * I don’t understand why the white fill is not opaque. Posted too early. I do understand now (overlapping outlines). Tried to fix it by overwriting the text again in white, but now I don’t understand how to calculate the shifting: """ \setupb

[NTG-context] text width shadow background

2023-07-06 Thread Henning Hraban Ramm
Hi, maybe you remember that I wanted this since 2017... I finally managed to get a fuzzy background behind text: """ \setupbodyfont[ss,24pt] \definecolor[tshade][t=.05,a=1,k=1] \starttexdefinition MyCaption #1 \startMPcode{doublefun} steps := 10 ; rulesize := BodyFontSize/steps/

[NTG-context] Re: MP setup for a progress bar

2023-07-05 Thread Aditya Mahajan
On Tue, 4 Jul 2023, Henning Hraban Ramm wrote: > Thanks to Taco, Robbert and Jules for their work! > > > I used the downtime to setup a presentation style with a progress bar in the > footer. But I get the same (first page) graphics on all pages, and the footer > background

[NTG-context] Re: MP setup for a progress bar

2023-07-05 Thread Henning Hraban Ramm
Am 04.07.23 um 22:53 schrieb Wolfgang Schuster: Henning Hraban Ramm schrieb am 04.07.2023 um 22:24: I used the downtime to setup a presentation style with a progress bar in the footer. But I get the same (first page) graphics on all pages, and the footer background appears under the text

[NTG-context] Re: MP setup for a progress bar

2023-07-04 Thread Wolfgang Schuster
Henning Hraban Ramm schrieb am 04.07.2023 um 22:24: Thanks to Taco, Robbert and Jules for their work! I used the downtime to setup a presentation style with a progress bar in the footer. But I get the same (first page) graphics on all pages, and the footer background appears under the text

[NTG-context] MP setup for a progress bar

2023-07-04 Thread Henning Hraban Ramm
Thanks to Taco, Robbert and Jules for their work! I used the downtime to setup a presentation style with a progress bar in the footer. But I get the same (first page) graphics on all pages, and the footer background appears under the text area as well as under the margins. * I thought

[NTG-context] viewer layers (optional content groups, OCG)

2023-06-19 Thread Henning Hraban Ramm via ntg-context
r[Gebuesch] Hier versteckt sich ein Wolf... \stopviewerlayer Bäume, Bäume, Bäume... \viewerlayer[Gebuesch]{... und ein Rotkehlchen} \startviewerlayer[Versteck]Rumpelwicht\stopviewerlayer \defineoverlay[MitVersteck] [{\overlayrollbutton[VideLayer{Versteck}][HideLayer{Versteck}]}] \framed[

[NTG-context] Custom TOC with makeup and setups

2023-05-10 Thread Jethro Djan via ntg-context
empty, footerstate=empty, setups={toclist}, before=\setups{toc:setups}, ] \startsetups toc:setups \setupbackgrounds[page][background=color, backgroundcolor=blue] \stopsetups \definemakeup [standard] [ doublesided=no, page=right, pagestate=start, headerstate=

Re: [NTG-context] how access to \namedstructurevariable [next / previous]

2023-04-29 Thread Garulfo via ntg-context
Index % todo: lucida  {%\startnotmode[*\v!frontpart]     \page[\v!right]     \setupbackgrounds[\v!paper][\c!background=\v!color]     \startmakeup[\v!standard]   \raggedleft   \doifsomething{\currentheadnumber} {\hfill\expanded{\processMPheadnumber{\currentheadnumber}}}   \vfill  

[NTG-context] how access to \namedstructurevariable [next / previous]

2023-04-29 Thread Garulfo via ntg-context
, \c!numberstyle=\bfe] and \def\PlaatsHoofdstukIndex % todo: lucida {%\startnotmode[*\v!frontpart] \page[\v!right] \setupbackgrounds[\v!paper][\c!background=\v!color] \startmakeup[\v!standard] \raggedleft \doifsomething{\currentheadnumber} {\hfill\expanded

Re: [NTG-context] Feynman Diagrams

2023-04-12 Thread Aditya Mahajan via ntg-context
ndfor fi exitif known from; endfor (from, if known to: to else: infinity fi) enddef; vardef digits_to_brackets suffix suf = save s, idx; string s; pair idx; s = str suf; idx = (0,0); forever: idx := digits_index (s, xpart idx); exitif unknown xpart idx; s := substri

Re: [NTG-context] meta-imp-fen in mkxl?

2023-03-31 Thread Hans Hagen via ntg-context
On 3/30/2023 6:22 PM, Thomas A. Schmitz via ntg-context wrote: Hi all, I wanted to use a rightbrace as background for a table, as defined in meta-imp-fen.mkiv. Unfortunately, I can't get it to work, for 2 reasons: 1. meta-imp-fen doesn't appear to be ported to mkxl. 2. When I try

[NTG-context] meta-imp-fen in mkxl?

2023-03-30 Thread Thomas A. Schmitz via ntg-context
Hi all, I wanted to use a rightbrace as background for a table, as defined in meta-imp-fen.mkiv. Unfortunately, I can't get it to work, for 2 reasons: 1. meta-imp-fen doesn't appear to be ported to mkxl. 2. When I try to compile with the --luatex switch, I get this error message:

Re: [NTG-context] \setupTABLE: framecolor

2023-03-25 Thread jbf via ntg-context
ightframe=on,leftframe=on,framecolor=lightgray] then I lose the bottomframe in black. I have tried all kinds of combinations but unsuccessfully. Table cells are based on \framed, and there doesn’t seem to be an option to have different colors of parts of the frame (e.g. bottomframecolor…)

Re: [NTG-context] \setupTABLE: framecolor

2023-03-25 Thread Henning Hraban Ramm via ntg-context
=lightgray] then I lose the bottomframe in black. I have tried all kinds of combinations but unsuccessfully. Table cells are based on \framed, and there doesn’t seem to be an option to have different colors of parts of the frame (e.g. bottomframecolor…) You can use a MetaPost graphic as bac

Re: [NTG-context] rotated headers in natural tables

2023-03-17 Thread Wolfgang Schuster via ntg-context
[1]{\RtH}{\rotate{#1}} \starttext \setupTABLE[offset=3pt] \setupTABLE[header][background=color,backgroundcolor=yellow,align=bottom] \bTABLE \bTABLEhead \bTR \bTH\RtH{animal}\eTH \bTH\RtH{size}\eTH \bTH\RtH{weight}\eTH \bTH\RtH{average speed}\eTH \eTR You can change the vertical alignment in a

Re: [NTG-context] Absolute positioning of \startcombination... \stopcombination

2023-03-17 Thread Keith McKay via ntg-context
header=0cm, footer=0.75cm, ] \definelayer[test3] %[x=.5\paperwidth, y=.5\paperheight] [x=.5\textwidth, y=.5\textheight] %\setupbackgrounds[page] \setupbackgrounds[text] [background=test3] \starttext \setlayer[test3][location={middle}] \framed[offs

Re: [NTG-context] Absolute positioning of \startcombination... \stopcombination

2023-03-16 Thread Pablo Rodriguez via ntg-context
grounds[page] \setupbackgrounds[text] [background=test3] \starttext \setlayer[test3][location={middle}] \framed[offset=overlay]{{\startcombination[nx=3,ny=1,distance=15mm] {\externalfigure[cow][width=15mm]}{} \rotate[rotation=90]{\externalfigure[cow

Re: [NTG-context] rotated headers in natural tables

2023-03-15 Thread Bruce Horrocks via ntg-context
ldn’t find an option to do that. > Tried \dontleavehmode or \hfill in my \RtH macro to no avail. > Is it possible? > > > \define[1]{\RtH}{\rotate{#1}} > > \starttext > > \setupTABLE[offset=3pt] > \setupTABLE[header][background=color,backgroundcolor=yellow,align=bot

Re: [NTG-context] rotated headers in natural tables

2023-03-15 Thread fv leung via ntg-context
\dontleavehmode or \hfill in my \RtH macro to no avail. > Is it possible? > > > \define[1]{\RtH}{\rotate{#1}} > > \starttext > > \setupTABLE[offset=3pt] > \setupTABLE[header][background=color,backgroundcolor=yellow,align=bottom] > \bTABLE > \bTABLEhead > \bTR \bTH

[NTG-context] rotated headers in natural tables

2023-03-15 Thread Henning Hraban Ramm via ntg-context
] \setupTABLE[header][background=color,backgroundcolor=yellow,align=bottom] \bTABLE \bTABLEhead \bTR \bTH\RtH{animal}\eTH \bTH\RtH{size}\eTH \bTH\RtH{weight}\eTH \bTH\RtH{average speed}\eTH \eTR \eTABLEhead \bTABLEbody \bTR \bTD sparrow \eTD \bTD small \eTD \bTD light \eTD \bTD high \eTD \eTR \bTR \bTD dog

Re: [NTG-context] regular online meet-up

2023-03-07 Thread Henning Hraban Ramm via ntg-context
Reminder: This is in a few hours. For my part I’d like to know what was in the latest updates and maybe discuss the page breaking in floats (possible with tables, how about text background boxes – didn’t try yet, just curious). Hraban Am 04.03.23 um 18:42 schrieb Henning Hraban Ramm via ntg

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

2023-03-06 Thread Aditya Mahajan via ntg-context
framed/mdframed.pdf) > > > > I have searched in the wiki and found \defineenumeration: > > This is near of that what I need. However I explicitly does not need an > > enumeration (so no number or counter). Also I am not sure if I can set a > > background and so on.

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

2023-03-06 Thread Henning Hraban Ramm via ntg-context
ot need an enumeration (so no number or counter). Also I am not sure if I can set a background and so on. The other possibility is \defineframedtext. For example this goes much in the direction that I want: \definecolor[gbackground][s=0.98] \defineframedtext[gtk][frame=on,

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

2023-03-06 Thread Gerion Entrup via ntg-context
e if I can set a background and so on. The other possibility is \defineframedtext. For example this goes much in the direction that I want: \definecolor[gbackground][s=0.98] \defineframedtext[gtk][frame=on, offset=5pt, backgr

[NTG-context] Problem with \setuplayout parameters being ignored

2023-03-05 Thread Keith McKay via ntg-context
de [ path = Field[Text][Text], direction = "down", alternative = "linear", colors = { "MyColor1", "MyColor2" }, ] ; StopPage; \stopMPcode} ] \showframe \setupbackgrounds[page][background=apage] \setupbackgrounds[footer][text] [background=color, backgr

[NTG-context] Unexpected results with \xmlpos

2023-02-16 Thread Denis Maier via ntg-context
Hi, I'm getting unexpected results for \xmlpos With the example below, I was expecting to get the following positions: 1 2 3 4 However the result is: 2 4 6 8, i.e. each time it's exactly the double. What am I missing? Background: I need to define column alignment based on the va

Re: [NTG-context] Chapter title in MetaFun manual.

2023-02-10 Thread Jeong Dal via ntg-context
ithcolor .625yellow) ; > draw fullcircle xscaled 1.5cm yscaled 1cm ; > \stopuseMPgraphic > > %\startnotmode[proof] > % \defineoverlay[circled][\useMPgraphic{circled}] > %\stopnotmode > > \define[1]\Circled% > {\framed > [background=circled,frame=off,offset=overlay] >

[NTG-context] Chapter title in MetaFun manual.

2023-02-10 Thread Jeong Dal via ntg-context
led% {\framed [background=circled,frame=off,offset=overlay] {\color[darkred]{#1}}} \setuppagenumbering[location=] \setupheadertexts[margin][][\hbox to \hsize{\hss\Circled\pagenumber\hss}] \startuniqueMPgraphic{titled} path p ; p := unitsquare xscaled \overlaywidth yscaled \overlayhei

[NTG-context] OT: Adobe releases the original PostScript interpreter software as open source

2022-12-19 Thread Bruce Horrocks via ntg-context
the-Public-as-a-Part-of-Its-Art-of-Code-Series.html> and a blog post with the background to PostScript here <https://computerhistory.org/blog/postscript-a-digital-printing-press/> Regards, — Bruce Horrocks H

Re: [NTG-context] Is this possible to do the same

2022-12-12 Thread Ursula Hermann via ntg-context
; \stopuniqueMPgraphic \defineoverlay[canceloverlay][\uniqueMPgraphic{cross out}] \define[1]\cancel{% \ifmmode \mframed[background=canceloverlay, frame=off, offset=overlay]{{#1}}% \else% \framed[background=canceloverlay, frame=off, offset=overlay]{{#1}}% \fi% } \starttext \dots E.g

Re: [NTG-context] Is this possible to do the same

2022-12-12 Thread Gavin via ntg-context
scaled .8pt ; \stopuniqueMPgraphic \defineoverlay[canceloverlay][\uniqueMPgraphic{cross out}] \define[1]\cancel{% \ifmmode \mframed[background=canceloverlay, frame=off, offset=overlay]{{#1}}% \else% \framed[background=canceloverlay, frame=off, offset=overlay]{{#1}}% \fi% } \starttext

[NTG-context] \externalfigure problem with displaying external images via https://live.contextgarden.net

2022-12-04 Thread Jaroslav Hajtmar via ntg-context
Hello. A few years ago I created a PHP application for printing filled forms with PDF background. PHP application is generating ConTeXt source code, that is subsequently translated using the online application https://live.contextgarden.net. I have now discovered that the application is not

Re: [NTG-context] Page break with placement of a figure at the bottom of the page

2022-11-12 Thread Fabrice Couvreur via ntg-context
tspace} \unexpanded\def\euros#1{#1\,\symbol[europe][EUR]} \protected\def\point#1#2#3{\math{#1\left(#2\,;#3\right)}} \protected\def\coord#1#2{\math{\left(#1\,;#2\right)}} \define[2]\prod{\m{\vector{#1}\cdot\vector{#2}}} \protected\def\e#1{\math{{\rm e}^{#1}}\autoinsertnextspace} \stop

Re: [NTG-context] overprinting black

2022-11-09 Thread Duncan Hothersall via ntg-context
n Ramm via ntg-context < ntg-context@ntg.nl> wrote: > I’m not sure if this ever worked, but at least in latest LMTX it doesn’t: > > """ > \setupcolors[state=start,cmyk=yes,rgb=no,intent=overprint] > > \starttext > > \framed[ >background=color,

[NTG-context] overprinting black

2022-11-09 Thread Henning Hraban Ramm via ntg-context
I’m not sure if this ever worked, but at least in latest LMTX it doesn’t: """ \setupcolors[state=start,cmyk=yes,rgb=no,intent=overprint] \starttext \framed[ background=color, backgroundcolor=yellow, ]{\ss\bfd Black should always overprint. } \stoptext ""&q

<    1   2   3   4   5   6   7   8   9   10   >