ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: space before and after headlines
Date: Sun, 28 Apr 2013 17:29:25 +0200	[thread overview]
Message-ID: <A91D7238-D882-4A95-BB3C-D9B1A0B47F8F@gmail.com> (raw)
In-Reply-To: <517D3FC5.9030909@gmx.de>


Am 28.04.2013 um 17:27 schrieb Jan Heinen <JaHeinen@gmx.de>:

> I want to create a macro for headlines.
> - before the headline there should be a big space
> - after it a small space
> - when  the headline is at the beginning of the page there shouls be no space before the headline.
> 
> A workaround could be this - although it's not very comfortable:
> 
> 
> \starttext
> 
> {bf Headline 1}
> \blank
> text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text .\par
> 
> \blank[2*big]
> {bf Headline 2}
> \blank
> text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text .\par
> 
> \blank[2*big]
> {bf Headline 3}
> \blank
> text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text .\par
> 
> \stoptext

\setuphead
  [subject]
  [before={\blank[2*big]},
   after={\blank[big]},
   style=bold]

\starttext

\subject{Headline 1}

…

\stoptext

Wolfgang
___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


  reply	other threads:[~2013-04-28 15:29 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-28 15:27 Jan Heinen
2013-04-28 15:29 ` Wolfgang Schuster [this message]
2013-04-28 17:52 Jan Heinen
2013-04-28 17:58 ` Wolfgang Schuster
2013-04-28 19:17 Jan Heinen

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=A91D7238-D882-4A95-BB3C-D9B1A0B47F8F@gmail.com \
    --to=schuster.wolfgang@gmail.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).