From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/13617 Path: main.gmane.org!not-for-mail From: Michal Kvasnicka Newsgroups: gmane.comp.tex.context Subject: \chapter with \vbox? Date: Tue, 30 Sep 2003 10:52:15 +0200 Sender: ntg-context-admin@ntg.nl Message-ID: <3F79443F.7040900@econ.muni.cz> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1064912380 15135 80.91.224.253 (30 Sep 2003 08:59:40 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 30 Sep 2003 08:59:40 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Tue Sep 30 10:59:38 2003 Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1A4GM6-0006S0-00 for ; Tue, 30 Sep 2003 10:59:38 +0200 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id D9F5C10B07; Tue, 30 Sep 2003 10:59:34 +0200 (MEST) Original-Received: from anor.ics.muni.cz (anor.ics.muni.cz [147.251.4.35]) by ref.ntg.nl (Postfix) with ESMTP id 6BBBA10AE7 for ; Tue, 30 Sep 2003 10:53:43 +0200 (MEST) Original-Received: from merkur.econ.muni.cz (merkur.econ.muni.cz [147.251.189.10]) by anor.ics.muni.cz (8.12.1/8.12.1) with ESMTP id h8U8rfr5002641 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Tue, 30 Sep 2003 10:53:41 +0200 Original-Received: from econ.muni.cz (ke-kvasnicka.econ.muni.cz [147.251.224.167]) by merkur.econ.muni.cz (8.12.3/8.11.2/SuSE Linux 8.11.1-0.5) with ESMTP id h8U8rfRl009716 for ; Tue, 30 Sep 2003 10:53:41 +0200 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1) Gecko/20020826 X-Accept-Language: en-us, en, cs Original-To: ConTeXt X-Muni-Spam-TestIP: 147.251.189.10 X-Muni-Virus-Test: Clean 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:13617 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:13617 Dear friends. I want to typeset a document on a grid. Moreover I want to typeset each chapter heading on a separate page this way: \blank[5*line] ... here is motto... \vfil ... here is the chapter title and chapter number... \blank[5*line] I must include it in a \vbox. I tried \vbox to \textheight, but now the motto doesn't fit to a grid. How could I do it? Many thanks for your help. Michal Kvasnicka P.S. My chapter setting is like this: \setuphead[chapter] [page=, style={\ss\bfe\setupinterlinespace[line=\NormalBaselineskip]}, numberstyle={\ss\bff\setupinterlinespace[line=\NormalBaselineskip]}, before={\page\setuplayout[footer=0pt]\page[right]}, after={\page\setuplayout[footer=3\NormalBaselineskip]}, command=\MyChapterCommand] \def\MyChapterCommand#1#2{% \vbox to \textheight{% \setupinterlinespace[line=\NormalBaselineskip]% \blank[5*line,force]% \startnarrower[left,right]% \leavevmode{\rm\tf\em\the\mottotoks}\par \stopnarrower \vskip0pt plus 1filll \hbox to \textwidth{\hss\vbox{\hsize=0.8\textwidth \startframedtext [width=0.8\textwidth,align={left,broad}, offset=1.5ex, background=color, backgroundcolor=black] {\setupinterlinespace[line=28pt]\white #2}% \stopframedtext}} \kern-\baselineskip \vbox to 0pt{% \vss \hbox to \hsize{% \hss\bff #1% {\setbox0=\hbox{#1}\ifdim\wd0=0pt\else \hbox to0pt{.\hss}\hskip0.8\textwidth\strut\hskip2.5mm\fi}% } } \blank[4*line,force] } \global\mottotoks={} } If trying the code, you must either define \ss\bfe and \ss\bff fonts, or remove them.