From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/78784 Path: news.gmane.org!not-for-mail From: Malte Stien Newsgroups: gmane.comp.tex.context Subject: Help with Long Titles Date: Fri, 19 Oct 2012 11:29:41 +1100 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1350606592 18283 80.91.229.3 (19 Oct 2012 00:29:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 19 Oct 2012 00:29:52 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Oct 19 02:30:00 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TP0TP-0003Wn-Ix for gctc-ntg-context-518@m.gmane.org; Fri, 19 Oct 2012 02:29:59 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 31668101F5; Fri, 19 Oct 2012 02:29:52 +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 jIfxbMpja8B4; Fri, 19 Oct 2012 02:29:49 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id B3938101E7; Fri, 19 Oct 2012 02:29:49 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5B663101E7 for ; Fri, 19 Oct 2012 02:29:48 +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 vxXeKfHzLZty for ; Fri, 19 Oct 2012 02:29:47 +0200 (CEST) Original-Received: from filter3-til.mf.surf.net (filter3-til.mf.surf.net [194.171.167.219]) by balder.ntg.nl (Postfix) with ESMTP id A2E54101E5 for ; Fri, 19 Oct 2012 02:29:47 +0200 (CEST) Original-Received: from homiemail-a84.g.dreamhost.com (caiajhbdcaib.dreamhost.com [208.97.132.81]) by filter3-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q9J0Tj0p026827 for ; Fri, 19 Oct 2012 02:29:46 +0200 Original-Received: from homiemail-a84.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a84.g.dreamhost.com (Postfix) with ESMTP id B11D21DE058 for ; Thu, 18 Oct 2012 17:29:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=stien.de; h=from :content-type:content-transfer-encoding:subject:date:message-id :to:mime-version; s=stien.de; bh=m4qwCBFOkzTe+YOv0D56xo74oGc=; b=EMqRlVWEhn25M3/T7+Gqa2tAxz/ju1p48FdZhfQysFpfiUm+3lTxnhKpjfZls 7T6FMFGg09dq43IsPy5NzIg5c/h5LrP19EF1NjMfaBjk2eW7HG3u2HBQFhloAt71 Pz/FpvcJ12Dfiqeb+n8z+cN/o0oqqwTCQPW1MkbJH9m5sM= Original-Received: from [192.168.10.123] (smartw11.lnk.telstra.net [165.228.37.88]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: malte@stien.de) by homiemail-a84.g.dreamhost.com (Postfix) with ESMTPSA id 20BA71DE059 for ; Thu, 18 Oct 2012 17:29:42 -0700 (PDT) X-Mailer: Apple Mail (2.1084) X-Bayes-Prob: 0.9999 (Score 4.7, tokens from: @@RPTN) X-CanIt-Geo: ip=208.97.132.81; country=US; region=CA; city=Trabuco Canyon; postalcode=92679; latitude=33.6117; longitude=-117.5491; metrocode=803; areacode=949; http://maps.google.com/maps?q=33.6117,-117.5491&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 06IcMtJcg - 223c69ef113b - 20121019 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.219 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:78784 Archived-At: Hello, I am using a the startsetups mechanism that defines a title page in my environment file. That way anyone creating a document in my organisation can create a new document and get a consistent look of the title page. There is one problem with this: On occasions I get very long document titles and then the title extends over the left-hand edge of the page. I would like to incorporate a new line into the document title; I'd even be happy to do that manually, ie. it does not have to be automatic. There are two problems here: 1. I had not had any success with putting a newline into the title; it will need to be not where the titlepage is defined but where it is used (see below). I have tried \par and \\ and none of them work. 2. Assuming I found a way to do this, I would need to also find a way of reducing the \blank[170mm] by the amount that the second line of the title takes up to render the information down the bottom in roughly the same place. If push comes to shove, I could create a second titlepage setup for two-line titles, but I much rather not. Is there a solution to that? Is there maybe a way to position the information down the bottom absolute? Here is minimal example (or something very close to that): % The title page \startsetups titlepage \startstandardmakeup[style=sans] \blank[50mm] \rightaligned{\bfd\getvariable{titlepage}{project}} \textrule \rightaligned{\tfc\color[darkgray]{\getvariable{titlepage}{title}}} \blank[170mm] \starttabulate[|plf{\tfa}|prf{\tfa}|] \NC\tfa\copyright\thinspace Pearson Pty Ltd \NC \getvariable{titlepage}{author} \NC\NR \TB[small] \NC \color[darkgray]{Commercial in Confidence} \NC \color[darkgray]{\getvariable{titlepage}{version}} \NC\NR \stoptabulate \tfx Uncontrolled copy if printed. \stopstandardmakeup \stopsetups % ...and this is how it is being used \starttext \setvariables [titlepage] [set=\texsetup{titlepage}, project={Pearson}, title={This document title is very long, so I'd like to \par break it into two lines}, author={Tony Mueller}, version={Version 1.0.0}] \stoptext Thank you very much for all the help I have received so far. Regards, Malte. ___________________________________________________________________________________ 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 ___________________________________________________________________________________