From: Benjamin Buchmuller via ntg-context <ntg-context@ntg.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: Benjamin Buchmuller <benjamin.buchmuller@gmail.com>
Subject: How to check if buffer or block has content
Date: Mon, 2 Aug 2021 16:19:49 +0200 [thread overview]
Message-ID: <D620CBF7-8517-481D-9871-C2945C392CD6@gmail.com> (raw)
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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
next reply other threads:[~2021-08-02 14:19 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-02 14:19 Benjamin Buchmuller via ntg-context [this message]
2021-08-02 14:43 ` Aditya Mahajan via ntg-context
2021-08-02 15:17 ` Hans Hagen via ntg-context
2021-08-02 16:21 ` Hans van der Meer via ntg-context
2021-08-02 16:28 ` Wolfgang Schuster via ntg-context
2021-08-02 16:31 ` Wolfgang Schuster via ntg-context
2021-08-03 7:35 ` Hans Hagen via ntg-context
[not found] <mailman.1176.1627917453.1143.ntg-context@ntg.nl>
2021-08-02 18:54 ` Benjamin Buchmuller via ntg-context
2021-08-03 12:26 ` Hans Hagen via ntg-context
2021-08-03 15:02 ` Hans Hagen via ntg-context
2021-08-03 17:51 ` Benjamin Buchmuller via ntg-context
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=D620CBF7-8517-481D-9871-C2945C392CD6@gmail.com \
--to=ntg-context@ntg.nl \
--cc=benjamin.buchmuller@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).