[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

[NTG-context] Re: start/stopregister

2024-04-26 Thread Thomas A. Schmitz
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     A\index{A} B \page     A\startregister [index] {A}

[NTG-context] Re: start/stopregister

2024-04-26 Thread Thomas A. Schmitz
On 4/25/24 6:27 PM, Thomas A. Schmitz wrote: Ah, simple typo! After fixing abel to label, startregister gives the expected results again! Thanks Hans! I may be back with more register questions soon... And here I am again! Both in mkiv and in mkxl, start/stopregister does not work when there

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

2024-04-26 Thread Taco Hoekwater
> 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; which interferes with the assignment line from the other graphic code: >

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

2024-04-25 Thread Fabrice Couvreur
Hi, Here is the code that interferes with the graph from the last chapter but why ? \startMPcode pickup pencircle xscaled 1; defaultfont := "texgyrepagella-regular*default" ; defaultscale := 0.8 ; path circle, p, q, b; circle =

[NTG-context] Re: start/stopregister

2024-04-25 Thread Thomas A. Schmitz
On 4/25/24 18:16, Hans Hagen wrote: Let's seen if we can make Thomas more of an expert as he's zooming in on the issue:     extendregister {     metadata   = { name =  name },     references = { abel =  label },     } Let me know if you't see it.

[NTG-context] Re: start/stopregister

2024-04-25 Thread Hans Hagen
On 4/25/2024 4:51 PM, Taco Hoekwater wrote: On 25 Apr 2024, at 16:45, Thomas A. Schmitz wrote: On 4/25/24 16:13, Henning Hraban Ramm wrote: I’m using it like \startregister[index][bibliografie]{Bibliografie} … \stopregister[index][bibliografie] i.e. very similar to your example, and can

[NTG-context] Re: Combine lua and btx setup, was: Re: Customize citation format of a bibliography (use the short form as reference format)

2024-04-25 Thread Gerion Entrup
I solved it, although it's kinda hacky. I'm pretty sure that publications.citevariants.short is not meant to be called directly. Do you know why `context.getdetail(dataset, tag, "author")` does not work in render_cite? It always returns nil. ``` \setupinteraction[state=start]

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

2024-04-25 Thread Fabrice Couvreur
Hi Hans and Taco, @Hans, I compiled by commenting and uncommenting one component at a time; it is component 5 which interferes with the metapost code of component 14 All I have to do now is find out what the cause is. Fabrice Le jeu. 25 avr. 2024 à 16:40, Taco Hoekwater a écrit : > > > > On 25

[NTG-context] Re: start/stopregister

2024-04-25 Thread Taco Hoekwater
> On 25 Apr 2024, at 16:45, Thomas A. Schmitz > wrote: > > On 4/25/24 16:13, Henning Hraban Ramm wrote: >> I’m using it like >> \startregister[index][bibliografie]{Bibliografie} >> … >> \stopregister[index][bibliografie] >> i.e. very similar to your example, and can confirm it doesn’t result

[NTG-context] Re: start/stopregister

2024-04-25 Thread Thomas A. Schmitz
On 4/25/24 16:13, Henning Hraban Ramm wrote: I’m using it like \startregister[index][bibliografie]{Bibliografie} … \stopregister[index][bibliografie] i.e. very similar to your example, and can confirm it doesn’t result in a page range in the index. Also gives no error. Since I've become an

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

2024-04-25 Thread Taco Hoekwater
> On 25 Apr 2024, at 16:08, Fabrice Couvreur > wrote: > > Hi Taco, > I knew I wouldn't be able to explain what was happening. > The code works perfectly and the figure is clearly visible in the component > chapter-14 : It is probably not related to the figure itself. Something may be

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

2024-04-25 Thread Hans Hagen
On 4/25/2024 4:08 PM, Fabrice Couvreur wrote: Hi Taco, I knew I wouldn't be able to explain what was happening. The code works perfectly and the figure is clearly visible in the component chapter-14 : \startcomponent[chapter-14] \startMPpage ... \stopMPpage \stopcomponent But if I compile my

[NTG-context] Re: start/stopregister

2024-04-25 Thread Henning Hraban Ramm
Am 25.04.24 um 15:44 schrieb Thomas A. Schmitz: Hi all, has \startregister been superseded in luametatex or is it not yet implemented? I tried to read strc-reg.lmt but couldn't figure out what is going on. The following silly minimal test produces the expected result with mkiv but not in

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

2024-04-25 Thread Fabrice Couvreur
Hi Taco, I knew I wouldn't be able to explain what was happening. The code works perfectly and the figure is clearly visible in the component chapter-14 : \startcomponent[chapter-14] \startMPpage ... \stopMPpage \stopcomponent But if I compile my project, it disappears !!

[NTG-context] start/stopregister

2024-04-25 Thread Thomas A. Schmitz
Hi all, has \startregister been superseded in luametatex or is it not yet implemented? I tried to read strc-reg.lmt but couldn't figure out what is going on. The following silly minimal test produces the expected result with mkiv but not in mkxl. All best Thomas \setuppapersize [A6]

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

2024-04-25 Thread Taco Hoekwater
H Fabrice, You did not provide a good minimum test because the graph by itself renders fine: fabr.pdf Description: Adobe PDF document Best wishes, Taco (if all else fails, you can replace \startMPcode with \startMPpage and generate a standalone graph that way) > On 25 Apr 2024, at 12:27,

[NTG-context] The graph is not visible.

2024-04-25 Thread Fabrice Couvreur
Hi, I don't know if I can explain the problem I'm having. I made a project with 14 chapters. In each of them, there are graphics embedding metapost code. I proceed as follows : I compile each chapter alone with lmtx then I compile the project containing the 14 chapters. I didn't encounter any

[NTG-context] Re: which parameter is for adjust the distance between items in a list?

2024-04-25 Thread hf
You are right. I shall change the parameter `inbetween` in `\setupitemize`. Regards, Hong April 25, 2024 at 4:54 PM, "Henning Hraban Ramm" wrote: > Am 25.04.24 um 10:46 schrieb h...@hongfeng.ch: > >> thank you. >> >> just tried, not worked out yet. >> >> Here it is my text: >> >> ``` >>

[NTG-context] Re: utiliydata

2024-04-25 Thread Hans Hagen
On 4/25/2024 9:25 AM, Thomas A. Schmitz wrote: Nope, very sorry, can’t figure it out… I see job.register, I see I can access structures.refrences.collected, but what about the next level utilitydata.structures.references.collected={ [""]={ [“REF"]={ What does the empty key do? And how do

[NTG-context] Re: which parameter is for adjust the distance between items in a list?

2024-04-25 Thread Henning Hraban Ramm
Am 25.04.24 um 10:46 schrieb h...@hongfeng.ch: thank you. just tried, not worked out yet. Here it is my text: ``` setuplist[height=0] \startitemize[n] \item It's impossible --- don't waste my time. \item It's possible, but not worth doing. \item I said it was a good ideal all along.

[NTG-context] Re: which parameter is for adjust the distance between items in a list?

2024-04-25 Thread hf
thank you. just tried, not worked out yet. Here it is my text: ``` setuplist[height=0] \startitemize[n] \item It's impossible --- don't waste my time. \item It's possible, but not worth doing. \item I said it was a good ideal all along. \stopitemize ``` Now the distance between the items is

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

2024-04-25 Thread ai2472206007
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 [setupcounter]. I've defined the following sidenote command

[NTG-context] Re: which parameter is for adjust the distance between items in a list?

2024-04-25 Thread Henning Hraban Ramm
Am 25.04.24 um 10:20 schrieb h...@hongfeng.ch: which parameter in `\setuplist` is used for adjusting the distance between the items of a list? Usually it’s the general line height. You can use "inbetween=\blank[3pt]" to insert extra space. (Untested) Hraban

[NTG-context] which parameter is for adjust the distance between items in a list?

2024-04-25 Thread hf
which parameter in `\setuplist` is used for adjusting the distance between the items of a list? ___ 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: utiliydata

2024-04-25 Thread Thomas A. Schmitz
> > Nope, very sorry, can’t figure it out… I see job.register, I see I can access > structures.refrences.collected, but what about the next level > > utilitydata.structures.references.collected={ > [""]={ > [“REF"]={ > > What does the empty key do? And how do I retrieve the value of > >

[NTG-context] Re: utiliydata

2024-04-25 Thread Thomas A. Schmitz
> On 24. Apr 2024, at 17:59, Hans Hagen wrote: > > grep for "job." (i bet you can figure it out and compensate the embaressment > that way) > > Hans Nope, very sorry, can’t figure it out… I see job.register, I see I can access structures.refrences.collected, but what about the next level

[NTG-context] Re: what are the interaction between \showframe and \realpageno in \startuseMPgraphic ?

2024-04-24 Thread Wolfgang Schuster
garu...@azules.eu schrieb am 20.04.2024 um 23:00: I can not figure out why this progress bar only works when \showframe is activated. When you comment on \showframe, it's as if \realpageno is at zero. (current version: 2024.04.01 08:59) \showframe \startuseMPgraphic{MonGraphisme_MP}

[NTG-context] Re: documentation: parameters of \setuplist

2024-04-24 Thread Henning Hraban Ramm
Am 23.04.24 um 23:14 schrieb Wolfgang Schuster: Henning Hraban Ramm schrieb am 23.04.2024 um 21:43: Am 22.04.24 um 18:09 schrieb Henning Hraban Ramm: I tried to complete https://wiki.contextgarden.net/Command/setuplist, but I don’t understand all parameters. Can anyone explain these please:

[NTG-context] Re: documentation: parameters of \setuplist

2024-04-24 Thread Henning Hraban Ramm
Am 24.04.24 um 01:00 schrieb Bruce Horrocks: In the source there is a comment relating to location: %D Regular list entries are bound to a specific location in order to get the right %D pagenumber etc.\ associated. When pushing something inbetween (in mkiv) it ends %D up directtly in the

[NTG-context] Re: Why don't footnotes appear in floats or figures?

2024-04-24 Thread Pablo Rodriguez via ntg-context
On 4/24/24 02:15, Joel via ntg-context wrote: > [...] Any idea how I can get current footnote value? Hi Joel, current footnote value can be accessed with \rawcountervalue[footnote], such as in: \starttext \dorecurse{25} {\ \footnote{Footnote \recurselevel}:

[NTG-context] Re: utiliydata

2024-04-24 Thread Hans Hagen
On 4/24/2024 5:41 PM, Thomas A. Schmitz wrote: Hi all, I’m slightly embarrassed because this should be easy, but I can’t figure out how to do this: in the tuc/tua file, I have the complete references of my document. How can I access it from within my Lua code? For instance, something like

[NTG-context] utiliydata

2024-04-24 Thread Thomas A. Schmitz
Hi all, I’m slightly embarrassed because this should be easy, but I can’t figure out how to do this: in the tuc/tua file, I have the complete references of my document. How can I access it from within my Lua code? For instance, something like

[NTG-context] Re: documentation: parameters of \setuplist

2024-04-24 Thread Bruce Horrocks
> On 23 Apr 2024, at 20:43, Henning Hraban Ramm wrote: > > Am 22.04.24 um 18:09 schrieb Henning Hraban Ramm: >> I tried to complete https://wiki.contextgarden.net/Command/setuplist, but I >> don’t understand all parameters. >> Can anyone explain these please: >> * state (start stop): what

[NTG-context] Re: Why don't footnotes appear in floats or figures?

2024-04-23 Thread Joel via ntg-context
Okay, I've been trying many things with this \startpostponing code--if I understand what's happening, its moving the figures to a later page. I'm not sure that's quite ideal, its not fully working with my actual documents, and leaves lots of empty white space, when I'm already in a situation

[NTG-context] Re: documentation: parameters of \setuplist

2024-04-23 Thread Wolfgang Schuster
Henning Hraban Ramm schrieb am 23.04.2024 um 21:43: Am 22.04.24 um 18:09 schrieb Henning Hraban Ramm: I tried to complete https://wiki.contextgarden.net/Command/setuplist, but I don’t understand all parameters. Can anyone explain these please: * state (start stop): what does this

[NTG-context] Re: documentation: parameters of \setuplist

2024-04-23 Thread Henning Hraban Ramm
Am 22.04.24 um 18:09 schrieb Henning Hraban Ramm: I tried to complete https://wiki.contextgarden.net/Command/setuplist, but I don’t understand all parameters. Can anyone explain these please: * state (start stop): what does this en-/disable? collecting entries? * label (yes no none Name):

[NTG-context] Combine lua and btx setup, was: Re: Customize citation format of a bibliography (use the short form as reference format)

2024-04-23 Thread Gerion Entrup
Here is a solution for the first part of my question. This is based on https://www.mail-archive.com/ntg-context@ntg.nl/msg101156.html and try and error based on publ-imp-aps.mkvi and publ-imp-apa.mkvi: It display now the citation _and_ numbering labels in the short form: ```

[NTG-context] Re: Why are ConTeXt-SBL endnotes empty?

2024-04-22 Thread Joel via ntg-context
Changing location=none to location=text still left me with the bullet points appearing in a big list at the end of my chapter, but without any messages in them. On Monday, April 22, 2024 at 07:54:39 AM MDT, Joel via ntg-context wrote: A few years back, I tried using endnotes with

[NTG-context] Re: Why are ConTeXt-SBL endnotes empty?

2024-04-22 Thread Jean-Pierre Delange
See here : https://wiki.contextgarden.net/Footnotes Jean-Pierre > Le 22 avr. 2024 à 16:47, Pablo Rodriguez via ntg-context > a écrit : > > On 4/22/24 15:51, Joel via ntg-context wrote: >> A few years back, I tried using endnotes with ConTeXt-SBL, and it failed >> to compile. I'm forced to

[NTG-context] Re: documentation: parameters of \setuplist

2024-04-22 Thread Henning Hraban Ramm
Am 22.04.24 um 18:30 schrieb Duncan Hothersall: Hi Hraban, I can help with one - aligntitle means an unnumbered section will align in the table of contents under the number rather than the title. So for example if you have a TOC combining \section and \subject entries, they would look like

[NTG-context] Re: documentation: parameters of \setuplist

2024-04-22 Thread Duncan Hothersall
Hi Hraban, I can help with one - aligntitle means an unnumbered section will align in the table of contents under the number rather than the title. So for example if you have a TOC combining \section and \subject entries, they would look like this: 1 ... A section A subject rather than 1 ... A

[NTG-context] documentation: parameters of \setuplist

2024-04-22 Thread Henning Hraban Ramm
I tried to complete https://wiki.contextgarden.net/Command/setuplist, but I don’t understand all parameters. Can anyone explain these please: * state (start stop): what does this en-/disable? collecting entries? * label (yes no none Name): language dependent labels? as a prefix or what? *

[NTG-context] Re: Why are ConTeXt-SBL endnotes empty?

2024-04-22 Thread Pablo Rodriguez via ntg-context
On 4/22/24 15:51, Joel via ntg-context wrote: > A few years back, I tried using endnotes with ConTeXt-SBL, and it failed > to compile. I'm forced to try again (due to some other issue with > footnotes), and instead of compiling to error, it compiles, but the > footnote's message ends up being

[NTG-context] Why are ConTeXt-SBL endnotes empty?

2024-04-22 Thread Joel via ntg-context
A few years back, I tried using endnotes with ConTeXt-SBL, and it failed to compile. I'm forced to try again (due to some other issue with footnotes), and instead of compiling to error, it compiles, but the footnote's message ends up being empty.  Why is it appearing empty? Is there a fix?

[NTG-context] Re: Why don't footnotes appear in floats or figures?

2024-04-22 Thread vm via ntg-context
On 22/04/2024 14:38, Joel via ntg-context wrote: Is this the correct way to be using the \startpostponing code (see example below)? \starttext     \input knuth \startpostponing     \placefigure{Caption\footnote{message A}}{\externalfigure[cow][width=\textwidth]} \stoppostponing

[NTG-context] Re: minwidth not working ?

2024-04-22 Thread Denis Maier via ntg-context
> -Ursprüngliche Nachricht- > Von: Wolfgang Schuster > Gesendet: Samstag, 20. April 2024 11:56 > An: Denis Maier > Cc: mailing list for ConTeXt users ; denis.ma...@unibe.ch > Betreff: Re: [NTG-context] Re: minwidth not working ? > > Denis Maier schrieb am 19.04.2024 um 22:55: > > >>

  1   2   3   4   5   6   7   8   9   10   >