ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Multi-line headers
@ 2009-04-08  0:26 Design Department
  2009-04-08  8:42 ` Wolfgang Schuster
  0 siblings, 1 reply; 12+ messages in thread
From: Design Department @ 2009-04-08  0:26 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 328 bytes --]

I need a multi-line header in the right page corner, with content
right-aligned.
\setupheadertexts[nothing on left][line 1 \par line 2] doesn't work.

Is using a \vbox the correct method of handling this?
If so, how?

\setupheadertexts[nothing on left][\vbox{line 1 \blank line 2] puts the
header in the left corner.

-- 
david

[-- Attachment #1.2: Type: text/html, Size: 451 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 bytes --]

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

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

* Re: Multi-line headers
  2009-04-08  0:26 Multi-line headers Design Department
@ 2009-04-08  8:42 ` Wolfgang Schuster
  2009-04-08 14:19   ` Design Department
  0 siblings, 1 reply; 12+ messages in thread
From: Wolfgang Schuster @ 2009-04-08  8:42 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 08.04.2009 um 02:26 schrieb Design Department:

> I need a multi-line header in the right page corner, with content  
> right-aligned.
>
> \setupheadertexts[nothing on left][line 1 \par line 2] doesn't work.
>
> Is using a \vbox the correct method of handling this?
> If so, how?
>
> \setupheadertexts[nothing on left][\vbox{line 1 \blank line 2] puts  
> the header in the left corner.


\setupheadertexts[nothing on left] 
[{\framed[frame=off,width=fit,align=right]{line1\\line2}}]

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


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

* Re: Multi-line headers
  2009-04-08  8:42 ` Wolfgang Schuster
@ 2009-04-08 14:19   ` Design Department
  2009-04-08 14:28     ` Wolfgang Schuster
  2009-04-08 14:41     ` Aditya Mahajan
  0 siblings, 2 replies; 12+ messages in thread
From: Design Department @ 2009-04-08 14:19 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 544 bytes --]

On Wed, Apr 8, 2009 at 2:42 AM, Wolfgang Schuster <
schuster.wolfgang@googlemail.com> wrote:

> \setupheadertexts[nothing on
> left][{\framed[frame=off,width=fit,align=right]{line1\\line2}}]
>
> Wolfgang


Thanks Wolfgang.
Not quite correct yet, though.

The individual lines in your example are aligned flush-left in a box that is
on the right of the page.
I need lines that are aligned flush-right in the box on the right of the
page - the width of each line varies.

I'm trying nested \framed elements, but not having any success.
-- 
david

[-- Attachment #1.2: Type: text/html, Size: 929 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 bytes --]

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

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

* Re: Multi-line headers
  2009-04-08 14:19   ` Design Department
@ 2009-04-08 14:28     ` Wolfgang Schuster
  2009-04-08 14:41     ` Aditya Mahajan
  1 sibling, 0 replies; 12+ messages in thread
From: Wolfgang Schuster @ 2009-04-08 14:28 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 08.04.2009 um 16:19 schrieb Design Department:

> On Wed, Apr 8, 2009 at 2:42 AM, Wolfgang Schuster <schuster.wolfgang@googlemail.com 
> > wrote:
> \setupheadertexts[nothing on left] 
> [{\framed[frame=off,width=fit,align=right]{line1\\line2}}]
>
> The individual lines in your example are aligned flush-left in a box  
> that is on the right of the page.
> I need lines that are aligned flush-right in the box on the right of  
> the page - the width of each line varies.

align=flushright

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


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

* Re: Multi-line headers
  2009-04-08 14:19   ` Design Department
  2009-04-08 14:28     ` Wolfgang Schuster
@ 2009-04-08 14:41     ` Aditya Mahajan
  2009-04-08 14:57       ` Design Department
  1 sibling, 1 reply; 12+ messages in thread
From: Aditya Mahajan @ 2009-04-08 14:41 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Wed, 8 Apr 2009, Design Department wrote:

> On Wed, Apr 8, 2009 at 2:42 AM, Wolfgang Schuster <
> schuster.wolfgang@googlemail.com> wrote:
>
>> \setupheadertexts[nothing on
>> left][{\framed[frame=off,width=fit,align=right]{line1\\line2}}]
>>
>> Wolfgang
>
>
> Thanks Wolfgang.
> Not quite correct yet, though.
>
> The individual lines in your example are aligned flush-left in a box that is
> on the right of the page.
> I need lines that are aligned flush-right in the box on the right of the
> page - the width of each line varies.

align=flushright.

> I'm trying nested \framed elements, but not having any success.

See http://wiki.contextgarden.net/Right_and_left

Aditya
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: Multi-line headers
  2009-04-08 14:41     ` Aditya Mahajan
@ 2009-04-08 14:57       ` Design Department
  2009-04-08 15:09         ` Aditya Mahajan
  2009-04-08 15:09         ` Wolfgang Schuster
  0 siblings, 2 replies; 12+ messages in thread
From: Design Department @ 2009-04-08 14:57 UTC (permalink / raw)
  To: mailing list for ConTeXt users

\setupheadertexts[][{\framed[frame=off,width=fit,align=flushright]{line1\\line
2.}}]

Thks. Works now.

A further minor question:
One of the lines sometimes ends with a period and it would be nice to
have it optically aligned. Is this possible?
The document is a tabular report, so this is a minor point. Just wondering.

--
david
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: Multi-line headers
  2009-04-08 14:57       ` Design Department
@ 2009-04-08 15:09         ` Aditya Mahajan
  2009-04-08 15:09         ` Wolfgang Schuster
  1 sibling, 0 replies; 12+ messages in thread
From: Aditya Mahajan @ 2009-04-08 15:09 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Wed, 8 Apr 2009, Design Department wrote:

> \setupheadertexts[][{\framed[frame=off,width=fit,align=flushright]{line1\\line
> 2.}}]
>
> Thks. Works now.
>
> A further minor question:
> One of the lines sometimes ends with a period and it would be nice to
> have it optically aligned. Is this possible?
> The document is a tabular report, so this is a minor point. Just wondering.

align={hanging,flushright}

You would need to enable protrusion first using

\usetypescript[serif,sans,mono][hanging][pure]

Also see http://wiki.contextgarden.net/Protrusion#Details

Aditya
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: Multi-line headers
  2009-04-08 14:57       ` Design Department
  2009-04-08 15:09         ` Aditya Mahajan
@ 2009-04-08 15:09         ` Wolfgang Schuster
  1 sibling, 0 replies; 12+ messages in thread
From: Wolfgang Schuster @ 2009-04-08 15:09 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 08.04.2009 um 16:57 schrieb Design Department:

> \setupheadertexts[][{\framed[frame=off,width=fit,align=flushright] 
> {line1\\line
> 2.}}]
>
> Thks. Works now.
>
> A further minor question:
> One of the lines sometimes ends with a period and it would be nice to
> have it optically aligned. Is this possible?
> The document is a tabular report, so this is a minor point. Just  
> wondering.

You can use hanging punctuation.

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


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

* RE: multi-line headers
  2002-07-23  5:54   ` Kris Hermans
@ 2002-07-23  7:06     ` Hans Hagen
  0 siblings, 0 replies; 12+ messages in thread
From: Hans Hagen @ 2002-07-23  7:06 UTC (permalink / raw)
  Cc: ntg-context

At 07:54 AM 7/23/2002 +0200, you wrote:
>I tried it, but I get the following error:
>
>ConTeXt  ver: 2002.5.20  fmt: 2002.5.30  int: english  mes: english
>
>...
>
>Runaway argument?
>{\framed [align=normal],width=.5\textwidth ] {Naam: \\ Klas: }\ETC.
>! Paragraph ended before \dodogetargument was complete.
><to be read again>
>                    \par
>l.12

check [] and {}
-------------------------------------------------------------------------
                                   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
-------------------------------------------------------------------------
                        information: http://www.pragma-ade.com/roadmap.pdf
                     documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------


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

* RE: multi-line headers
  2002-07-22 17:15 ` Hans Hagen
@ 2002-07-23  5:54   ` Kris Hermans
  2002-07-23  7:06     ` Hans Hagen
  0 siblings, 1 reply; 12+ messages in thread
From: Kris Hermans @ 2002-07-23  5:54 UTC (permalink / raw)
  Cc: ConTeXt Mailing List

I tried it, but I get the following error:

ConTeXt  ver: 2002.5.20  fmt: 2002.5.30  int: english  mes: english

...

Runaway argument?
{\framed [align=normal],width=.5\textwidth ] {Naam: \\ Klas: }\ETC.
! Paragraph ended before \dodogetargument was complete.
<to be read again> 
                   \par 
l.12

Thanks,

Kris Hermans

-----Oorspronkelijk bericht-----
Van: Hans Hagen [mailto:pragma@wxs.nl]
Verzonden: maandag 22 juli 2002 19:16
Aan: Kris Hermans
CC: ConTeXt Mailing List
Onderwerp: Re: multi-line headers

At 01:00 PM 7/22/2002 +0200, Kris Hermans wrote:
>Hi,
>
>I'm preparing an exam document for my students. What I want is to have on
>every page a few lines where they need to fill out the following
>information:
>
>Name:....................................
>Classroom:...............................
>Date:....................................
>
>I tried to do this in the headers of the document, but apparently I can't
>put several paragraphs into the text of a header?
>
>What's the trick to solve this one?

\setupheadertexts
   []
   [{\framed
       [align=normal],width=.5\textwidth]
       {name: \\
        classroom: \\
        date: }]

>PS: Is there a command to produce the dots?

\dotfill cum suis
-------------------------------------------------------------------------
                                   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
-------------------------------------------------------------------------
                        information: http://www.pragma-ade.com/roadmap.pdf
                     documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------


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

* Re: multi-line headers
  2002-07-22 11:00 multi-line headers Kris Hermans
@ 2002-07-22 17:15 ` Hans Hagen
  2002-07-23  5:54   ` Kris Hermans
  0 siblings, 1 reply; 12+ messages in thread
From: Hans Hagen @ 2002-07-22 17:15 UTC (permalink / raw)
  Cc: ConTeXt Mailing List

At 01:00 PM 7/22/2002 +0200, Kris Hermans wrote:
>Hi,
>
>I'm preparing an exam document for my students. What I want is to have on
>every page a few lines where they need to fill out the following
>information:
>
>Name:....................................
>Classroom:...............................
>Date:....................................
>
>I tried to do this in the headers of the document, but apparently I can't
>put several paragraphs into the text of a header?
>
>What's the trick to solve this one?

\setupheadertexts
   []
   [{\framed
       [align=normal],width=.5\textwidth]
       {name: \\
        classroom: \\
        date: }]

>PS: Is there a command to produce the dots?

\dotfill cum suis
-------------------------------------------------------------------------
                                   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
-------------------------------------------------------------------------
                        information: http://www.pragma-ade.com/roadmap.pdf
                     documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------


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

* multi-line headers
@ 2002-07-22 11:00 Kris Hermans
  2002-07-22 17:15 ` Hans Hagen
  0 siblings, 1 reply; 12+ messages in thread
From: Kris Hermans @ 2002-07-22 11:00 UTC (permalink / raw)


Hi,

I'm preparing an exam document for my students. What I want is to have on
every page a few lines where they need to fill out the following
information:

Name:....................................
Classroom:...............................
Date:....................................

I tried to do this in the headers of the document, but apparently I can't
put several paragraphs into the text of a header?

What's the trick to solve this one?

Thanks,

Kris Hermans

PS: Is there a command to produce the dots?


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

end of thread, other threads:[~2009-04-08 15:09 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-08  0:26 Multi-line headers Design Department
2009-04-08  8:42 ` Wolfgang Schuster
2009-04-08 14:19   ` Design Department
2009-04-08 14:28     ` Wolfgang Schuster
2009-04-08 14:41     ` Aditya Mahajan
2009-04-08 14:57       ` Design Department
2009-04-08 15:09         ` Aditya Mahajan
2009-04-08 15:09         ` Wolfgang Schuster
  -- strict thread matches above, loose matches on Subject: below --
2002-07-22 11:00 multi-line headers Kris Hermans
2002-07-22 17:15 ` Hans Hagen
2002-07-23  5:54   ` Kris Hermans
2002-07-23  7:06     ` 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).