[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

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

[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

[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

[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

[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

[NTG-context] Re: upload

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

[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

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

[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

[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) \definecharacter

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

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

2023-07-22 Thread Pablo Rodriguez
n (or doc.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

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

[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

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

[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

[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

[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

[NTG-context] Re: text width shadow background

2023-07-08 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 further background

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

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

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

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
igits_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 := substring (0,xpart idx) of s & "[]" & substring (ypart idx,infinity) of s; endfor s

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

[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: tex error

Re: [NTG-context] \setupTABLE: framecolor

2023-03-25 Thread jbf via ntg-context
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 background, like

Re: [NTG-context] \setupTABLE: framecolor

2023-03-25 Thread Henning Hraban Ramm via ntg-context
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 background, like in the “diagonal” example

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

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

2023-03-17 Thread Keith McKay via ntg-context
, 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[offset=overlay

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
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=bottom] >

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
b/mdframed/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

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

2023-03-06 Thread Henning Hraban Ramm via ntg-context
s not 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
eld[Text][Text], direction = "down", alternative = "linear", colors = { "MyColor1", "MyColor2" }, ] ; StopPage; \stopMPcode} ] \showframe \setupbackgrounds[page][background=apage] \setupbackgrounds[footer][text] [background=color, backgroundcolor=blue]

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

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

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
ed\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} \stopenvironment\startenv

Re: [NTG-context] overprinting black

2022-11-09 Thread Duncan Hothersall via ntg-context
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, >ba

[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

Re: [NTG-context] Defineenumeration head offset

2022-11-07 Thread Wolfgang Schuster via ntg-context
Alexandre Christe via ntg-context schrieb am 07.11.2022 um 21:04: Dear list, Is there a trick to not apply the leftoffset to the header of a defineenumeration? MWE: [...] You can use \offset to shift the enumeration title. \defineframed   [ExampleHeadFrame]   [location=low,    background

[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] Backgrounds has changed in latest lmtx

2022-10-24 Thread Otared Kavian via ntg-context
21:52, Thomas A. Schmitz via ntg-context > wrote: > > On 10/23/22 21:34, Otared Kavian via ntg-context wrote: >> Hi Thomas, >> Both your examples typeset fine with my installation of LMTX (version >> 2022.10.22 11:23) on MacOS 11.7. >> (Indeed you previous fil

Re: [NTG-context] Backgrounds has changed in latest lmtx

2022-10-23 Thread Leah Neukirchen via ntg-context
"Thomas A. Schmitz via ntg-context" writes: > On 10/23/22 21:34, Otared Kavian via ntg-context wrote: >> Hi Thomas, >> Both your examples typeset fine with my installation of LMTX >> (version 2022.10.22 11:23) on MacOS 11.7. >> (Indeed you previous file tes

Re: [NTG-context] Backgrounds has changed in latest lmtx

2022-10-23 Thread Thomas A. Schmitz via ntg-context
On 10/23/22 21:34, Otared Kavian via ntg-context wrote: Hi Thomas, Both your examples typeset fine with my installation of LMTX (version 2022.10.22 11:23) on MacOS 11.7. (Indeed you previous file test file reporting the background issue is typeset fine also). Best regards : Otared Thanks

Re: [NTG-context] Backgrounds has changed in latest lmtx

2022-10-23 Thread Otared Kavian via ntg-context
Hi Thomas, Both your examples typeset fine with my installation of LMTX (version 2022.10.22 11:23) on MacOS 11.7. (Indeed you previous file test file reporting the background issue is typeset fine also). Best regards : Otared > On 23 Oct 2022, at 16:30, Thomas A. Schmitz via ntg-cont

Re: [NTG-context] Backgrounds has changed in latest lmtx

2022-10-23 Thread Thomas A. Schmitz via ntg-context
eat, background={Ornament}] \starttext \dorecurse {10} {Test \page} \stoptext All best Thomas ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist :

Re: [NTG-context] Backgrounds has changed in latest lmtx

2022-10-21 Thread Otared Kavian via ntg-context
Hi Thomas, Your example does indeed show the issue I had reported on with Simpleslides: the backgrounds of the slides are not as expected. So it seems that beginning with version 2022-10-15 something has changed with Metapost or the background mechanism. Best regards: Otared > On 21 Oct 2

[NTG-context] Backgrounds has changed in latest lmtx

2022-10-21 Thread Thomas A. Schmitz via ntg-context
(0, -14.42pt) ; draw p[i] withcolor (0.5,0.5,0.5) ; endfor ; pickup pencircle scaled 2pt ; draw p[0] withcolor red ; StopPage ; \stopreusableMPgraphic \defineoverlay[Card][\reuseMPgraphic{card}] \setupbackgrounds[page] [state=repeat, background={Card

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

2022-10-19 Thread Wolfgang Schuster via ntg-context
,    after=\blank,   background=] \setupfloats   [freeregion=no] \definedescription   [Definition]   [alternative=top,   text={Definition: }, title=yes,     before=\startOliver, after=\stopOliver, inbetween={\blank[medium]}] \startbuffer[sampletext

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

2022-10-19 Thread Oliver Sieber via ntg-context
works perfectly. I included everything in this code, to show exactly, what is not working. \starttext \framed[corner=round, rulethickness=2pt, width=\textwidth, align=flushleft, offset=1em,background=color,framecolor=black] {{\bf Box with centered image} \blank[medium] \input khatt-en

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

2022-10-19 Thread Ursula Hermann via ntg-context
Dear Oliver, maybe something like this? This is my example: \starttext \setuppapersize [A5] \setupexternalfigures [location=default] \setupindenting [yes, small] \setupwhitespace [small] \defineframedtext [prettyblock] [width=10cm, indenting={yes, small}, background

[NTG-context] Floating Figure in framed-environment

2022-10-19 Thread Oliver Sieber via ntg-context
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: \starttext \framed[corner=round, rulethickness=2pt, width=\textwidth, align=flushleft, offset=1em,background=color

[NTG-context] Perceptrons

2022-10-16 Thread Thangalin via ntg-context
dto connections also image( draw (offset_bc, offset_br) -- (vc, vr) withcolor colour_edge withpen pencircle scaled 0.05bp; ); ); endfor; draw hexgrid scaled SCALE; draw vertices scaled SCALE; draw connections scaled SCALE; draw perceptr

Re: [NTG-context] startTEXpage on A4

2022-10-10 Thread Willi Egger via ntg-context
; \stopuniqueMPgraphic \framedtext [height=fit, align={lohi,center}, background=Cutpointstight, foregroundcolor=black, frame=off, offset=3pt] {{\tfa HALITGARII EPISCOPI \blank[small] De vitiis et virtutibus \blank[small

Re: [NTG-context] ConTeXt meeting and the annotated cow

2022-09-18 Thread Alan via ntg-context
On Sun, 18 Sep 2022 10:13:34 +0200 Axel Kielhorn via ntg-context wrote: > There are still some further ideas and a lot to learn for me: > - multi line annotations > - a transparent white background > - a frame around the text Just use "\framed[background=color,backgroundcolor

[NTG-context] ConTeXt meeting and the annotated cow

2022-09-18 Thread Axel Kielhorn via ntg-context
Hello, last week I learned something about MetaPost at the context meeting. Thanks Taco! First a little background: I write a lot of documentation and sometimes I need to include a picture with annotations. Until now I used a drawing program to add text and arrows. This has one disadvantage

[NTG-context] \startcolumnset ... \stopcolumnset is working.

2022-09-14 Thread Jeong Dal via ntg-context
\defineoverlay [verticalrule] [\useMPgraphic{verticalrule3}] \definecolumnset [exam] [n=2, background=verticalrule] \setuplayout[width=19cm, height=26cm, header=1cm, footer=.5cm,backspace=1cm] \setupheader[before=\vfil, after=\vfil] \setupbackgrounds[header][text][frame=off, background

Re: [NTG-context] Is rendering furigana over horizontal or vertical japanese text doable in ConTeXt?

2022-08-21 Thread Hans Hagen via ntg-context
] \chapter{通用规} \placefigure [left,none] {汉字表} {\framed [width=4cm, height=2\lineheight, frame=off, backgroundcolor=darkgreen, foregroundcolor=white, background=color] {汉字表}} \dorecurse{40}{% 通用规\ruby{范

Re: [NTG-context] How can I make a Gentoo Linux package for ConTeXt LMTX?

2022-08-18 Thread amano.kenji via ntg-context
I really don't understand how TexLive is installed. On Gentoo Linux, the code that handles TexLive installation is complex. I can't reuse code that I don't understand. I came from LaTeX background. I got sick of handling incompatible modules in LaTeX and decided to try ConTeXt. I had used

Re: [NTG-context] How to do code listings & sections from XML (AsciiDoc)

2022-08-13 Thread Mojca Miklavec via ntg-context
[before={ \startnarrow[left=1cm,before={\blank[10pt]}] \switchtobodyfont[8pt] \startframed [align=flushleft, background=color, backgroundcolor=gray, frame=off, leftframe=on, rulethickness=2pt,

Re: [NTG-context] How to do code listings & sections from XML (AsciiDoc)

2022-08-13 Thread Mojca Miklavec via ntg-context
make \startnarrow[middle=1cm] (or left=... for that matter) produce any offset on the left. I was playing with the following example, but the frame refuses to be shifted to the right \setupvimtyping [before={ \startnarrow[left=1cm,before={\blank[10pt]}] \switchtobodyfont[8pt]

Re: [NTG-context] image with rounded corners

2022-08-12 Thread Wolfgang Schuster via ntg-context
][{%   \externalfigure[mill][width=\overlaywidth] }] \framed[background=Mill,width=3cm,height=4cm, corner=round,radius=1cm, backgroundcorner=round,backgroundradius=1cm, offset=overlay]{} \setupexternalfigures[location=default] \starttext \startMPclip{rounded corner} clip currentpicture

[NTG-context] image with rounded corners

2022-08-12 Thread Henning Hraban Ramm via ntg-context
Hi, can ConTeXt make rounded image corners? Both of my approaches don’t work: \externalfigure[mill][ width=3cm, frame=on, corner=round,radius=1cm, backgroundcorner=round,backgroundradius=1cm, ] \defineoverlay[Mill][{% \externalfigure[mill][width=\overlaywidth] }] \framed[background

Re: [NTG-context] MP scratch counter

2022-07-13 Thread Hans Hagen via ntg-context
ted (i*5pt, 0pt)    withcolor if i < PageNumber : red else :  black fi ; endfor ; StopPage ; \stopuseMPgraphic \defineoverlay[background:ornament][\useMPgraphic{MP:ornament}] \setupbackgrounds[page][background={background:ornament}] \set

[NTG-context] MP scratch counter

2022-07-13 Thread Henning Hraban Ramm via ntg-context
else : black fi ; endfor ; StopPage ; \stopuseMPgraphic \defineoverlay[background:ornament][\useMPgraphic{MP:ornament}] \setupbackgrounds[page][background={background:ornament}] \setupbodyfont[ss,18pt] \starttext \dorecurse{10}{ \strut\par

Re: [NTG-context] Two minor questions

2022-06-06 Thread Stefan Nedeljkovic via ntg-context
imexpr2bp I get an error. How should I add these 2bp? > > (Untested) > > \dimexpr\measure{base}+2bp\relax > > or > > \dimexpr\measured{base}+2bp\relax > > should work. > > > 2. I have an mp graphic defined in the file "graphic.mp" which has the > >

Re: [NTG-context] Two minor questions

2022-06-06 Thread Aditya Mahajan via ntg-context
lax or \dimexpr\measured{base}+2bp\relax should work. > 2. I have an mp graphic defined in the file "graphic.mp" which has the > exact same dimensions as my page. I'd like to set that graphic as a > background. How do I do this? (Again, untested) \startuseMPgraphic

Re: [NTG-context] Two minor questions

2022-06-06 Thread Wolfgang Schuster via ntg-context
. I have an mp graphic defined in the file "graphic.mp <http://graphic.mp>" which has the exact same dimensions as my page. I'd like to set that graphic as a background. How do I do this? \startreusableMPgraphic{backgroundgraphic}     input graphic.mp; \stopreusableMPgraphic

[NTG-context] Two minor questions

2022-06-05 Thread Stefan Nedeljkovic via ntg-context
at graphic as a background. How do I do this? ___ 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/listinfo/ntg-context webpa

Re: [NTG-context] Improving pandoc's ConTeXt output

2022-06-05 Thread Albert Krewinkel via ntg-context
othering, or do you >>see adding the extra environment by default as an acceptable >>practice? > > A similiary question came up in the org-mode mailinglist some weeks ago. > > (Background: Org-mode is a markup used with Emacs to make single source > publishing poss

Re: [NTG-context] Improving pandoc's ConTeXt output

2022-06-05 Thread Denis Maier via ntg-context
ceptable > >practice? > > A similiary question came up in the org-mode mailinglist some weeks ago. > > (Background: Org-mode is a markup used with Emacs to make single source > publishing possible) > > Someone who maintains an export progr

Re: [NTG-context] Improving pandoc's ConTeXt output

2022-06-05 Thread juh via ntg-context
e >practice? A similiary question came up in the org-mode mailinglist some weeks ago. (Background: Org-mode is a markup used with Emacs to make single source publishing possible) Someone who maintains an export programme for ConTeXt uses sectionlevels. You get the incremental subsections and

Re: [NTG-context] Pull quote between two column - trial

2022-05-28 Thread Garulfo via ntg-context
} % \startshapetext[mytest1,mytest2] \strut\samplefile{douglas} \stopshapetext \MyBigFrame{% \MyFrame[background=myOL1]{\getshapetext}% \hfill% \MyFrame[background=myOL2]{\getshapetext}} {\bf Between} % \startshapetext

[NTG-context] Pull quote between two column - trial

2022-05-21 Thread Garulfo via ntg-context
] [background=color, backgroundcolor=transparentred, width=0.3\textwidth, after=\dontleavehmode] % \definelayer % used to display the pull quote on the page [test] [x=0mm, y=0mm, width=\paperwidth, height=\paperheight

[NTG-context] MetaFun manual's "texvar" is not working for me

2022-05-21 Thread Gavin via ntg-context
\setupbackgrounds [page] [background={backgraphics,foreground,foregraphics}] \defineoverlay [backgraphics] [\positionoverlay{backgraphics}] \defineoverlay [foregraphics] [\positionoverlay{foregraphics}] \setupMPvariables [mpos:box] [linecolor=blue, linewidth=\linewidth, fillcolor

[NTG-context] overthinking overprinting

2022-05-19 Thread Henning Hraban Ramm via ntg-context
the background, these might work with \startknockout etc. When I try my example: \useMPlibrary[dum] \setupcolors[ rgb=no,cmyk=yes, intent=overprint,% or knockout ] \setupbodyfont[modern,ss,18pt] \starttext \definecollector[Test] \setcollector [Test] {\externalfigure[none][width=8cm,height

Re: [NTG-context] How to place "Content" and other chapter-level titles the same vertical distance from the top?

2022-05-09 Thread Willi Egger via ntg-context
lt;--really big chapter number > === <-- there is a border created by a background image between these >How to keep <--chapter title >fish > > This is the article <-- the article begins > about how to keep > fish > - > > \definefontsiz

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