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
| www.pragma-ade.nl | www.pragma-pod.nl - > On Jun 26, 2022, at 18:32, Max Chernoff wrote: > > On 2022-06-26 9:59 a.m., Benjamin Buchmuller wrote: >> Hi Max, >> Thank you so much for your help and pointing me

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
character or hboxed group. I assume, this is because the hyphen is not counted and pushes the remainder to a new line where the intended breakpoint again starts another one. Unfortunately, I don't know what to change; I know a bit about "glyph" and "glue", but what is "disc&

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
2 2:14 PM, Benjamin Buchmuller wrote: >> Thanks, Hans, for the answer, but I'm not sure if I get the point. >> While this is possible in ConTeXt: >> \startsection[title={My Title}] >> \beginMyBlock >> bla bla >> \endMyBlock >> \stopsection >> The following wo

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 al

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
(For the record on the list, I attach a small res screenshot to illustrate the matter, description below; My apologies for any inconvenience.) On Aug 30, 2021, at 09:36, Benjamin Buchmuller wrote: Sorry, I've been probably a bit unclear. The file to look at is "test.pdf" (first

[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
mout", I get a "pdf" (error) and a "log" (some attached) now. Also, the blocks get recompiled with each run even if their content doesn't change which was the previous behavior. xxx-temp-vimR-0-error.log Description: Binary data xxx-temp-vimR-0.log Description: Binary

[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

[NTG-context] Getting the local float reference within a float and reuse (?) it later (\somelocalfloat?)

2021-07-22 Thread Benjamin Buchmuller
Hi, Is there a more convenient way to get the current reference label (stably) from within a float? For example, I would like to make an "image credits" section at the end of a document, so I do something similar to: \defineblock[credits] \starttext \section[sec:topic]{Topic}

[NTG-context] Extract bib entries used in a document

2021-07-15 Thread Benjamin Buchmuller
I was wondering if there is a way to get the internal bibliography manager to write out a .bib (or XML or Lua table) containing only the entries used in a document? Somewhat similar to BibTeX

Re: [NTG-context] Use \unit for value and uncertainty

2020-05-09 Thread Benjamin Buchmuller
I know this is quite an old thread, but here is a minimal parser (\units with an “s”) that wraps around \digits and \unit to produce an acceptable output. As I frequently need to write ranges (or measures of uncertainty), I find it convenient to able to type \units{4.0 to 5.0 centi meter}

Re: [NTG-context] mkiv digits/units zero padding not working

2020-05-07 Thread Benjamin Buchmuller
\stopxtablebody \stopxtable > On 7 May 2020, at 21:22, Benjamin Buchmuller > wrote: > > Hi Wolfgang, > > you are (of course) right again. I realised that I wouldn’t get the expected > behaviour after checking the snippet isolated from my documen

[NTG-context] mkiv \digits{2.0=} zero padding feature request

2020-05-07 Thread Benjamin Buchmuller
Hi, As Wolfgang has figured out, zero padding in \digits only works for trailing (and omitted) zeroes when immediately preceded by the decimal separator. It would be nice if this would work even if there is a number preceding, so that \digits{3.1=}x\crlf \digits{3.==}x\crlf \digits{3.14}x

Re: [NTG-context] mkiv digits/units zero padding not working

2020-05-07 Thread Benjamin Buchmuller
:00, Wolfgang Schuster > wrote: > > Benjamin Buchmuller schrieb am 07.05.2020 um 19:41: >> Hi Wolfang, >> Thank you for your reply. I have indeed not explained my intended result >> very clearly. >> 1. >> Primarily, I need to get the two values aligned at the d

Re: [NTG-context] mkiv digits/units zero padding not working

2020-05-07 Thread Benjamin Buchmuller
by . > On 7 May 2020, at 18:21, Wolfgang Schuster > wrote: > > Benjamin Buchmuller schrieb am 07.05.2020 um 17:31: >> Hi, >> I’m trying to get >> \digits{15.0=}±\digits{1.00} >> \digits{_8.12}±\digits{0.34} >> horizontally aligned as >> 15.0 ±1.00

[NTG-context] mkiv digits/units zero padding not working

2020-05-07 Thread Benjamin Buchmuller
Hi, I’m trying to get \digits{15.0=}±\digits{1.00} \digits{_8.12}±\digits{0.34} horizontally aligned as 15.0 ±1.00 8.12±0.34 But I get 15.0±1.00 8.12±0.34 instead. From the source (phys-dim.mkiv), I can see that “=“ should expand to \hphantom{0}. (I think \zeropoint in the table is

Re: [NTG-context] \placetable[location=split] reference ??

2020-05-07 Thread Benjamin Buchmuller
be different as soon as xtable tries to place them … Cheers \startplacetable[reference=tab1,title={A table},location=split] \startxtable[split=repeat] \startxrow \startxcell hi \stopxcell \stopxrow \stopxtable \stopplacetable > On 22 Apr 2020, at 21:10, Benjamin Buchmuller > wrote: > >

Re: [NTG-context] Basic font question (Optima, but no bold, no italics). Standalone ConTeXt does not work. TeX Live 2019 works

2020-04-26 Thread Benjamin Buchmuller
020, at 12:14, Benjamin Buchmuller > wrote: > > Hi Hraban, > > Thanks for the hint (and the proper fontfamily setup), I have forced reload > ten times now from various accounts; the issue persists unfortunately. > > This might confirm Taco‘s notion that there is some bug

Re: [NTG-context] Basic font question (Optima, but no bold, no italics). Standalone ConTeXt does not work. TeX Live 2019 works

2020-04-24 Thread Benjamin Buchmuller
of Dec/Jan three days ago, I suspect it is not because of a new feature in the OS, but rather an old feature in mtxrun or elsewhere having disappeared. > On 24. Apr 2020, at 11:35, Henning Hraban Ramm wrote: > > > >> Am 24.04.2020 um 11:13 schrieb Benjamin Buchmuller &g

Re: [NTG-context] Basic font question (Optima, but no bold, no italics). Standalone ConTeXt does not work. TeX Live 2019 works

2020-04-24 Thread Benjamin Buchmuller
Although this specific issue might have been solved meanwhile by the helpful suggestions of Wolfang, Thomas and others, I would like to point out that I have recently also encountered an odd behaviour of the mtxrun fontloader in the standalone, in which not all typefaces are available/properly

Re: [NTG-context] Hyphentation/Linebreak after x characters

2020-04-24 Thread Benjamin Buchmuller
4/23/2020 17:50, Wolfgang Schuster wrote: >> Benjamin Buchmuller schrieb am 23.04.2020 um 23:16: >>> Hi Rik, >>> >>> Thanks for the fast reply! Your example works indeed nicely. However, >>> within this solution my problem has shifted now (fully) towards

Re: [NTG-context] Hyphentation/Linebreak after x characters

2020-04-23 Thread Benjamin Buchmuller
Thanks Wolfgang, this works perfectly. I will add this hint tomorrow to the Wiki. > On 23 Apr 2020, at 23:50, Wolfgang Schuster > wrote: > > Benjamin Buchmuller schrieb am 23.04.2020 um 23:16: >> Hi Rik, >> Thanks for the fast reply! Your example works indeed

Re: [NTG-context] Hyphentation/Linebreak after x characters

2020-04-23 Thread Benjamin Buchmuller
pril 2020 at 21:46:59 CEST > To: ntg-context@ntg.nl, benjamin.buchmul...@gmail.com > > > > > On 4/23/2020 15:01, Benjamin Buchmuller wrote: >> Sorry, I have just realized that the problem might not be \WORD{} actually, >> so this one hyphenates: >> >> \define[2]\m

Re: [NTG-context] Hyphentation/Linebreak after x characters inside \WORD?

2020-04-23 Thread Benjamin Buchmuller
23 Apr 2020, at 20:46, Benjamin Buchmuller > wrote: > > Hi again, > > I am reading a CSV file into ConTeXt which contains long DNA sequences (>> 40 > characters) to place in xtables. So far, this works fine. However, I need to > uppercase the entries and need to \

[NTG-context] Hyphentation/Linebreak after x characters inside \WORD?

2020-04-23 Thread Benjamin Buchmuller
Hi again, I am reading a CSV file into ConTeXt which contains long DNA sequences (>> 40 characters) to place in xtables. So far, this works fine. However, I need to uppercase the entries and need to \tt them. When I do this inside \WORD however, they don’t hyphenate any more. I’m using:

[NTG-context] mtxrun fontloader in recent standalone

2020-04-22 Thread Benjamin Buchmuller
I’ve just updated to the most recent standalone ConTeXt ver: 2020.01.30 14:13 MKIV beta fmt: 2020.4.22 (LuaTeX 1.11.1) and I’m running now into troubles with system font indexing: mtxrun --script fonts --reload locates fonts in macOS directories appropriately (*.afm fonts placed in

[NTG-context] \placetable[location=split] reference ??

2020-04-22 Thread Benjamin Buchmuller
Hi, I would like to reference a table of the following structure. \starttext \startplacetable[reference=tab1,title={A table},location=split] \startxtable \startxrow \startxcell hi \stopxcell \stopxrow \stopxtable \stopplacetable In Table \in[tab1] \stoptext It has [location=split], which I

Re: [NTG-context] \placenamedfloat and \setuphead[aftersection=...] broken?

2020-04-03 Thread Benjamin Buchmuller
.) is simply not “converted" to \starthead ... \stophead before the next invocation of \head or the end of \stoptext? Cheers Benjamin > On 2 Apr 2020, at 19:51, Wolfgang Schuster > wrote: > > Benjamin Buchmuller schrieb am 02.04.2020 um 19:29: >> Potentially on the same

[NTG-context] \placenamedfloat and \setuphead[aftersection=...] broken?

2020-04-02 Thread Benjamin Buchmuller
Potentially on the same lines, placing delayed element seems currently not to work properly (or the syntax has changed?). I think these features of MkIV are very elegant and useful. I’m just wondering if they are/were temporarily not working (tried on 2019.12.27 16:34 MKIV beta and the Wiki’s

[NTG-context] \setupinteraction[style=...] supersedes manual text style for \note

2020-04-01 Thread Benjamin Buchmuller
For the following one, I’m not sure if this is the intended behaviour or not: I want to set up the “notation” and “note” style manually, which works great unless I also call \setupinteraction[state=start,style=normal] (or any other style), regardless of calling it before or after setting up

[NTG-context] placelistofsynonyms without tabulate

2020-03-30 Thread Benjamin Buchmuller
Following Aditya’s recommendation on making a glossary with ConTeXt (https://tex.stackexchange.com/questions/152248/make-a-glossary-with-context) and have looked through several older and newer manuals under “abbreviations” and into the source. However, I cannot figure out if there is a

[NTG-context] Changing default rule thickness (globally)

2020-03-25 Thread Benjamin Buchmuller
Hi! I would like to change the rule thickness that is used by default in ConTeXt. However, from the command documentation (http://www.pragma-ade.nl/general/qrcs/setup-en.pdf), I see that I would need to basically change this for \basegrid[rulethickness=...] \setupbar[rulethickness=...]

[NTG-context] \setupfooter[color=red]: red color spills with float over next page

2016-12-19 Thread Benjamin Buchmuller
Hi Hans, the patch solves the issue. Thank you for the fast reply. With regard to Pablo’s question: When I would not use crop in the MWE, apparently I would get the desired output indeed. However, in the situation I was using the command to produce a document, I would need to crop some parts

[NTG-context] \setupfooter[color=red]: red color spills with float over next page

2016-12-18 Thread Benjamin Buchmuller
Hi Hans, I finally managed to make a MWE. The issue is related to me using \clip{…} onto external figures I would like to crop in conjunction with a colored footer set-up: \starttext \setupfooter[color=red] \setupfootertexts [] [] [any

Re: [NTG-context] \setupfooter[color=red]: red color spills with float over next page

2016-12-04 Thread Benjamin Buchmuller
..@ntg.nl > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of ntg-context digest..." > Today's Topics: > > 1. \setupfooter[color=red]: red color spills with float over > next page (Benjamin Buchmuller) &

[NTG-context] \setupfooter[color=red]: red color spills with float over next page

2016-12-03 Thread Benjamin Buchmuller
When I have \setupfooter[color=red, style=bold] (same goes with \setupfooter[style=red]) and a tex text text % page breaks here after typesetting \startplacefigure[ %location=force, % no matter what I do here title={Caption.} ] … something … \stopplacefigure other

[NTG-context] Another question about definerefereformat

2016-11-13 Thread Benjamin Buchmuller
Here is another question, I was wondering about. What is the ConTeXt’s way to provide the “right” (or “left”) argument when \definereferenceformat[text=…] is set? Starting from this example: \starttext \definereferenceformat[infig][text={Figure }] \startplacefigure[reference=fig:A] Some

[NTG-context] Setupreferencing[interaction=text] breaks referenceformat[text={…}]

2016-11-13 Thread Benjamin Buchmuller
Hi, I’m not sure if this is the intended behaviour of the system, but I want to typeset “This is Figure 1.1 in Chapter A Good Story” in the attached minimal example. However, setting up the referencing interaction to text, this typesets “This is 1.1 in Chapter A Good Story”. The same holds

[NTG-context] “Case-insensitive” sorting for \placelistofsynonyms?

2014-05-29 Thread Benjamin Buchmuller
Hi list, according to case-insensitive sorting for \placeregister[…][…, method=…], I tried to figure out how to achieve similar results for \placelistofsynonyms (has method-key too). I tried this modified minimal example (that originally was proposed by Hans here: