* how to write a section-like command (ignore following empty paragraphs)
@ 2006-11-18 12:55 Karsten Heymann
0 siblings, 0 replies; only message in thread
From: Karsten Heymann @ 2006-11-18 12:55 UTC (permalink / 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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-11-18 12:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-11-18 12:55 how to write a section-like command (ignore following empty paragraphs) Karsten Heymann
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).