From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/57566 Path: news.gmane.org!not-for-mail From: Torsten Suhling Newsgroups: gmane.comp.tex.context Subject: Hanging indent in startstoplines for poems Date: Mon, 29 Mar 2010 17:29:36 +0200 Message-ID: <4BB0C760.5080305@web.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1269876800 18973 80.91.229.12 (29 Mar 2010 15:33:20 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 29 Mar 2010 15:33:20 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Mon Mar 29 17:33:14 2010 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 1NwGxl-0007VS-Ip for gctc-ntg-context-518@m.gmane.org; Mon, 29 Mar 2010 17:33:13 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7FE5EC9D71; Mon, 29 Mar 2010 17:33:11 +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 wT7+Vfzg2mTR; Mon, 29 Mar 2010 17:32:59 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B30E6C9C38; Mon, 29 Mar 2010 17:32:59 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7EC2AC9C38 for ; Mon, 29 Mar 2010 17:32:58 +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 05dIFu9M7X-s for ; Mon, 29 Mar 2010 17:32:56 +0200 (CEST) Original-Received: from fmmailgate02.web.de (fmmailgate02.web.de [217.72.192.227]) by balder.ntg.nl (Postfix) with ESMTP id 31612C9ADD for ; Mon, 29 Mar 2010 17:32:55 +0200 (CEST) Original-Received: from smtp08.web.de (fmsmtp08.dlan.cinetic.de [172.20.5.216]) by fmmailgate02.web.de (Postfix) with ESMTP id 80869159E71CF for ; Mon, 29 Mar 2010 17:29:41 +0200 (CEST) Original-Received: from [139.7.18.254] (helo=[192.168.245.245]) by smtp08.web.de with asmtp (WEB.DE 4.110 #4) id 1NwGuL-0004xl-00 for ntg-context@ntg.nl; Mon, 29 Mar 2010 17:29:41 +0200 User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) X-Sender: tsuhling@web.de X-Provags-ID: V01U2FsdGVkX1/GoBTOZjznWccmIywb9wX+ch7Et+PacUT9IM6H y3TVlBDN5qca2OH/j6ZYBvH9/IEKiGcVhxx9ZbWDM6w9+DJYBs uC6XMS440= 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:57566 Archived-At: Hello, I have a question regarding hanging indentation in startstoplines-environment. So I try to use ConTeXt to typeset poems. In some texts/poems ar long lines, which have to be broken. They should be broken into hanging indentations. That means: Every line of poem should start left. If a poemline is longer than text width, the rest of this line should be indented in a new text line. (just like here) The width of this indentation should be fixed (e.g. 3em). The width of this indentation shouldn't depend on a word. It would be fine, if I don't have to set (poem)linebreaks. Additionally, it should still be able to indent a verse (e.g. a chorus), for instance using narrower. Hyphenation should be switched off inside the poems. So I found \setuphanging, but these instruction seems made another job---indenting a paragraph to be placed right beside the first words of the paragraph. That's the example, which does not work (all lines are indented) %<-------------- snip --------------------------------------- \definestartstop[verse] [command={\setupwhitespace[1.2em]}% % follow the grid ,before={\setupindenting[-2em,yes]% % trial to construct \startnarrower[2em]% % hanging indent \startalignment[flushleft]% % even inter-word-dist. \startlines% % no justification \indenting[first]}% ,after={\stoplines% \stopalignment% \stopnarrower% \endgraf}] \starttext Three lines, first should be broken: \startverse FIRST---this should be one line, please remove linebreaks made by the mail programms or similiar possibly until HERE. SECOND---next line without carriage return or line feed, THIRD---because startstoplines accept linebreaks. FOURTH---is also one who don't make much words. \stopverse \stoptext %<-------------- snap --------------------------------------- Any idea how to do that? Thanks for help Torsten ___________________________________________________________________________________ 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 ___________________________________________________________________________________