2 Aug
2021
2 Aug
'21
2:43 p.m.
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 want to avoid headlines with empty sections.
There may be more efficient ways to do it (since buffers are stored at the lua end), but you can always do \doiftextelse(\getbuffer[...]} to test it buffer creates any output. Aditya