From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/10277 Path: main.gmane.org!not-for-mail From: "BOEDE" Newsgroups: gmane.comp.tex.context Subject: Re: (1) Setting top/header texts and (2) stopping page breaks Date: Sun, 12 Jan 2003 20:06:54 +0100 Sender: ntg-context-admin@ntg.nl Message-ID: <001a01c2ba6d$cb006ec0$0100a8c0@vademecum> References: <20030111235848.33803218.lazycode@linuxkungfu.org> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1042398412 14146 80.91.224.249 (12 Jan 2003 19:06:52 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 12 Jan 2003 19:06:52 +0000 (UTC) Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18XnRa-0003ft-00 for ; Sun, 12 Jan 2003 20:06:50 +0100 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 5512F10AFF; Sun, 12 Jan 2003 20:08:12 +0100 (MET) Original-Received: from smtpzilla5.xs4all.nl (smtpzilla5.xs4all.nl [194.109.127.141]) by ref.ntg.nl (Postfix) with ESMTP id B44F010ABB for ; Sun, 12 Jan 2003 20:07:03 +0100 (MET) Original-Received: from vademecum (a194-109-189-99.dial.xs4all.nl [194.109.189.99]) by smtpzilla5.xs4all.nl (8.12.0/8.12.0) with SMTP id h0CJ6o0R040839 for ; Sun, 12 Jan 2003 20:06:53 +0100 (CET) Original-To: X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Errors-To: ntg-context-admin@ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.comp.tex.context:10277 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:10277 Hi, may be that you might use a construction with \framed as I use it for my letter-header of my company: \def\Logo% {\externalfigure[logo.1][height=7\bodyfontsize,method=mps]} \setupheadertexts[text]% [{\hbox {\switchtobodyfont[10pt]% \setupframed [align=right,top=\vfill,bottom=,height=7\bodyfontsize,width=\makeupwidth,fra me=off]% {\Logo \hskip0.5em \framed% {First line of your header \hvill More information of your heaer \endgraf Second line of your header \hvill More information of your header \endgraf Third line of your header \hvill More informationof your header }}}}][] For your second question you might use the builtin capabilities of the \framed. The rulethickness you can set up in the setup section of \framed.... I hope this helps Willi ----- Original Message ----- From: "Lazycode" To: Sent: Sunday, January 12, 2003 7:58 AM Subject: [NTG-context] (1) Setting top/header texts and (2) stopping page breaks > Greetings! > I've recently ran into two trivial tasks that I > can't seem to get ConTeXt to do. If someone could > (1) point out my mistakes or (2) point me to the > peoper documentation, it would be very helpful and > much apperciated. > > Task 1: Setting up Top/Header texts. > I want to have a _multiline_ header. I tried using > \setheadertexts and \settoptexts. Both _ignored_ the > use of "\\" to break lines, and complained when I used > \par. It looks like I can only have single line > headers. I want something as follows: (best viewed > with fixed width font) > > --------------------------------------------------- > | Document Title Document Author | > | ConTeXted On Document Version | > | Section Number Chapter Number | > --------------------------------------------------- > | | > | | > | | > | Actual Text | > | | > | | > | | > | | > > I believe I know how to do the rest. Currently, I need > to know how to do multi-line header/top texts. > > > > Task 2: Preventing annoying page breaks. > I'm using the \setuphead from page 5 of the context > manual. It reads as follows: > > \setuphead > [myheader] > [ -some unimportant stuff snipped out- > before=\hairline\blank > after=\nowhitespace\hairline] > > Once in a while, a page break occurs between the actual > text and one of these two hairlines. I've tried: > > * before=\hariline\page[no]\blank > * before=\hariline\blank\page[no] > and > * after=\page[no]\nowhitespace\hairline > > None of the above works. > > Any information, including a random command to learn > and try, would be very helpful. > > > Thanks in advance, > --tk > _______________________________________________ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context >