ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: space before and after headlines
@ 2013-04-28 19:17 Jan Heinen
  0 siblings, 0 replies; 5+ messages in thread
From: Jan Heinen @ 2013-04-28 19:17 UTC (permalink / raw)
  To: ntg-context


>  What’s wrong with the \blank command?
>
>>>  \setuphead
>>>    [subject]
>>>   [before={\blank[2*big]},
>>>    after={\blank[big]},
>
>   before={\blank[26pt]},
>   after={\blank[13pt]}


Nothing wrong - everithing in best order. I didn't know that 
it's possible to use sizes with \blank.
I put the information into the wiki.

Thanx
Jannis
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: space before and after headlines
  2013-04-28 17:52 Jan Heinen
@ 2013-04-28 17:58 ` Wolfgang Schuster
  0 siblings, 0 replies; 5+ messages in thread
From: Wolfgang Schuster @ 2013-04-28 17:58 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 28.04.2013 um 19:52 schrieb Jan Heinen <JaHeinen@gmx.de>:

> It's working. I have put the example into the wiki.
> 
> What can be done to say: 26pt before the heading and 13pt after the heading instead of using \blank ?

What’s wrong with the \blank command?

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

  before={\blank[26pt]},
  after={\blank[13pt]},

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: space before and after headlines
@ 2013-04-28 17:52 Jan Heinen
  2013-04-28 17:58 ` Wolfgang Schuster
  0 siblings, 1 reply; 5+ messages in thread
From: Jan Heinen @ 2013-04-28 17:52 UTC (permalink / raw)
  To: ntg-context

It's working. I have put the example into the wiki.

What can be done to say: 26pt before the heading and 13pt 
after the heading instead of using \blank ?

>  \setuphead
>    [subject]
>   [before={\blank[2*big]},
>    after={\blank[big]},
>    style=bold]
>
>\starttext
>
>\subject{Headline 1}
>  \stoptext




___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: space before and after headlines
  2013-04-28 15:27 Jan Heinen
@ 2013-04-28 15:29 ` Wolfgang Schuster
  0 siblings, 0 replies; 5+ messages in thread
From: Wolfgang Schuster @ 2013-04-28 15:29 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

* space before and after headlines
@ 2013-04-28 15:27 Jan Heinen
  2013-04-28 15:29 ` Wolfgang Schuster
  0 siblings, 1 reply; 5+ messages in thread
From: Jan Heinen @ 2013-04-28 15:27 UTC (permalink / raw)
  To: ntg-context

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

Greetings
Jannis
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-04-28 19:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-28 19:17 space before and after headlines Jan Heinen
  -- strict thread matches above, loose matches on Subject: below --
2013-04-28 17:52 Jan Heinen
2013-04-28 17:58 ` Wolfgang Schuster
2013-04-28 15:27 Jan Heinen
2013-04-28 15:29 ` Wolfgang Schuster

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).