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

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

2021-08-02 Thread Wolfgang Schuster via ntg-context
Hans Hagen via ntg-context schrieb am 02.08.2021 um 17:17: On 8/2/2021 4:43 PM, Aditya Mahajan via ntg-context wrote: On Mon, 2 Aug 2021, Benjamin Buchmuller via ntg-context wrote: Hi, How can I check if a buffer or block has content (or is empty) before a \useblocks or \getbuffer

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

2021-08-02 Thread Wolfgang Schuster via ntg-context
Hans van der Meer via ntg-context schrieb am 02.08.2021 um 18:21: And in pathological cases where even this does not work (as I encountered a few days ago): \setbox\scratchbox=\vboxx{content}\ifdim\wd\scratchbox>\zeropoint .. \else .. \fi This is how \doiftext works but it uses a \hbox.

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

2021-08-02 Thread Hans van der Meer via ntg-context
And in pathological cases where even this does not work (as I encountered a few days ago): \setbox\scratchbox=\vboxx{content}\ifdim\wd\scratchbox>\zeropoint .. \else .. \fi dr. Hans van der Meer > On 2 Aug 2021, at 17:17, Hans Hagen via ntg-context > wrote: > > On 8/2/2021 4:43 PM, Aditya

Re: [NTG-context] using a red frame as an overlay

2021-08-02 Thread Hans Hagen via ntg-context
On 8/2/2021 1:38 PM, Jeong Dal via ntg-context wrote: Hi, I used red frame which is in the metafun manual for long time. But it is not working now. Here is a MWE and a part of the log file. What should I change in the definitions? just update I am using "ConTeXt  ver: 2021.07.10 21:51 LMTX  

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

2021-08-02 Thread Hans Hagen via ntg-context
On 8/2/2021 4:43 PM, Aditya Mahajan via ntg-context wrote: On Mon, 2 Aug 2021, Benjamin Buchmuller via ntg-context wrote: 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

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

2021-08-02 Thread Aditya Mahajan via ntg-context
On Mon, 2 Aug 2021, Benjamin Buchmuller via ntg-context wrote: > 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

[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] using a red frame as an overlay

2021-08-02 Thread Jeong Dal via ntg-context
Hi, I used red frame which is in the metafun manual for long time. But it is not working now. Here is a MWE and a part of the log file. What should I change in the definitions? I am using "ConTeXt ver: 2021.07.10 21:51 LMTX fmt: 2021.7.12 int: english/english”. framed Text with

Re: [NTG-context] Strange new behaviour of the mailing list

2021-08-02 Thread Taco Hoekwater via ntg-context
Hi, > On 31 Jul 2021, at 15:56, Henning Hraban Ramm via ntg-context > wrote: > > > Ah, I didn’t recognize you mean this. > > Since the mail goes through the mailing list software, the sender must not be > the original sender any more – ntg.nl is not allowed to send emails for a > different

Re: [NTG-context] placefigure, usetikzlibrary and readfile

2021-08-02 Thread Hans Hagen via ntg-context
On 8/1/2021 10:27 PM, Jigé via ntg-context wrote: Hello all. It seems that \usetikzlibrary is sometimes read, sometimes not, and I don't understand why. Rationale: I would like, using one file, to use it to produce a picture, as with LaTeX's Standalone class, but to be able to include it in