[NTG-context] How to place text, but make it completely hidden from viewers?

2024-05-09 Thread Joel via ntg-context
I have found a few situations is confusing/breaking ConTeXt: - Footnotes inside tables, figures, frames, margins (won't render the cited item). - Custom index items inside those items (displays "entry not flushed"). My workaround has been to define a size 0 font \tfz, then put it in a block like

[NTG-context] no effect of \definefontfeature for adobevariablefontprototype

2024-05-09 Thread garulfo
Hi, trying to work with variable fonts, I am stuck at the very beginning. I can't see any effect of weight parameter. Using adobevariablefontprototypebold and adobevariablefontprototypelight is working. \starttext \definefontfeature[whatever][axis={weight:150}]%

[NTG-context] Re: rendering arabic diacritics

2024-05-09 Thread seyal zavira
Of course! i attached output file before and after applying new patch On Thu, May 9, 2024 at 9:08 AM Hamid,Idris wrote: > > > -- Original Message -- > From "Hans Hagen" > To "ntg-context@ntg.nl" > Date 5/9/2024 6:29:40 AM > Subject [NTG-context] Re: rendering arabic diacritics > > **

[NTG-context] Re: weird \inlinetypebuffer interaction

2024-05-09 Thread Pablo Rodriguez via ntg-context
On 5/9/24 12:57, Wolfgang Schuster wrote: > Pablo Rodriguez via ntg-context schrieb am 08.05.2024 um 18:05: >> [...] >> Since \type doesn’t collapse hyphens, wouldn’t it be possible to add >> \nohyphencollapsing to \typeinlinebuffer just for the sake of output >> consistency? > > You can make

[NTG-context] Re: rendering arabic diacritics

2024-05-09 Thread Hamid,Idris
-- Original Message -- From "Hans Hagen" mailto:j.ha...@xs4all.nl>> To "ntg-context@ntg.nl" mailto:ntg-context@ntg.nl>> Date 5/9/2024 6:29:40 AM Subject [NTG-context] Re: rendering arabic diacritics ** Caution: EXTERNAL Sender ** On 5/9/2024 2:17 PM,

[NTG-context] Re: rendering arabic diacritics

2024-05-09 Thread Hans Hagen
On 5/9/2024 2:17 PM, Hamid,Idris wrote: Hi Seyal, See below: -- Original Message -- From "Hans Hagen" mailto:j.ha...@xs4all.nl>> To "seyal.zav...@gmail.com " mailto:seyal.zav...@gmail.com>>; "mailing list for ConTeXt users" mailto:ntg-context@ntg.nl>>

[NTG-context] Re: rendering arabic diacritics

2024-05-09 Thread Hamid,Idris
Hi Seyal, See below: -- Original Message -- From "Hans Hagen" mailto:j.ha...@xs4all.nl>> To "seyal.zav...@gmail.com" mailto:seyal.zav...@gmail.com>>; "mailing list for ConTeXt users" mailto:ntg-context@ntg.nl>> Date 5/9/2024 3:31:45 AM Subject

[NTG-context] Re: weird \inlinetypebuffer interaction

2024-05-09 Thread Wolfgang Schuster
Pablo Rodriguez via ntg-context schrieb am 08.05.2024 um 18:05: On 5/7/24 22:37, Wolfgang Schuster wrote: [...] \typebuffer disables automatic \endash and \emdash with the \nohyphencollapsing command but the command isn't used for \typeinlinebuffer. Many thanks for your explanation, Wolfgang.

[NTG-context] Re: rendering arabic diacritics

2024-05-09 Thread Hans Hagen
On 5/9/2024 10:03 AM, seyal.zav...@gmail.com wrote: Hi all, when i want to use the linked font for arabic texts it doesn't render diacritics properly i doesn't have problem with this font in inkscape or libreoffice what featureset should i apply? font link:

[NTG-context] rendering arabic diacritics

2024-05-09 Thread seyal . zavira
Hi all, when i want to use the linked font for arabic texts it doesn't render diacritics properly i doesn't have problem with this font in inkscape or libreoffice what featureset should i apply? font link: https://drive.google.com/file/d/1hCcv6wqWjd-5GEKnaowh8E8YVbTgGqQr/view?usp=sharing this

[NTG-context] Re: Hbox error with itemized list on second page

2024-05-08 Thread Ross Schulman
Hi everyone. Just raising this question again. Is anyone able to help me figure out why this is happening and how I can fix it more permanently? Thank you all very much! Ross On Mon, May 6, 2024, at 7:33 PM, Ross Schulman wrote: > So, unfortunately while using `\testpage` helped in the version

[NTG-context] Re: weird \inlinetypebuffer interaction

2024-05-08 Thread Pablo Rodriguez via ntg-context
On 5/7/24 22:37, Wolfgang Schuster wrote: > [...] > \typebuffer disables automatic \endash and \emdash with the > \nohyphencollapsing command > but the command isn't used for \typeinlinebuffer. Many thanks for your explanation, Wolfgang. Since \type doesn’t collapse hyphens, wouldn’t it be

[NTG-context] Re: wiki Command/MPdrawingdonetrue => NO COMMAND FOUND

2024-05-08 Thread Taco Hoekwater
> On 8 May 2024, at 14:54, garu...@azules.eu wrote: > > Is there something to do to make the wiki aware of the existence of > \MPdrawingdonetrue ? Not right now. The Wiki only understands commands that are documented in the interface files (and it is a bit behind on those anyway). Also, I

[NTG-context] wiki Command/MPdrawingdonetrue => NO COMMAND FOUND

2024-05-08 Thread garulfo
Is there something to do to make the wiki aware of the existence of \MPdrawingdonetrue ? https://wiki.contextgarden.net/index.php?title=Command/MPdrawingdonetrue=edit=1 ___ If your question is of interest to others

[NTG-context] Re: intercolumn pull quotes typesetting

2024-05-08 Thread Garulfo
the PDF example is updated with \input knuth and \input ward as content. My apologies.___ 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: regular online meet-up

2024-05-08 Thread Henning Hraban Ramm
Reminder: This is tonight! Am 03.05.24 um 22:40 schrieb Henning Hraban Ramm: You’re invited to our regular online meet-up, this upcoming Wednesday, May 8th, 19:00 CEST (UTC+2!) at https://lecture.senfcall.de/hen-rbr-rku-oke (same, but shorter: https://u.mtxrun.eu/ctxmtg) ConTeXt users of all

[NTG-context] Re: more register questions!

2024-05-07 Thread Rik Kabel
Hello Wolfgang and all, I have been trying to extend this to handle endnotes. So far, I have not succeeded; the number is always that of the last endnote. I could possibly increment a counter for each endnote processed, but that seems a hack. -- Rik On 2024-05-03 06:18, Wolfgang Schuster

[NTG-context] Re: weird \inlinetypebuffer interaction

2024-05-07 Thread Wolfgang Schuster
Pablo Rodriguez via ntg-context schrieb am 07.05.2024 um 19:40: On 5/6/24 22:45, Wolfgang Schuster wrote: Pablo Rodriguez via ntg-context schrieb am 06.05.2024 um 20:06: Dear list, I have the following sample: \definefontfamily[mainface][tt][TeX Gyre Termes] Apply the none feature when

[NTG-context] Re: intercolumn pull quotes typesetting

2024-05-07 Thread Garulfo
Hi all, I am happy to share one way to get "pull quotes between two columns" (in a three columns layout). https://wiki.contextgarden.net/images/5/50/context_3columns_layout.pdf It's not based on Columns / ColumnSet / Page Columns. It just combines \startuseMPgraphic + build_parshape + \framed

[NTG-context] Re: weird \inlinetypebuffer interaction

2024-05-07 Thread Pablo Rodriguez via ntg-context
On 5/6/24 22:45, Wolfgang Schuster wrote: > Pablo Rodriguez via ntg-context schrieb am 06.05.2024 um 20:06: >> Dear list, >> >> I have the following sample: >> >>\definefontfamily[mainface][tt][TeX Gyre Termes] > > Apply the none feature when you set the monospace font, i.e. > >

[NTG-context] 18th ConTeXt Meeting, Lutten NL, August 17-23 2024: Registration open

2024-05-07 Thread Taco Hoekwater
Dear list members! Registration for the 18th ConTeXt Meeting https://meeting.contextgarden.net/2024/ is now open. This year we are hosted in Lutten, The Netherlands, in a converted water tower: https://watertorenlutten.nl/

[NTG-context] Re: Hbox error with itemized list on second page

2024-05-06 Thread Ross Schulman
So, unfortunately while using `\testpage` helped in the version of the resume I was working on at the time, I've encountered the error again now that some different content is making the page break at a different point, and setting `\testpage` as high as 6 is not fixing the problem. Is there

[NTG-context] Re: weird \inlinetypebuffer interaction

2024-05-06 Thread Wolfgang Schuster
Pablo Rodriguez via ntg-context schrieb am 06.05.2024 um 20:06: Dear list, I have the following sample: \definefontfamily[mainface][tt][TeX Gyre Termes] Apply the none feature when you set the monospace font, i.e. \definefontfamily[...][tt][...][features=none] Wolfgang

[NTG-context] weird \inlinetypebuffer interaction

2024-05-06 Thread Pablo Rodriguez via ntg-context
Dear list, I have the following sample: \definefontfamily[mainface][tt][TeX Gyre Termes] \setupbodyfont[mainface] \starttext \startbuffer context --purgeall \stopbuffer inline \typeinlinebuffer block: \typebuffer \stoptext As long as there is no defined font family for

[NTG-context] Re: transparent color

2024-05-06 Thread Wolfgang Schuster
Bruce Horrocks schrieb am 06.05.2024 um 15:30: On 6 May 2024, at 09:41, Hans van der Meer via ntg-context wrote: I would like to use a transparent version of an existing color. Thus \definecolor[transparentcolor][color,t=0.2,a=1] instead of

[NTG-context] Re: transparent color

2024-05-06 Thread Henning Hraban Ramm
Am 06.05.24 um 16:01 schrieb Jacob Kauffmann via ntg-context: Am 06.05.2024 um 10:41 schrieb Hans van der Meer via ntg-context : I would like to use a transparent version of an existing color. Thus \definecolor[transparentcolor][color,t=0.2,a=1] instead of

[NTG-context] Re: transparent color

2024-05-06 Thread Jacob Kauffmann via ntg-context
> Am 06.05.2024 um 10:41 schrieb Hans van der Meer via ntg-context > : > > I would like to use a transparent version of an existing color. Thus > \definecolor[transparentcolor][color,t=0.2,a=1] > instead of > \definecolor[transparentcolor][r=..,g=..,b=..,t=0.2,a=1] > because I do not know the

[NTG-context] Re: transparent color

2024-05-06 Thread Bruce Horrocks
> On 6 May 2024, at 09:41, Hans van der Meer via ntg-context > wrote: > > I would like to use a transparent version of an existing color. Thus > \definecolor[transparentcolor][color,t=0.2,a=1] > instead of > \definecolor[transparentcolor][r=..,g=..,b=..,t=0.2,a=1] > because I do not know the

[NTG-context] Re: transparent color

2024-05-06 Thread Henning Hraban Ramm
Am 06.05.24 um 10:41 schrieb Hans van der Meer via ntg-context: I would like to use a transparent version of an existing color. Thus \definecolor[transparentcolor][color,t=0.2,a=1] instead of \definecolor[transparentcolor][r=..,g=..,b=..,t=0.2,a=1] because I do not know the rgb values of the

[NTG-context] transparent color

2024-05-06 Thread Hans van der Meer via ntg-context
I would like to use a transparent version of an existing color. Thus \definecolor[transparentcolor][color,t=0.2,a=1] instead of \definecolor[transparentcolor][r=..,g=..,b=..,t=0.2,a=1] because I do not know the rgb values of the color that must be made transparent, only its name.

[NTG-context] Re: Why is this description environment not showing the correct title?

2024-05-05 Thread Wolfgang Schuster
Mikael Sundqvist schrieb am 05.05.2024 um 16:45: Hi On Sun, May 5, 2024 at 4:40 PM Joel via ntg-context wrote: \definedescription[latexdesc][headstyle=bold, style=normal, align=flushleft, alternative=hanging, width=broad, margin=1cm] \starttext \latexdesc{1540} some event happened

[NTG-context] Re: Why is this description environment not showing the correct title?

2024-05-05 Thread Mikael Sundqvist
Hi On Sun, May 5, 2024 at 4:40 PM Joel via ntg-context wrote: > > > \definedescription[latexdesc][headstyle=bold, style=normal, align=flushleft, > alternative=hanging, width=broad, margin=1cm] > > \starttext > > \latexdesc{1540} some event happened > \latexdesc{1541} some other event

[NTG-context] Why is this description environment not showing the correct title?

2024-05-05 Thread Joel via ntg-context
\definedescription[latexdesc][headstyle=bold, style=normal, align=flushleft, alternative=hanging, width=broad, margin=1cm] \starttext     \latexdesc{1540} some event happened     \latexdesc{1541} some other event happened     \latexdesc{1542} some event happened quite different \stoptext I

[NTG-context] Re: How to stop ConTeXt from thinking period is at the end of a sentence?

2024-05-05 Thread Denis Maier via ntg-context
https://wiki.contextgarden.net/French_spacing Joel via ntg-context hat am 05.05.2024 00:30 CEST geschrieben:     I noticed that some code is being rendered wrong, most especially apparent in a column environment where

[NTG-context] How to stop ConTeXt from thinking period is at the end of a sentence?

2024-05-04 Thread Joel via ntg-context
I noticed that some code is being rendered wrong, most especially apparent in a column environment where sometimes the text can get stretched a bit more to fit the column width nicer. If a sentence says "They appeared between c. 1200 BCE and c. 1500 CE." it appears ConTeXt thinks that the

[NTG-context] outlinetext broken?

2024-05-04 Thread Jairo A. del Rio
Hi, list \startMPpage draw outlinetext.d("\mathematics{\sqrt{2}-1}")(withcolor black withpen currentpen) scaled 1; \stopMPpage fails (radicals are not drawn at all). As for context --version, mtx-context | ConTeXt Process Management 1.06 mtx-context | mtx-context | main context

[NTG-context] Re: Switch number and enumeration text

2024-05-04 Thread Wolfgang Schuster
Jethro Djan schrieb am 04.05.2024 um 04:57: Dear List, I would like to get something like: 1.1 Theorem instead of Theorem 1.1. Seems simple enough but can't figure out how to switch the number and the text. I have the following MWE: \defineenumeration[theorem][   prefix=chapter,  

[NTG-context] Re: Switch number and enumeration text

2024-05-04 Thread Henning Hraban Ramm
Am 04.05.24 um 04:57 schrieb Jethro Djan: Dear List, I would like to get something like: 1.1 Theorem instead of Theorem 1.1. Seems simple enough but can't figure out how to switch the number and the text. I have the following MWE: \defineenumeration[theorem][   prefix=chapter,  

[NTG-context] Switch number and enumeration text

2024-05-03 Thread Jethro Djan
Dear List, I would like to get something like: 1.1 Theorem instead of Theorem 1.1. Seems simple enough but can't figure out how to switch the number and the text. I have the following MWE: \defineenumeration[theorem][ prefix=chapter, text=Theorem, style=italic, headstyle=bold,

[NTG-context] Re: more register questions!

2024-05-03 Thread Thomas A. Schmitz
Hi Wolfgang, powerful and elegant, as always! I think I have a solution with xml; I will have to test it more extensively with my complex real file; but here comes, also for Hraban (if it works in real life, I'll add it to the wiki...). Thanks a lot! Thomas \startbuffer[test]

[NTG-context] regular online meet-up

2024-05-03 Thread Henning Hraban Ramm
You’re invited to our regular online meet-up, this upcoming Wednesday, May 8th, 19:00 CEST (UTC+2!) at https://lecture.senfcall.de/hen-rbr-rku-oke (same, but shorter: https://u.mtxrun.eu/ctxmtg) ConTeXt users of all levels are welcome! Do you have a subject that you’d like to talk about? I’m

[NTG-context] Re: more register questions!

2024-05-03 Thread Henning Hraban Ramm
Am 03.05.24 um 22:24 schrieb Thomas A. Schmitz: Hi Massi, yes, that was a very good idea! I can detect if the element occurs within a footnote by testing \xmldoiftext {#1} {ancestor::footnote} and then apply a processor to these entries. That would be a good solution for the time being.

[NTG-context] Re: more register questions!

2024-05-03 Thread Thomas A. Schmitz
Hi Massi, yes, that was a very good idea! I can detect if the element occurs within a footnote by testing \xmldoiftext {#1} {ancestor::footnote} and then apply a processor to these entries. That would be a good solution for the time being. Thanks and all best Thomas On 5/2/24 17:55, mf

[NTG-context] Re: more register questions!

2024-05-03 Thread Wolfgang Schuster
Thomas A. Schmitz schrieb am 02.05.2024 um 17:01: Hi, making wonderful progress on my registers and translating from xml. There is one thing I can't figure out (and I or some other good soul may have asked in the past...). Is it possible to mark occurrences in footnotes? Ideally, the entry

[NTG-context] Re: more register questions!

2024-05-02 Thread mf
Il 02/05/24 17:01, Thomas A. Schmitz ha scritto: Hi, making wonderful progress on my registers and translating from xml. There is one thing I can't figure out (and I or some other good soul may have asked in the past...). Is it possible to mark occurrences in footnotes? Ideally, the entry

[NTG-context] more register questions!

2024-05-02 Thread Thomas A. Schmitz
Hi, making wonderful progress on my registers and translating from xml. There is one thing I can't figure out (and I or some other good soul may have asked in the past...). Is it possible to mark occurrences in footnotes? Ideally, the entry in the register would look like p. 100\high{20}

[NTG-context] How to obtain the hbox's node when there is only one hbox for an entire paragraph?

2024-05-01 Thread 黄复雄
Dear list, What is the non-hacking way to obtain the hbox's node in a Lua hook when there is only one hbox for an entire paragraph? Best regards, Huang Fusyong (黄复雄) % start ConTeXt \startluacode Moduledata = Moduledata or {} Moduledata.jiazhu = Moduledata.jiazhu or {} ---[[ local function

[NTG-context] Re: \par and \startlines

2024-05-01 Thread Henning Hraban Ramm
Am 01.05.24 um 09:44 schrieb Wolfgang Schuster: but that should be sufficient, but to repeat Hraban's question: What would be the advantage of using the format module? The module provides features like     - alignment of the verse lines     - numbering of the lines (which isn't supported by

[NTG-context] Re: \par and \startlines

2024-05-01 Thread Wolfgang Schuster
denisma...@mailbox.org schrieb am 30.04.2024 um 14:28: -Ursprüngliche Nachricht- Von: Wolfgang Schuster Gesendet: Samstag, 27. April 2024 07:40 An: Denis Maier Cc: mailing list for ConTeXt users Betreff: Re: [NTG-context] Re: \par and \startlines Denis Maier schrieb am 26.04.2024 um

[NTG-context] Re: Hbox error with itemized list on second page

2024-04-30 Thread Ross Schulman
Thank you. Adding that did the trick! Best, Ross Schulman On Tue, Apr 30, 2024, at 11:47 AM, Wolfgang Schuster wrote: > Ross Schulman schrieb am 30.04.2024 um 15:01: > > Hello, > > I'm attempting to format a resume in Context building off of a template > > I found online. I'm having an odd

[NTG-context] Re: Hbox error with itemized list on second page

2024-04-30 Thread Wolfgang Schuster
Ross Schulman schrieb am 30.04.2024 um 15:01: Hello, I'm attempting to format a resume in Context building off of a template I found online. I'm having an odd error with some bullets on the second page, however. I'm guessing it has something to do with my \definelayout for the second (and

[NTG-context] Re: Font switching for titles and subtitle not working as expected ?

2024-04-30 Thread Wolfgang Schuster
denis.ma...@unibe.ch schrieb am 30.04.2024 um 14:22: Hi, I just jumbled upon this question on tex stackexchange : https://tex.stackexchange.com/questions/715799/context-switching-font-for-both-title-and-subject#715804 Using the style key as suggested in the accepted answer works, but I’ve

[NTG-context] Hbox error with itemized list on second page

2024-04-30 Thread Ross Schulman
Hello, I'm attempting to format a resume in Context building off of a template I found online. I'm having an odd error with some bullets on the second page, however. I'm guessing it has something to do with my \definelayout for the second (and subsequent) pages, but I can't figure it out for

[NTG-context] Re: \par and \startlines

2024-04-30 Thread Denis Maier via ntg-context
> -Ursprüngliche Nachricht- > Von: Wolfgang Schuster > Gesendet: Samstag, 27. April 2024 07:40 > An: Denis Maier > Cc: mailing list for ConTeXt users > Betreff: Re: [NTG-context] Re: \par and \startlines > > Denis Maier schrieb am 26.04.2024 um 19:52: > > > I see. But there's no

[NTG-context] Font switching for titles and subtitle not working as expected ?

2024-04-30 Thread denis.maier
Hi, I just jumbled upon this question on tex stackexchange : https://tex.stackexchange.com/questions/715799/context-switching-font-for-both-title-and-subject#715804 Using the style key as suggested in the accepted answer works, but I've had a look in to this, and I don't understand why the

[NTG-context] Re: QR Code (Henning Hraban Ramm)

2024-04-29 Thread Benjamin Buchmuller
Hi Hraban, Downgrading zint to 2.12.0 worked for me. Many thanks! In case someone is experiencing similar issues, I ran: brew remove zint curl https://raw.githubusercontent.com/Homebrew/homebrew-core/962d789d26c9d8f760affe272689f21388f7d3e2/Formula/z/zint.rb > zint.rb brew install zint.rb

[NTG-context] Re: ConteXt commands in an rtl environment

2024-04-29 Thread Wolfgang Schuster
Alan Bowen schrieb am 29.04.2024 um 19:37: I used TeXShop and PopChar Pro to get the letter ר so that it is l2r. Not a great solution but it works when one is working in r2l text. (Thank heaven for Unicode.) I will have a look at Visual Studio Code. I tested a few text editors with better

[NTG-context] Re: unprotecting when defining in Lua

2024-04-29 Thread Pablo Rodriguez via ntg-context
On 4/29/24 19:32, Wolfgang Schuster wrote: > Pablo Rodriguez via ntg-context schrieb am 29.04.2024 um 18:21: >> Is \protected the same as \unexpanded? > > Yes they are the same (\protected is the primitive and \unexpanded is a > copy) but this wasn't always the case. > > Original TeX didn't

[NTG-context] Re: unprotecting when defining in Lua

2024-04-29 Thread Wolfgang Schuster
Pablo Rodriguez via ntg-context schrieb am 29.04.2024 um 18:21: On 4/29/24 18:04, Wolfgang Schuster wrote: Pablo Rodriguez via ntg-context schrieb am 29.04.2024 um 17:22: [...] Which is the right way to use "interfaces.definecommand" to get a simple command as in standard TeX? I mean, no a

[NTG-context] Re: ConteXt commands in an rtl environment

2024-04-29 Thread Wolfgang Schuster
Alan Bowen schrieb am 29.04.2024 um 18:27: I discovered what the problem was. Just in case someone else may also wonder how to do this, one way (not necessarily the best) is to insert: {ר}high\ where the letter in parentheses (resh) should be entered in a l2r context, not r2l. Which editor

[NTG-context] Re: Why Difference Between \placefloat and \definefloat

2024-04-29 Thread Wolfgang Schuster
urba...@ca.rr.com schrieb am 28.04.2024 um 19:54: I swear I used to understand this stuff.  I plead old age.   Why do I get two different results from the float placements here: \definefloat[mysidebar][mysidebars]

[NTG-context] Re: ConteXt commands in an rtl environment

2024-04-29 Thread Alan Bowen
I discovered what the problem was. Just in case someone else may also wonder how to do this, one way (not necessarily the best) is to insert: {ר}high\ where the letter in parentheses (resh) should be entered in a l2r context, not r2l. Alan On Sun, Apr 28, 2024 at 4:23 PM Alan Bowen wrote: > I

[NTG-context] Re: unprotecting when defining in Lua

2024-04-29 Thread Pablo Rodriguez via ntg-context
On 4/29/24 18:04, Wolfgang Schuster wrote: > Pablo Rodriguez via ntg-context schrieb am 29.04.2024 um 17:22: >> [...] >> Which is the right way to use "interfaces.definecommand" to get a simple >> command as in standard TeX? >> >> I mean, no a non \permanent or non \protected command. > > You

[NTG-context] Re: unprotecting when defining in Lua

2024-04-29 Thread Wolfgang Schuster
Pablo Rodriguez via ntg-context schrieb am 29.04.2024 um 17:22: Dear list, I have the following sample: \starttext \startluacode function document.test(str) context(str) end interfaces.definecommand { name = "testing", protected = false, macro

[NTG-context] unprotecting when defining in Lua

2024-04-29 Thread Pablo Rodriguez via ntg-context
Dear list, I have the following sample: \starttext \startluacode function document.test(str) context(str) end interfaces.definecommand { name = "testing", protected = false, macro = document.test, } \stopluacode \meaningfull\testing

[NTG-context] Re: statistical charts module re-published

2024-04-29 Thread Tomáš Hála
Hi Hraban, > published the new version to https://modules.contextgarden.net (i.e. > installation with > "mtxrun --script install-modules --install > statistical-charts" thank you, this is very userful. Tomáš ___

[NTG-context] Re: QR Code

2024-04-29 Thread Henning Hraban Ramm
Hi Ben, I’m not sure if this is your issue, but the zint library’s API used to change with every version, so that ConTeXt supports only the “latest” few, and probably that’s still 2.10 to 2.12. I still have 2.12 via MacPorts on MacOS 10.15, and it works. Can you try an older zint version?

[NTG-context] Re: QR Code

2024-04-28 Thread Benjamin Buchmuller
Catching up on an earlier thread by Ursula and Hraban, I'm also experienceing problems with \usemodule[zint] while \usemodule[t-zint] works fine. Running on macOS (ConTeXt ver: 2024.04.01 08:59 LMTX fmt: 2024.4.28). The issue seems somewhat unrelated to ConTeXt on first glance (??) if this

[NTG-context] ConteXt commands in an rtl environment

2024-04-28 Thread Alan Bowen
I am having trouble entering ConteXt commands in an rtl language, in this case Hebrew. How does one make the last(left hand) letter of the Hebrew word אשר a superscript? My experiments with \high{...} have not been successful so far in part, I think, because I have not got the brackets right.

[NTG-context] Re: Why Difference Between \placefloat and \definefloat

2024-04-28 Thread urban . m
I don't think that 'sidebar' has much to do with it. The part that is not working as expected is the 'mysidebar', which is not getting the 'outer' location, nor the 'none' captioning that I get with placefloat. setupfloat[mysidebar][leftmargindistance=-.25in,rightmargindistance=-.25in,outer,none]

[NTG-context] Re: Why Difference Between \placefloat and \definefloat

2024-04-28 Thread Henning Hraban Ramm
Where’s the float type "sidebar" defined? AFAIK it’s not a default type. And it might interfere with the actual sidebar stuff from https://source.contextgarden.net/tex/context/base/mkxl/anch-bar.mkxl, see also https://wiki.contextgarden.net/Command/setupsidebar Hraban Am 28.04.24 um 19:54

[NTG-context] Why Difference Between \placefloat and \definefloat

2024-04-28 Thread urban . m
I swear I used to understand this stuff. I plead old age. Why do I get two different results from the float placements here: definefloat[mysidebar][mysidebars] setupfloat[mysidebar][leftmargindistance=-.25in,rightmargindistance=-.25in,outer,none] defineframedtext [sidebartext]

[NTG-context] Re: statistical charts module re-published

2024-04-28 Thread Henning Hraban Ramm
Hi Tomáš, thank you, I updated the information at https://codeberg.org/fiee/context-statistical-charts and also published the new version to https://modules.contextgarden.net (i.e. installation with "mtxrun --script install-modules --install statistical-charts" will now install the current

[NTG-context] Re: Define a new command that inherits from multiple other command options

2024-04-28 Thread ai2472206007
Thanks for the detailed answer, my problem was solved very well through the code you provided -- Muyik ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist :

[NTG-context] Re: How to make superscript text match footnote mark formatting?

2024-04-27 Thread Joel via ntg-context
Thank you! --Joel On Saturday, April 27, 2024 at 12:08:13 PM MDT, Wolfgang Schuster wrote: Joel via ntg-context schrieb am 27.04.2024 um 19:16: > \starttext >  test\high{1}test\footnote{some text} > \stoptext > > How can I create a superscript number that has exactly the same >

[NTG-context] Re: How to make superscript text match footnote mark formatting?

2024-04-27 Thread Wolfgang Schuster
Joel via ntg-context schrieb am 27.04.2024 um 19:16: \starttext test\high{1}test\footnote{some text} \stoptext How can I create a superscript number that has exactly the same formatting as a footnote, but which won't create a footnote. I tried \high{}, which I believe should be the way

[NTG-context] How to make superscript text match footnote mark formatting?

2024-04-27 Thread Joel via ntg-context
\starttext test\high{1}test\footnote{some text} \stoptext How can I create a superscript number that has exactly the same formatting as a footnote, but which won't create a footnote. I tried \high{}, which I believe should be the way to superscript text, but if you compile this, you can see

[NTG-context] Re: Define a new command that inherits from multiple other command options

2024-04-27 Thread Wolfgang Schuster
ai2472206...@yeah.net schrieb am 25.04.2024 um 10:24: hi! I'm new to ConTeXt. I want to define a command with sidenote function. This [setupsidenote] command inherits the options of [setupmargindata], [setupcounter] and [setupframed]. just like [setupenumeration] inherits the option of

[NTG-context] Re: \par and \startlines

2024-04-27 Thread Henning Hraban Ramm
Am 26.04.24 um 18:24 schrieb Wolfgang Schuster: BTW: ConTeXt has a module for poems which can be loaded with \usemodule[format]. Never heard of it. Version says “ancient” ;) https://source.contextgarden.net/tex/context/modules/mkiv/m-format.mkiv What’s the advantage of all this markup over

[NTG-context] Re: \par and \startlines

2024-04-26 Thread Wolfgang Schuster
Denis Maier schrieb am 26.04.2024 um 19:52: I see. But there's no command that could be used to simulate an empty line? If not, me should I perhaps try to replicate the wrapper structure from the XML source in context? (I'll also look into the format module of course.) What do you think?

[NTG-context] Re: Define a new command that inherits from multiple other command options

2024-04-26 Thread ai2472206007
Thanks for your reply. The kanji part requires a specific font and typescript file, which I defined on my own computer but forgot to add to this example. This is something I didn't take into account. It's true, I need to think about what exactly my command needs, not build an all-powerful

[NTG-context] Re: Define a new command that inherits from multiple other command options

2024-04-26 Thread Bruce Horrocks
> On 25 Apr 2024, at 09:24, ai2472206...@yeah.net wrote: > > But what I don't know is how to get it to inherit the options of other > commands and perform these features correctly. Your example didn't work for me - none of the Chinese|Japanese[1] characters showed. AFAIK there is no way to

[NTG-context] Re: \par and \startlines

2024-04-26 Thread Henning Hraban Ramm
Am 26.04.24 um 19:52 schrieb Denis Maier via ntg-context: I see. But there's no command that could be used to simulate an empty line? Did you try \vskip{…}? Hraban ___ If your question is of interest to others as

[NTG-context] Re: \par and \startlines

2024-04-26 Thread Pablo Rodriguez via ntg-context
On 4/26/24 19:52, Denis Maier via ntg-context wrote: >> Wolfgang Schuster hat am 26.04.2024 19:29 CEST geschrieben: >> The inbetween setting works because ConTeXt checks at the start of >> each line whether it's empty (in this case the value is used) or not. >> >> When you add a \par you just end

[NTG-context] Re: wrong spacing after command with optional arguments

2024-04-26 Thread Pablo Rodriguez via ntg-context
On 4/26/24 19:50, Wolfgang Schuster wrote: > Pablo Rodriguez via ntg-context schrieb am 26.04.2024 um 19:04: >> I tried this approach (I hope it isn’t wrong): >> >>\starttext >>\expanded\tolerant\def\MyCommand#_#,#_#,#_#,#_{% > > The \expanded modifier is wrong (I guess you meant

[NTG-context] Re: \par and \startlines

2024-04-26 Thread Denis Maier via ntg-context
  Wolfgang Schuster hat am 26.04.2024 19:29 CEST geschrieben:     Denis Maier schrieb am 26.04.2024 um 19:18:   Wolfgang Schuster hat am 26.04.2024 18:24 CEST geschrieben:  

[NTG-context] Re: wrong spacing after command with optional arguments

2024-04-26 Thread Wolfgang Schuster
Pablo Rodriguez via ntg-context schrieb am 26.04.2024 um 19:04: On 4/26/24 18:18, Wolfgang Schuster wrote: Pablo Rodriguez via ntg-context schrieb am 26.04.2024 um 17:29: What is wrong in my definition above? There is nothing wrong, this is just a side effect of the scanner used with the

[NTG-context] Re: \par and \startlines

2024-04-26 Thread Wolfgang Schuster
Denis Maier schrieb am 26.04.2024 um 19:18: Wolfgang Schuster hat am 26.04.2024 18:24 CEST geschrieben: Denis Maier via ntg-context schrieb am 26.04.2024 um 18:10: Pablo Rodriguez via ntg-context > hat am 26.04.2024 17:25 CEST geschrieben: On 4/26/24 15:33,

[NTG-context] Re: \par and \startlines

2024-04-26 Thread Denis Maier via ntg-context
  Wolfgang Schuster hat am 26.04.2024 18:24 CEST geschrieben:     Denis Maier via ntg-context schrieb am 26.04.2024 um 18:10:   Pablo Rodriguez via ntg-context hat am 26.04.2024 17:25

[NTG-context] Re: wrong spacing after command with optional arguments

2024-04-26 Thread Pablo Rodriguez via ntg-context
On 4/26/24 18:18, Wolfgang Schuster wrote: > Pablo Rodriguez via ntg-context schrieb am 26.04.2024 um 17:29: >> What is wrong in my definition above? > > There is nothing wrong, this is just a side effect of the scanner used > with the \do...groupempty commands. To have more control about this >

[NTG-context] Re: \par and \startlines

2024-04-26 Thread Wolfgang Schuster
Denis Maier via ntg-context schrieb am 26.04.2024 um 18:10: Pablo Rodriguez via ntg-context > hat am 26.04.2024 17:25 CEST geschrieben: On 4/26/24 15:33, denis.ma...@unibe.ch wrote: Hi, I’m trying to typeset a poem from XML, but I can’t

[NTG-context] Re: wrong spacing after command with optional arguments

2024-04-26 Thread Wolfgang Schuster
Pablo Rodriguez via ntg-context schrieb am 26.04.2024 um 17:29: Dear list, I have the following sample: \starttext \def\MyCommand{\doquadruplegroupempty\doMyCommand} \def\doMyCommand#1#2#3#4{% \iffourthargument #4% \orelse\ifthirdargument #3% \else

[NTG-context] Re: \par and \startlines

2024-04-26 Thread Denis Maier via ntg-context
  Pablo Rodriguez via ntg-context hat am 26.04.2024 17:25 CEST geschrieben:     On 4/26/24 15:33, denis.ma...@unibe.ch wrote: Hi, I’m trying to typeset a poem from

[NTG-context] wrong spacing after command with optional arguments

2024-04-26 Thread Pablo Rodriguez via ntg-context
Dear list, I have the following sample: \starttext \def\MyCommand{\doquadruplegroupempty\doMyCommand} \def\doMyCommand#1#2#3#4{% \iffourthargument #4% \orelse\ifthirdargument #3% \else #2% \fi} \MyCommand{}{second}{third}{fourth},\\

[NTG-context] Re: \par and \startlines

2024-04-26 Thread Pablo Rodriguez via ntg-context
On 4/26/24 15:33, denis.ma...@unibe.ch wrote: > Hi, > > I’m trying to typeset a poem from XML, but I can’t figure out how to > make the inbetween key working here. > > As the source is XML, I cannot just add an empty line to start a new > group of lines inside \startlines…\stoplines. I guess,

[NTG-context] \par and \startlines

2024-04-26 Thread denis.maier
Hi, I'm trying to typeset a poem from XML, but I can't figure out how to make the inbetween key working here. As the source is XML, I cannot just add an empty line to start a new group of lines inside \startlines...\stoplines. I guess, there must be a command to do that, but \par seems to have

[NTG-context] Re: The graph is not visible.

2024-04-26 Thread Fabrice Couvreur
Hi, Thanks for your help. I did several tests playing only with the code of component 5 which interferes with that of component 14. @Aditya begingroup; . endgroup; does not work. @Hans save defaultfont, defaultscale; maybe also: save circle, p, q, b ; I get an empty rectangle in place of

[NTG-context] Re: start/stopregister

2024-04-26 Thread Thomas A. Schmitz
On 4/26/24 10:22 AM, Hans Hagen wrote: That's because mkii is AI enhanced. Can you try this: Ah, I see where I was wrong, thank you! I'm mapping from xml, so I became confused with the optional parameters that I write as attributes, with a number of ifs... But now it should be clear! All

[NTG-context] Re: The graph is not visible.

2024-04-26 Thread Aditya Mahajan
On Fri, 26 Apr 2024, Taco Hoekwater wrote: > > > > On 25 Apr 2024, at 23:12, Fabrice Couvreur > > wrote: > > > > Hi, > > Here is the code that interferes with the graph from the last chapter but > > why ? > > Because of this “path b”: > > > path circle, p, q, b; > >

[NTG-context] Re: start/stopregister

2024-04-26 Thread Hans Hagen
On 4/26/2024 9:54 AM, Thomas A. Schmitz wrote: On 4/26/24 9:30 AM, Thomas A. Schmitz wrote: And here I am again! Both in mkiv and in mkxl, start/stopregister does not work when there is already an index entry before. Example below! All best Thomas \setuppapersize [A6] \starttext

  1   2   3   4   5   6   7   8   9   10   >