From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/59219 Path: news.gmane.org!not-for-mail From: Scott Steele Newsgroups: gmane.comp.tex.context Subject: Title page layout Date: Mon, 31 May 2010 18:31:11 -0400 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0082952756==" X-Trace: dough.gmane.org 1275345103 2048 80.91.229.12 (31 May 2010 22:31:43 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 31 May 2010 22:31:43 +0000 (UTC) To: ntg-context Original-X-From: ntg-context-bounces@ntg.nl Tue Jun 01 00:31:41 2010 connect(): No such file or directory Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OJDWF-00018j-2P for gctc-ntg-context-518@m.gmane.org; Tue, 01 Jun 2010 00:31:39 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D56ABC9BB3; Tue, 1 Jun 2010 00:31:38 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id xF5d4vpUadhr; Tue, 1 Jun 2010 00:31:36 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2D0ADC9B1A; Tue, 1 Jun 2010 00:31:36 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 79354C9B1A for ; Tue, 1 Jun 2010 00:31:35 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id zUqxkOhJJExE for ; Tue, 1 Jun 2010 00:31:33 +0200 (CEST) Original-Received: from mail-pw0-f41.google.com (mail-pw0-f41.google.com [209.85.160.41]) by balder.ntg.nl (Postfix) with ESMTP id B7CAAC9ADD for ; Tue, 1 Jun 2010 00:31:32 +0200 (CEST) Original-Received: by pwi6 with SMTP id 6so1965618pwi.14 for ; Mon, 31 May 2010 15:31:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:from:date :message-id:subject:to:content-type; bh=6nVZzV9W7hWMaryQuiUeozv7dQgFxf1AW9+aw1lrGF8=; b=SF24YzN2R6LigpgICEyHIJ5ahFvhdV/F3KHdaynRoK5twJgKSLrklPHfKf5YQ3kEGy 5ZEqjj4SAd3y05Bhh3tmzaiDNGXY9hEBulfm356Zdr1szadwrC4UVXaEsEjkcNeWF2q4 13eDFMcCb5OgKf8qTUXNNuq1GgY8W5T1nq/DM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=hwNSTlFxElw1HIgcECaagzWSgz71CPe9Dot2G1IiFBn42Hi22RMRCX2qq6Jo6ncUps pvA+r6G21lTzCd2vNbvNq3KSi+Gp37mAWaBmT/6MoLe0SfYB4XJXOWK5rkCvQ+HlvuE7 QGdqaqnpVQrcdfFaF+cKqG1uH/7zizGPbs4Rg= Original-Received: by 10.141.1.1 with SMTP id d1mr3791955rvi.89.1275345091359; Mon, 31 May 2010 15:31:31 -0700 (PDT) Original-Received: by 10.140.225.5 with HTTP; Mon, 31 May 2010 15:31:11 -0700 (PDT) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:59219 Archived-At: --===============0082952756== Content-Type: multipart/alternative; boundary=000e0cd0ebc822f2d40487eb6b84 --000e0cd0ebc822f2d40487eb6b84 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I'm trying to anchor a table or box containing my title and subtitle to the bottom right corner of the textblock (on a title page). The following comes very close to doing what I want, but there is still some vertical space between the bottom of the text of the subtitle and the last major horizonta= l gridline. How can I have the subtitle text be (above and) flush with the last major horizontal gridline in the same way that it is flush with the rightmost vertical gridline? NOTE: Small adjustments to the example I provide might not be helpful for me since, in actuality, I'm using Adobe Jenson, which makes both the metrics and the expression of the problem slightly different. Also, are there max/min functions for dealing with dimexpr's? %\definetypeface[jenson][rm][Xserif][Adobe Jenson Pro] %\setupbodyfont[jenson, 11pt] \definepapersize[pocket][width=3D4.25in, height=3D6.875in] \setuppapersize[pocket][pocket] \setuplayout[location=3Dmiddle, width=3D0.815\paperwidth, rightmargindistance=3D0in, leftmargindistance=3D0in, height=3Dmiddle, margin=3D0.08\paperwidth, backspace=3D0.115\paperwidth, marking=3Doff, grid=3Dyes, topspace=3D0.018889\paperheight, header=3D0.044444\paperheight, footer=3D0.044444\paperheight, bottomspace=3D0.038889\paperheight] \setuppagenumbering[alternative=3Ddoublesided, location=3D{footer,marginedge}] \def\givewidthof#1\to#2% { \bgroup \setbox\scratchbox\hbox{#1}% \expanded{\egroup\def\noexpand#2{\the\wd\scratchbox}} } % From a response by Hans to a mailing list question. It was originally \setwidthof#1\to#2, which=E2=80=94in English at least=E2=80=94sounds somewh= at ambiguous with regard to which variable is providing a width. \def\TitlePage#1#2% { \givewidthof{\scc #2}\to\SubtitleWidth \newdimen\TitlePageVar \TitlePageVar=3D\dimexpr(\textwidth-\SubtitleWidth) \dontleavehmode\vfill \starttable[s(0pt)|lw(\TitlePageVar)|cw(\SubtitleWidth)|] \NC\NC{\scd #1}\AR \NC\NC{\scc #2} \stoptable \page } \showgrid \startfrontmatter \TitlePage{Title}{Longer Subtitle} \stopfrontmatter Thanks, Scott ----- This is a work of =EF=AC=81ction. Names, characters, places, and incidents= either are the product of the writer's imagination or are used =EF=AC=81ctitiously= , and any resemblance to actual persons, living or dead, businesses, companies, events, or locales is entirely co=C3=AFncidental. --000e0cd0ebc822f2d40487eb6b84 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I'm trying to anchor a table or box containing my title and subtit= le to the bottom right corner of the textblock (on a title page). The follo= wing comes very close to doing what I want, but there is still some vertica= l space between the bottom of the text of the subtitle and the last major h= orizontal gridline. How can I have the subtitle text be (above and) flush w= ith the last major horizontal gridline in the same way that it is flush wit= h the rightmost vertical gridline? NOTE: Small adjustments to the example I= provide might not be helpful for me since, in actuality, I'm using Ado= be Jenson, which makes both the metrics and the expression of the problem s= lightly different.

Also, are there max/min functions for dealing with dime= xpr's?

%\definetypeface[jenson][rm][Xserif][Ad= obe Jenson Pro]
%\setupbodyfont[jenson, 11pt]

\definepapersize[pocket][width=3D4.25in,
height=3D6.875in]
=
\setuppapersize[pocket][pocket]

\se= tuplayout[location=3Dmiddle,
widt= h=3D0.815\paperwidth,
rightmargindistance=3D0in,
leftmargindistance=3D0in= ,
heig= ht=3Dmiddle,
margin=3D0.08\paperwidth,
backspace=3D0.115\paperwidth,
mark= ing=3Doff,
grid=3Dyes,
topspace=3D0.018889\paperheight,
head= er=3D0.044444\paperheight,
footer=3D0.044444\paperheight,
bottomspace= =3D0.038889\paperheight]

\setuppagenumbering[alternative=3Ddoublesided,
locatio= n=3D{footer,marginedge}]

\def\givewidthof#1\to#2%<= /div>
{
= \bgroup
\setbox\scratchbox\hbox{#1}%
\expanded{\egroup\def\noexpan= d#2{\the\wd\scratchbox}}
} % From a response by Hans to a mailing list question. It was origina= lly \setwidthof#1\to#2, which=E2=80=94in English at least=E2=80=94sounds so= mewhat ambiguous with regard to which variable is providing a width.
<= div>
\def\TitlePage#1#2%
{
\givewidthof{\scc #2}\to\SubtitleWidth=
\newdimen\TitlePageVar
\Titl= ePageVar=3D\dimexpr(\textwidth-\SubtitleWidth)
\dontleavehmode\vfill
<= div> \start= table[s(0pt)|lw(\TitlePageVar)|cw(\SubtitleWidth)|]
\NC\N= C{\scd #1}\AR
\NC\NC{\scc #2}
\stoptable
\page=
}

\showgrid
\startfrontmatter=
\TitlePage{Title}{Longer Subtitle}
\stopfrontmatter



Thanks,
Scott
-----
This is a work of =EF=AC=81ction. =C2=A0Names, characters,= places, and incidents either are the product of the writer's imaginati= on or are used =EF=AC=81ctitiously, and any resemblance to actual persons, = living or dead, businesses, companies, events, or locales is entirely co=C3= =AFncidental.
--000e0cd0ebc822f2d40487eb6b84-- --===============0082952756== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============0082952756==--