From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/73240 Path: news.gmane.org!not-for-mail From: Chris Lott Newsgroups: gmane.comp.tex.context Subject: Re: optical centering... Date: Fri, 16 Dec 2011 07:53:55 -0900 Message-ID: References: <5EE11CDB-9684-4352-997C-6E1023ACEC6B@googlemail.com> <4EEB08AC.4040902@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1324054463 14220 80.91.229.12 (16 Dec 2011 16:54:23 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 16 Dec 2011 16:54:23 +0000 (UTC) Cc: mailing list for ConTeXt users To: Hans Hagen Original-X-From: ntg-context-bounces@ntg.nl Fri Dec 16 17:54:18 2011 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 1Rbb34-0002M1-3W for gctc-ntg-context-518@m.gmane.org; Fri, 16 Dec 2011 17:54:18 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DE05DCB17F; Fri, 16 Dec 2011 17:54:16 +0100 (CET) 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 HjjPxLB-rcKw; Fri, 16 Dec 2011 17:54:10 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2FC4FCB176; Fri, 16 Dec 2011 17:54:10 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 67F13CB176 for ; Fri, 16 Dec 2011 17:54:09 +0100 (CET) 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 OeJQuUP581hk for ; Fri, 16 Dec 2011 17:53:58 +0100 (CET) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by balder.ntg.nl (Postfix) with ESMTP id E5684CB174 for ; Fri, 16 Dec 2011 17:53:57 +0100 (CET) Original-Received: from mail-vw0-f41.google.com (mail-vw0-f41.google.com [209.85.212.41]) by filter4-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id pBGGruxN029447 for ; Fri, 16 Dec 2011 17:53:57 +0100 Original-Received: by vbbfn1 with SMTP id fn1so3469205vbb.14 for ; Fri, 16 Dec 2011 08:53:55 -0800 (PST) Original-Received: by 10.52.67.129 with SMTP id n1mr6567769vdt.105.1324054435456; Fri, 16 Dec 2011 08:53:55 -0800 (PST) Original-Received: by 10.220.0.78 with HTTP; Fri, 16 Dec 2011 08:53:55 -0800 (PST) In-Reply-To: <4EEB08AC.4040902@wxs.nl> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.212.41; 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: 05G9QRUCF - 8c1a889b5853 - 20111216 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.216 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:73240 Archived-At: On Fri, Dec 16, 2011 at 12:00 AM, Hans Hagen wrote: >>>> I've seen some discussion about creating a verse environment in ConTeXt >>>> that handles the alignment of long (broken) lines of text. But I can't find >>>> anything about optical centering as can be done in LaTeX using the gmverse >>>> package: http://www.ctan.org/pkg/gmverse >>>> >>>> Is there something like this available for ConTeXt? >>> >>> >>> Can you make a PDF where we can see what do you want? > > > That's just a bunch of macro code ... what Wolfgang meant was output that > you want to see. Writing from scratch fo rwhat you need is easier that > deciphering macro code. My apologies, this is what I meant to link to, a TUGboat article which has both the formulae for calculating the center and visual illustrations of the resulting centering: www.tug.org/TUGboat/tb29-1/tb91murzynowski-text.pdf The package provides three things, in descending order of importance for me: * optical centering, which is a calculation of the center point for the alignment of the box of text that is based on based on an average of the line lengths of the work being set. gmverse provides four different possible centering methods based on different formulae (if it matters, method 3 and 2 are most useful. * Alignment of broken lines, right-aligned to the length of the line above the break * An environment that needs no use of \\ to break lines, but does so based on the length of the line and automatically wraps long lines (as defined by a dimension) and uses the alignment above. I have no idea if the way the package is written is overly complicated for what it does... I don't really understand the code nearly well enough, I just know that it works! Thanks for any input. I can keep using LaTeX for this work, but when I switch technologies, I tend to learn it by trying to move everything to it (having recently switched from emacs to vim comes to mind :) c -- Chris Lott ___________________________________________________________________________________ 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 ___________________________________________________________________________________