From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/63358 Path: news.gmane.org!not-for-mail From: "Thomas A. Schmitz" Newsgroups: gmane.comp.tex.context Subject: Re: problems with vertical spacing and boxes Date: Tue, 9 Nov 2010 18:08:38 +0100 Message-ID: <857FFADF-B84E-4026-A329-5E1FD47F9997@uni-bonn.de> References: <7810ABF2-24E6-48ED-804F-04C7DE7831D0@uni-bonn.de> <88F5C894-A829-4493-9EC9-209F88C8CBDD@gmail.com> <779F7548-9D48-4033-B3E9-BE83973F14AD@uni-bonn.de> <1AC57DC7-1373-4243-A20F-571F73A46B6D@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1081) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1289322559 9727 80.91.229.12 (9 Nov 2010 17:09:19 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 9 Nov 2010 17:09:19 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Nov 09 18:09:15 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 1PFrh2-0006Up-Tt for gctc-ntg-context-518@m.gmane.org; Tue, 09 Nov 2010 18:09:13 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1F496CA843; Tue, 9 Nov 2010 18:09:11 +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 B2R-hciAL7Zd; Tue, 9 Nov 2010 18:09:10 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 51E70CA83B; Tue, 9 Nov 2010 18:09:07 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 11657CA83B for ; Tue, 9 Nov 2010 18:09:06 +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 mk7mA5pkqhV8 for ; Tue, 9 Nov 2010 18:08:54 +0100 (CET) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by balder.ntg.nl (Postfix) with ESMTP id CEC67CA837 for ; Tue, 9 Nov 2010 18:08:54 +0100 (CET) Original-Received: from uni-bonn.de (mail.uni-bonn.de [131.220.15.113]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id oA9H8rn7001555 for ; Tue, 9 Nov 2010 18:08:54 +0100 Original-Received: from [93.210.237.147] (account tschmit1@uni-bonn.de HELO [192.168.0.2]) by fe2.uni-bonn.de (CommuniGate Pro SMTP 5.2.12) with ESMTPA id 49158541 for ntg-context@ntg.nl; Tue, 09 Nov 2010 18:08:53 +0100 In-Reply-To: <1AC57DC7-1373-4243-A20F-571F73A46B6D@gmail.com> X-Mailer: Apple Mail (2.1081) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=131.220.15.113; country=DE; region=07; city=Bonn; latitude=50.7333; longitude=7.1000; http://maps.google.com/maps?q=50.7333,7.1000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0bDt58Sns - 6a938a0a0afc - 20101109 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.218 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:63358 Archived-At: On Nov 9, 2010, at 4:53 PM, Wolfgang Schuster wrote: > Another solution: > = > \setupbodyfont[termes,12pt] > = > \setupinterlinespace[line=3D4.5ex] > = > \setupalign[hanging] > = > \defineitemgroup[myline][width=3D1cm,symstyle=3Dbold] > = > \define[3]\MyLine > {\startmyline\hsize=3D7cm > \sym{#2}#3\wordright[2em]{#1}% > \stopmyline} > = > \starttext > = > \MyLine{5}{Fa.}{This line is short.} > = > \MyLine{12}{Ma.}{\input knuth } > = > \MyLine{8}{Pa.}{\input ward } > = > \stoptext > = > When you=92re going to use this for a long document i suggest an alternat= ive method for the input: > = > \MyLine[lines=3D...,speaker=3D...] ... \par > = > and > = > \startMyLine[lines=3D...,speaker=3D...] > ... > \stopMyLine > = > Wolfgang Yes, this looks good! I use the macro in a slightly more complex situation,= so my "real" syntax is \MyLine[][yes|no][]{} where yes|no determines whether the number should be displayed or not and t= he third argument (the speaker) is optional; it it's there, it will be type= set in the space at the beginning of the line. Complex, but makes it easy t= o read my source... Thanks! Thomas ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________