ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Headers / footers. Enhancement requests?
@ 2002-01-16 16:06 Giuseppe Bilotta
  2002-01-17 13:35 ` Taco Hoekwater
  2002-01-20 21:04 ` Hans Hagen
  0 siblings, 2 replies; 9+ messages in thread
From: Giuseppe Bilotta @ 2002-01-16 16:06 UTC (permalink / raw)


Hello,

this comes out from a couple of question on ConTeXt header/footer
setups on the Italian TeX newsgroup. It basically turns into two
'enhancement request':

(1) ability to define left, middle and right header/footer-texts:
currently I can define EITHER left & right OR middle, but not all
of them. Maybe a syntax like

\setupheadertexts[left=pagenumber,right=chapter,middle=date]

in addition to the preexistent one.

(2) frame stuff attached to the header and footer both as a whole
and as separate 'blocks' (left, middle, right).

I need (2) basically to add a rule under the header, which by
now I must add using something like

\def\HFLine{\hskip\marginwidth\hskip\margindistance%
            \vrule height 10pt depth -9.8pt width\textwidth}
\setupheader[after=\HFLine]

which doesn't sound very ConTeXtish. Boxing/framing would allow
for interesting effects with not too much effort.

--
Giuseppe "Oblomov" Bilotta


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

* Re: Headers / footers. Enhancement requests?
  2002-01-16 16:06 Headers / footers. Enhancement requests? Giuseppe Bilotta
@ 2002-01-17 13:35 ` Taco Hoekwater
  2002-01-17 13:55   ` Re[2]: " Giuseppe Bilotta
  2002-01-20 21:04 ` Hans Hagen
  1 sibling, 1 reply; 9+ messages in thread
From: Taco Hoekwater @ 2002-01-17 13:35 UTC (permalink / raw)
  Cc: ntg-context

On Wed, 16 Jan 2002 17:06:12 +0100
"Giuseppe Bilotta" <bourbaki@bigfoot.com> wrote:

> Hello,
> 
> this comes out from a couple of question on ConTeXt header/footer
> setups on the Italian TeX newsgroup. It basically turns into two
> 'enhancement request':
> 
> (1) ability to define left, middle and right header/footer-texts:
> currently I can define EITHER left & right OR middle, but not all
> of them. Maybe a syntax like
> 
> \setupheadertexts[left=pagenumber,right=chapter,middle=date]

Then I would go for:

\setupheadertexts[left][middle][right]
                 [left][middle][right]

Or so.

> (2) frame stuff attached to the header and footer both as a whole
> and as separate 'blocks' (left, middle, right).

I want this as too. :)

-- 
groeten,

Taco


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

* Re[2]: Headers / footers. Enhancement requests?
  2002-01-17 13:35 ` Taco Hoekwater
@ 2002-01-17 13:55   ` Giuseppe Bilotta
  2002-01-20 20:20     ` Hans Hagen
  0 siblings, 1 reply; 9+ messages in thread
From: Giuseppe Bilotta @ 2002-01-17 13:55 UTC (permalink / raw)
  Cc: ntg-context

Thursday, January 17, 2002 Taco Hoekwater wrote:
>> (1) ability to define left, middle and right header/footer-texts:
>> currently I can define EITHER left & right OR middle, but not all
>> of them. Maybe a syntax like
>> 
>> \setupheadertexts[left=pagenumber,right=chapter,middle=date]

TH> Then I would go for:

TH> \setupheadertexts[left][middle][right]
TH>                  [left][middle][right]

This would be fine if you use all six fields, but if you only use
three (as in same layout for both odd and even pages), this would break
backwards compatibility (three fields are now used for something
else); unless there is some way to determine what the meaning of
the fields are.

TH> Or so.


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

* Re[2]: Headers / footers. Enhancement requests?
  2002-01-17 13:55   ` Re[2]: " Giuseppe Bilotta
@ 2002-01-20 20:20     ` Hans Hagen
  2002-01-21 15:27       ` Re[3]: " Giuseppe Bilotta
  0 siblings, 1 reply; 9+ messages in thread
From: Hans Hagen @ 2002-01-20 20:20 UTC (permalink / raw)
  Cc: Taco Hoekwater, ntg-context

At 11:55 PM 1/17/2002 +0100, Giuseppe Bilotta wrote:

> >> \setupheadertexts[left=pagenumber,right=chapter,middle=date]
>
>TH> Then I would go for:

Ah, it surpises me that source code loving taco and mr. bigfoot did not 
find the answer in the source

\setupheader
   [  lefttext=...,
     righttext=...,
    middletext=...,
    margintext=...,
      edgetext=...]

an optional first arg can be used to specify the five horizontal areas

Hans

-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
                                   fall-back web server: 
www.pragma-pod.nl
-------------------------------------------------------------------------


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

* Re: Headers / footers. Enhancement requests?
  2002-01-16 16:06 Headers / footers. Enhancement requests? Giuseppe Bilotta
  2002-01-17 13:35 ` Taco Hoekwater
@ 2002-01-20 21:04 ` Hans Hagen
  2002-01-21 15:03   ` Re[2]: " Giuseppe Bilotta
  1 sibling, 1 reply; 9+ messages in thread
From: Hans Hagen @ 2002-01-20 21:04 UTC (permalink / raw)
  Cc: ntg-context

At 02:06 AM 1/17/2002 +0100, Giuseppe Bilotta wrote:

>(1) ability to define left, middle and right header/footer-texts:
>currently I can define EITHER left & right OR middle, but not all
>of them. Maybe a syntax like
>
>\setupheadertexts[left=pagenumber,right=chapter,middle=date]
>
>in addition to the preexistent one.

see other mail

>(2) frame stuff attached to the header and footer both as a whole
>and as separate 'blocks' (left, middle, right).
>
>I need (2) basically to add a rule under the header, which by
>now I must add using something like
>
>\def\HFLine{\hskip\marginwidth\hskip\margindistance%
>             \vrule height 10pt depth -9.8pt width\textwidth}
>\setupheader[after=\HFLine]
>
>which doesn't sound very ConTeXtish. Boxing/framing would allow
>for interesting effects with not too much effort.

Of course we can cook up an unreadable syntax for defining such lines, but 
then your friends start asking for other things, so how aboutthe followingm 
very contexy way:

\setuplayout
   [margin=1cm,header=14pt,headerdistance=6pt]

\setupheadertexts
   [oeps][oeps]

\startuseMPgraphic{page}
   StartPage ;
     draw
       llcorner Field[LeftMargin][Header] --
       lrcorner Field[Text]      [Header] ;
   StopPage ;
\stopuseMPgraphic

\defineoverlay[page][\useMPgraphic{page}]
\setupbackgrounds[page][background=page]

\starttext \input tufte \stoptext

this way you can make any line (straight, bend, with ornaments, etc) you want

Hans

-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
                                   fall-back web server: 
www.pragma-pod.nl
-------------------------------------------------------------------------


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

* Re[2]: Headers / footers. Enhancement requests?
  2002-01-20 21:04 ` Hans Hagen
@ 2002-01-21 15:03   ` Giuseppe Bilotta
  0 siblings, 0 replies; 9+ messages in thread
From: Giuseppe Bilotta @ 2002-01-21 15:03 UTC (permalink / raw)
  Cc: ntg-context

Sunday, January 20, 2002 Hans Hagen wrote:

>>(2) frame stuff attached to the header and footer both as a whole
>>and as separate 'blocks' (left, middle, right).

HH> Of course we can cook up an unreadable syntax for defining
HH> such lines, but then your friends start asking for other
HH> things, so how aboutthe followingm very contexy way:

[snip]

HH> \starttext \input tufte \stoptext

HH> this way you can make any line (straight, bend, with ornaments, etc) you want

Well that's a nice thing to know! Thanks.

--
Giuseppe "Oblomov" Bilotta


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

* Re[3]: Headers / footers. Enhancement requests?
  2002-01-20 20:20     ` Hans Hagen
@ 2002-01-21 15:27       ` Giuseppe Bilotta
  2002-01-22 10:09         ` Hans Hagen
  0 siblings, 1 reply; 9+ messages in thread
From: Giuseppe Bilotta @ 2002-01-21 15:27 UTC (permalink / raw)
  Cc: ntg-context

Sunday, January 20, 2002 Hans Hagen wrote:

HH> At 11:55 PM 1/17/2002 +0100, Giuseppe Bilotta wrote:

>> >> \setupheadertexts[left=pagenumber,right=chapter,middle=date]
>>
>>TH> Then I would go for:

HH> Ah, it surpises me that source code loving taco and mr. bigfoot did not 
HH> find the answer in the source

HH> \setupheader
HH>    [  lefttext=...,
HH>      righttext=...,
HH>     middletext=...,
HH>     margintext=...,
HH>       edgetext=...]

HH> an optional first arg can be used to specify the five horizontal areas

Uhm. That's not exactly the same: you cannot simply use
pagenumber, chapter, section etc as you would with

\setupheadertexts[pagenumber][chapter]

--
Giuseppe "Oblomov" Bilotta


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

* Re[3]: Headers / footers. Enhancement requests?
  2002-01-21 15:27       ` Re[3]: " Giuseppe Bilotta
@ 2002-01-22 10:09         ` Hans Hagen
  2002-01-22 11:51           ` Re[4]: " Giuseppe Bilotta
  0 siblings, 1 reply; 9+ messages in thread
From: Hans Hagen @ 2002-01-22 10:09 UTC (permalink / raw)
  Cc: Hans Hagen, ntg-context

At 04:27 PM 1/21/2002 +0100, Giuseppe Bilotta wrote:

>Sunday, January 20, 2002 Hans Hagen wrote:
>
>HH> At 11:55 PM 1/17/2002 +0100, Giuseppe Bilotta wrote:
>
> >> >> \setupheadertexts[left=pagenumber,right=chapter,middle=date]
> >>
> >>TH> Then I would go for:
>
>HH> Ah, it surpises me that source code loving taco and mr. bigfoot did not
>HH> find the answer in the source
>
>HH> \setupheader
>HH>    [  lefttext=...,
>HH>      righttext=...,
>HH>     middletext=...,
>HH>     margintext=...,
>HH>       edgetext=...]
>
>HH> an optional first arg can be used to specify the five horizontal areas
>
>Uhm. That's not exactly the same: you cannot simply use
>pagenumber, chapter, section etc as you would with
>
>\setupheadertexts[pagenumber][chapter]

well, but you can assign \pagenumer and \getmarking to achieve the same result

Hans

-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
                                   fall-back web server: 
www.pragma-pod.nl
-------------------------------------------------------------------------


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

* Re[4]: Headers / footers. Enhancement requests?
  2002-01-22 10:09         ` Hans Hagen
@ 2002-01-22 11:51           ` Giuseppe Bilotta
  0 siblings, 0 replies; 9+ messages in thread
From: Giuseppe Bilotta @ 2002-01-22 11:51 UTC (permalink / raw)
  Cc: ntg-context

Tuesday, January 22, 2002 Hans Hagen wrote:

>>Uhm. That's not exactly the same: you cannot simply use
>>pagenumber, chapter, section etc as you would with
>>
>>\setupheadertexts[pagenumber][chapter]

HH> well, but you can assign \pagenumer and \getmarking to achieve the same result

Right.

--
Giuseppe "Oblomov" Bilotta


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

end of thread, other threads:[~2002-01-22 11:51 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-16 16:06 Headers / footers. Enhancement requests? Giuseppe Bilotta
2002-01-17 13:35 ` Taco Hoekwater
2002-01-17 13:55   ` Re[2]: " Giuseppe Bilotta
2002-01-20 20:20     ` Hans Hagen
2002-01-21 15:27       ` Re[3]: " Giuseppe Bilotta
2002-01-22 10:09         ` Hans Hagen
2002-01-22 11:51           ` Re[4]: " Giuseppe Bilotta
2002-01-20 21:04 ` Hans Hagen
2002-01-21 15:03   ` Re[2]: " Giuseppe Bilotta

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