From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/30453 Path: news.gmane.org!not-for-mail From: "John R. Culleton" Newsgroups: gmane.comp.tex.context Subject: Re: typesetting verse? Date: Wed, 23 Aug 2006 10:02:37 -0400 Organization: WexfordPress Message-ID: <200608231002.38394.john@wexfordpress.com> References: <221cc89e0608222039p4132b4f0jb81c3713be4a59f0@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1156341952 29038 80.91.229.2 (23 Aug 2006 14:05:52 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 23 Aug 2006 14:05:52 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Wed Aug 23 16:05:46 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1GFtMW-0001bI-6X for gctc-ntg-context-518@m.gmane.org; Wed, 23 Aug 2006 16:05:44 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id DDA461FE63; Wed, 23 Aug 2006 16:05:42 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 19007-02; Wed, 23 Aug 2006 16:05:35 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1617A1FE64; Wed, 23 Aug 2006 16:05:35 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 674351FE64 for ; Wed, 23 Aug 2006 16:05:31 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 16526-07 for ; Wed, 23 Aug 2006 16:05:23 +0200 (CEST) Original-Received: from mta13.adelphia.net (mta13.mail.adelphia.net [68.168.78.44]) by ronja.ntg.nl (Postfix) with SMTP id 60FD51FE63 for ; Wed, 23 Aug 2006 16:05:21 +0200 (CEST) Original-Received: from 69-174-128-193.frdrmd.adelphia.net ([69.174.128.193]) by mta13.adelphia.net (InterMail vM.6.01.05.02 201-2131-123-102-20050715) with ESMTP id <20060823140520.EBAB59.mta13.adelphia.net@69-174-128-193.frdrmd.adelphia.net>; Wed, 23 Aug 2006 10:05:20 -0400 Original-To: ntg-context@ntg.nl User-Agent: KMail/1.9.3 In-Reply-To: <221cc89e0608222039p4132b4f0jb81c3713be4a59f0@mail.gmail.com> Content-Disposition: inline X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 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 X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:30453 Archived-At: On Tuesday 22 August 2006 23:39, Derek Schmidt wrote: > Hi, > > Another simple question--have at it! > > I'd like to typeset some poetry. It should be indented, obey lines, > and the lines should be close together, not like separate paragraphs. > So far I've got > > \definestartstop[verse][commands=\obeylines] > > > What next? > > All best, > Derek > _______________________________________________ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context In a book being set in plain pdftex I used the following; \newcount\numberoflines \newcount\stanza \stanza=5 \def\bpoem{% \\ \begingroup \everypar={\kern .18\hsize\advance\numberoflines1 \ifodd\numberoflines \ifnum\numberoflines=\the\stanza \vskip-\baselineskip\medskip\numberoflines=0\relax\fi% \else% \quad\fi}% \obeylines} \def\epoem{\everypar={}\par\endgroup\bigskip} ---------------------------------------------------- For each poem the quantity \stanza would be set first. Stanza is the number of lines in each stanza plus one. A four lines per stanza poem gets the value of 5. Then the poem would be enclosed in \bpoem \epoem statements. Most pdftex statements will execute in Context. But if not, then the above can be used as pseudocode to guide the process. The poems themselves would look like e.g: \bpoem `` The things of Christ the Spirit takes, And to our heart reveals, Our bodies He His temple makes, And our redemption seals. Almighty Spirit! Visit thus, Our hearts, and guide our ways, Pour down thy quickening grace on us, And tune our lips to praise.'' \epoem Most pdftex statements will execute in Context. But if not, then the above can be used as pseudocode to guide the process. -- John Culleton Able Indexing and Typesetting Precision typesetting (tm) at reasonable cost. Satisfaction guaranteed. http://wexfordpress.com