From: "Karsten Heymann" <karsten.heymann@googlemail.com>
Subject: how to write a section-like command (ignore following empty paragraphs)
Date: Sat, 18 Nov 2006 13:55:38 +0100 [thread overview]
Message-ID: <d0f4811b0611180455q71089fb0m3e08127b8eef7c73@mail.gmail.com> (raw)
Hello,
I try to create a \section-like command in that respect that following empty
lines are ignored. How do I have to change \SectionLike in the following example
to achieve that?
Yours,
Karsten
\setupindenting[medium]
\indenting[yes,next]
\setuphead[section][after={}]
\def\SectionLike#1{\blank\par {\bf #1}\par\noindent\ignorespaces}
\starttext
\section{A Text}
No empty line
Second Paragraph
\section{Another Text}
With an empty line
Second Paragraph
\SectionLike{A Text}
No empty line
Second Paragraph
\SectionLike{Another Text}
with an empty line
Second Paragraph
\stoptext
reply other threads:[~2006-11-18 12:55 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=d0f4811b0611180455q71089fb0m3e08127b8eef7c73@mail.gmail.com \
--to=karsten.heymann@googlemail.com \
--cc=ntg-context@ntg.nl \
/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).