Re: [NTG-context] setupregister with realpage?

2022-09-23 Thread Benjamin Buchmuller via ntg-context
en wrote: > > On 9/23/2022 11:08 PM, Benjamin Buchmuller via ntg-context wrote: >> Dear list, >> \setuplist has the convenient option [pagenumber=realpage] >> \setupregister has not (yet). >> How can I get the realpagenumber instead of the userpagenumber for the &g

[NTG-context] setupregister with realpage?

2022-09-23 Thread Benjamin Buchmuller via ntg-context
Dear list, \setuplist has the convenient option [pagenumber=realpage] \setupregister has not (yet). How can I get the realpagenumber instead of the userpagenumber for the register indices? I tried \def\MyPageCommand#1{\realpagenumber} \setupregister[MyIndex][pagecommand=\MyPageCommand] but

Re: [NTG-context] Count (and limit) glyphs per line?

2022-07-18 Thread Benjamin Buchmuller via ntg-context
Dear Hans, This is the friendly reminder you requested for the "crappyspecs" parbuilder as per your example in early July. With ConTeXt ver: 2022.07.06 21:42 LMTX fmt: 2022.7.8 I get tex error > tex error on line 12 in file ./test-wrapping2.tex: Undefined control sequence

Re: [NTG-context] Count (and limit) glyphs per line?

2022-06-26 Thread Benjamin Buchmuller via ntg-context
I completely agree, Hans, that such specifications are often made without a second thought on them. And Max is probably right that they originated from the typewriter area. In a sense these "challenges" can be at least somewhat educational. I've learnt---also thanks to Max's suggestions---a

Re: [NTG-context] Count (and limit) glyphs per line?

2022-06-26 Thread Benjamin Buchmuller via ntg-context
Hi Max, Thank you so much for your help and pointing me to the documents; always a lot of things to learn in TeX! I'm afraid that including the hyphen width doesn't solve the issue yet. It seems to move the problem to other parts of the text. My guess is that one could equivalently have said

Re: [NTG-context] Count (and limit) glyphs per line?

2022-06-25 Thread Benjamin Buchmuller via ntg-context
Dear list, A brief follow-up for (1) itemizations [resolved; but question on ConTeXt hsize defaults] and (2) hyphenation [troubles]. (1) To deal with itemizations and other situation where texts are indented such as: \setuppapersize[landscape,letter] \showframe \starttext

Re: [NTG-context] Count (and limit) glyphs per line?

2022-06-25 Thread Benjamin Buchmuller via ntg-context
Wow, that works like a charm! Thank you, Max! It's also a very insightful example of how to use and inject Lua code in the TeX output routine. Do you mind if I add it to the wiki? (Probably under "Wrapping".) Many thanks again! Benjamin > On Jun 24, 2022, at 01:44, Max Chernoff wrote: >

[NTG-context] Count (and limit) glyphs per line?

2022-06-23 Thread Benjamin Buchmuller via ntg-context
Dear list, I've been confronted with the following 'intriguing' formatting requirement for a document: " • Type density: Must be no more than 15 characters per linear inch (including characters and spaces). • Line spacing: Must be no more than six lines per vertical inch. " While the line

Re: [NTG-context] How to make \def accept block or buffer as part of (long) command argument

2022-01-02 Thread Benjamin Buchmuller via ntg-context
Uff, this is indeed deep tex. Thanks a lot for the example, Hans! I still need to learn a lot. After a walk and a bit of fresh air, I found another (much easier) way around my problem. This works since I don't need to deal with #2 in any special way: \tolerant\def\startMyCommand[#1]% {

Re: [NTG-context] How to make \def accept block or buffer as part of (long) command argument

2022-01-02 Thread Benjamin Buchmuller via ntg-context
in commands. (To add: Even when passed as arguments during compilation?) Many Thanks again! Benjamin > On Jan 2, 2022, at 12:19, Hans Hagen wrote: > > On 1/2/2022 11:47 AM, Benjamin Buchmuller via ntg-context wrote: >> Hi list, >> I'm playing around with blocks and buf

[NTG-context] How to make \def accept block or buffer as part of (long) command argument

2022-01-02 Thread Benjamin Buchmuller via ntg-context
Hi list, I'm playing around with blocks and buffers again, realizing that I cannot use them inbetween a \start...\stop that I defined myself. Apparently, they work between \startsection...\stopsection and the like, so I was wondering how I should define or expand #2 in the MWE below to make

[NTG-context] Dangerous bends symbol in manfnt.afm accidentally chopped by LMTX?

2022-01-02 Thread Benjamin Buchmuller via ntg-context
Hi list, using this example from the wiki, the dbend symbol appears cropped on the left side on my machine (ConTeXt ver: 2021.12.10 11:41 LMTX fmt: 2021.12.14), but not on the ConTeXt live server? Any possible reasons? \definefontsynonym [bends] [file:manfnt.afm] \startsymbolset [Dangerous

Re: [NTG-context] Problem with \head inside \itemize

2021-12-23 Thread Benjamin Buchmuller via ntg-context
Thanks, Wolfgang, perfectly works! I added an example to the Wiki. > On Dec 21, 2021, at 18:03, Wolfgang Schuster > wrote: > > Benjamin Buchmuller via ntg-context schrieb am 21.12.2021 um 14:04: >> Not sure if this is the behavior to expect, but I would like to get >>

Re: [NTG-context] Problem with \head inside \itemize

2021-12-21 Thread Benjamin Buchmuller via ntg-context
Not sure if this is the behavior to expect, but I would like to get formatted inline headers in itemize like: – Unformatted item. – *Head One.* Something bla bla. – *Head Two.* Other bla bla. From: \setupitemize[each][2, headintext] %

Re: [NTG-context] Title for tabulate

2021-12-16 Thread Benjamin Buchmuller via ntg-context
Yes, this works! Thanks! I'll try to add a section on the Wiki. Is there a reason why the second approach works while the other doesn't? > On Dec 16, 2021, at 12:46, Hans Hagen wrote: > > On 12/16/2021 11:39 AM, Benjamin Buchmuller wrote: >> Thanks again, Hans, for all the different

Re: [NTG-context] Title for tabulate

2021-12-16 Thread Benjamin Buchmuller via ntg-context
19:16, Hans Hagen wrote: > > On 12/14/2021 6:16 PM, Benjamin Buchmuller via ntg-context wrote: >> Hi! >> I'd like to follow up on a problem that Denis came across recently with the >> titles argument in tabulate. (It's more a solution than a question, but any >

Re: [NTG-context] Title for tabulate

2021-12-14 Thread Benjamin Buchmuller via ntg-context
Hi! I'd like to follow up on a problem that Denis came across recently with the titles argument in tabulate. (It's more a solution than a question, but any hints to improve the answer are welcome.) I wanted to use this argument for an easy specification of, well, a title for a "recipe". The

Re: [NTG-context] Line breaks, \wordright and hyphenation

2021-10-24 Thread Benjamin Buchmuller via ntg-context
Maybe \hfill author ? > On 24. Oct 2021, at 04:12, kauśika cittūr wrote: > > Dear list, > > In short, my question is: why does \wordright cause a line-break when the > line > preceding it breaks with hyphenation and does not otherwise? How to avoid it > (if at all possible)? > > I have

Re: [NTG-context] Gradient fill in embedded pdf disappear in externalfigure (on regular pages)

2021-08-30 Thread Benjamin Buchmuller via ntg-context
How odd; Then it must be related to my viewer here ... I was just surprised to literally see two different outcomes with the \startTEXpage and without. Maybe it has to do with some sort of "nesting" in the PDF that is not handled correctly at the PDF viewer's end. I'll test again on a

Re: [NTG-context] Gradient fill in embedded pdf disappear in externalfigure (on regular pages)

2021-08-30 Thread Benjamin Buchmuller via ntg-context
like to do eventually) both gradients disappear. However, when I use \startTEXpage ... \stopTEXpage around the \externalfigure, everything looks and prints fine. > On Aug 30, 2021, at 08:54, Hans Hagen wrote: > > On 8/30/2021 7:03 AM, Benjamin Buchmuller via ntg-context wrote: >&

[NTG-context] Gradient fill in embedded pdf disappear in externalfigure (on regular pages)

2021-08-29 Thread Benjamin Buchmuller via ntg-context
Hello list, I have noticed that some gradients get lost when embedding an external figure from a pdf (Preview and Acrobat DC and in printer), although the original pdf works fine for me. It seems to occur with color-to-color gradients (but not all), but not with color-to-alpha ones. While

Re: [NTG-context] lmtx update/t-vim (again)

2021-08-23 Thread Benjamin Buchmuller via ntg-context
data xxx-temp-vimR-1.log Description: Binary data > On Aug 23, 2021, at 08:19, Hans Hagen wrote: > > On 8/23/2021 12:10 AM, Benjamin Buchmuller via ntg-context wrote: >> Hi, >> Thanks for having had a look into the t-vim. >> At least the document compiles fine (I get

[NTG-context] lmtx update

2021-08-22 Thread Benjamin Buchmuller via ntg-context
Hi, Here is another thing which worked previously for me: ConTeXt ver: 2021.07.30 00:57 LMTX fmt: 2021.8.8 int: english/english Now: ConTeXt ver: 2021.08.22 11:54 LMTX fmt: 2021.8.22 int: english/english Error: lua error: registered function call [396]:

[NTG-context] lmtx update/t-vim (again)

2021-08-22 Thread Benjamin Buchmuller via ntg-context
Hi, Thanks for having had a look into the t-vim. At least the document compiles fine (I get a PDF), although multiple complaints from the lua end when I use "$" or "#" in my source, for example #!/usr/bin/bash etc. culminating in Sorry, but I'm not programmed to handle this case; I'll

Re: [NTG-context] new upload/issue with t-vim?

2021-08-08 Thread Benjamin Buchmuller via ntg-context
I'm not sure if it's related to this latest: ConTeXt ver: 2021.08.07 22:53 LMTX fmt: 2021.8.8 int: english/english or a previous one, but with this one: ConTeXt ver: 2021.07.30 00:57 LMTX fmt: 2021.8.8 int: english/english My document compiled fine. When I use the t-vim module (freshly

Re: [NTG-context] How to check if buffer or block has content

2021-08-03 Thread Benjamin Buchmuller via ntg-context
Wow, that's powerful! I'll add the wiki entries later tonight. Thanks a lot! > On Aug 3, 2021, at 17:02, Hans Hagen wrote: > > On 8/2/2021 8:54 PM, Benjamin Buchmuller via ntg-context wrote: >> That's great, I wikified a Note for testing if a buffer exists or has &g

Re: [NTG-context] How to check if buffer or block has content

2021-08-02 Thread Benjamin Buchmuller via ntg-context
That's great, I wikified a Note for testing if a buffer exists or has content (using the \getbuffer[…] approach for the moment). If I was asked, I'd opt for \doifelseemptybuffer (doifemptyelse?) since one could think of similar commands that test for empty "objects". Is there an option for

[NTG-context] How to check if buffer or block has content

2021-08-02 Thread Benjamin Buchmuller via ntg-context
Hi, How can I check if a buffer or block has content (or is empty) before a \useblocks or \getbuffer statement? I would like to typeset a headline only if the buffer/block has been used in a particular section and want to avoid headlines with empty sections. Thanks! Benjamin