ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Special Title
@ 2006-01-17 20:06 Andreas Wapf
  2006-01-17 23:11 ` Hans Hagen
  0 siblings, 1 reply; 2+ messages in thread
From: Andreas Wapf @ 2006-01-17 20:06 UTC (permalink / raw)


Hello

I'm searching a way to place a title on top of a new page with \title
and sometimes an additonal text (name of the author or something else)
directly under the title. But the main text should always start some
distance from the header and not from the title. Is this possible?

As an example:

with a little text:
header
----------
title 1
author x y

main text 4 new lines from the header


without the short text:

header
----------
title 1


main text 4 new lines from the header


Thanks,

Andreas

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

* Re: Special Title
  2006-01-17 20:06 Special Title Andreas Wapf
@ 2006-01-17 23:11 ` Hans Hagen
  0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2006-01-17 23:11 UTC (permalink / raw)


Andreas Wapf wrote:

> Hello
>
> I'm searching a way to place a title on top of a new page with \title
> and sometimes an additonal text (name of the author or something else)
> directly under the title. But the main text should always start some
> distance from the header and not from the title. Is this possible?
>
> As an example:
>
> with a little text:
> header
> ----------
> title 1
> author x y
>
> main text 4 new lines from the header
>
>
> without the short text:
>
> header
> ----------
> title 1
>
>
> main text 4 new lines from the header

\vbox to 4\lineheight \bgroup
       title 1
       author x y
      \vfill
\egroup

will do that; ok, you may add some strutdepth or so:

\vbox to 4\lineheight \bgroup
       title 1
       author x y
      \vfill
\egroup
\vskip-\prevdepth
\vskip-\lineheight
\strut \par

you can also use \framed[lines=4,align=normal]{...}

Hans

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

end of thread, other threads:[~2006-01-17 23:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-17 20:06 Special Title Andreas Wapf
2006-01-17 23:11 ` Hans Hagen

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