From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/78785 Path: news.gmane.org!not-for-mail From: Otared Kavian Newsgroups: gmane.comp.tex.context Subject: Re: Help with Long Titles Date: Fri, 19 Oct 2012 08:11:43 +0200 Message-ID: <8E126BFD-A387-4915-BDB0-552B24DA19FD@gmail.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1350627103 30792 80.91.229.3 (19 Oct 2012 06:11:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 19 Oct 2012 06:11:43 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Oct 19 08:11:51 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 1TP5oE-0006qg-AH for gctc-ntg-context-518@m.gmane.org; Fri, 19 Oct 2012 08:11:50 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8CCB6101E5; Fri, 19 Oct 2012 08:11:42 +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 XnBfT2524mOi; Fri, 19 Oct 2012 08:11:40 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 76228101EA; Fri, 19 Oct 2012 08:11:40 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id AAFCC101EA for ; Fri, 19 Oct 2012 08:11: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 MkgqjxiMm7RH for ; Fri, 19 Oct 2012 08:11:37 +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 A531E101E5 for ; Fri, 19 Oct 2012 08:11:37 +0200 (CEST) Original-Received: from mail-wi0-f179.google.com (mail-wi0-f179.google.com [209.85.212.179]) by filter3-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q9J6BaJw005049 for ; Fri, 19 Oct 2012 08:11:36 +0200 Original-Received: by mail-wi0-f179.google.com with SMTP id hq7so87340wib.2 for ; Thu, 18 Oct 2012 23:11:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=gXwG3L60/Ppa4nAvlr/u1077qlYBzWU1Lg1eTm8MY1E=; b=iX6z2XqN/u4DyP6zWiFVtiUAGm03W6WQRQTxjlBy4xA/UgE8V3JAHBorVYOH66y4/m OsGdMCgKA2YaaVrymXcY5LNAtLCKersVW8uWTKWS0z3cZvByq1hGzFAzRwCSpLWsr7P8 nZt40Snfx7vFyOEuUz27uLqm+NGhnzzrnht6R99DRlwgokgSeXnrwTRBbhWFEQyrc1sb SAeSjb998q0DvYPUEySPCftQFargdqGUbsgPMHCk0OaZPj7v/Ikoe/jJ1XPYzpcrqreB gR130YwrV6Ua4mCMJ1mHyWF79bMYIql40K234Ripa/rMxp6ca6mHDLmO2G5R0VZt9e2F fcEg== Original-Received: by 10.180.79.202 with SMTP id l10mr671895wix.9.1350627095813; Thu, 18 Oct 2012 23:11:35 -0700 (PDT) Original-Received: from [192.168.0.20] (seg75-6-82-236-32-4.fbx.proxad.net. [82.236.32.4]) by mx.google.com with ESMTPS id v3sm33161988wiw.7.2012.10.18.23.11.33 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 18 Oct 2012 23:11:34 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.1499) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.212.179; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 06IcSbA8p - 54abc79d8c9f - 20121019 (trained as not-spam) 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:78785 Archived-At: Hi Malte, If you say \setvariables [titlepage] [set=\texsetup{titlepage}, project={Pearson}, title={\startframedtext[width=\textwidth,frame=off] This document title is very long, \crlf so I'd like to break it into two lines \stopframedtext}, author={Tony Mueller}, version={Version 1.0.0}] the title is broken where you put \crlf. Is that what you want? Best regards: OK On 19 oct. 2012, at 02:29, Malte Stien wrote: > 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 > ___________________________________________________________________________________ ___________________________________________________________________________________ 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 ___________________________________________________________________________________