From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/43006 Path: news.gmane.org!not-for-mail From: "Wolfgang Schuster" Newsgroups: gmane.comp.tex.context Subject: Re: goto(box) and setuplist questions Date: Wed, 6 Aug 2008 16:59:18 +0200 Message-ID: <115224fb0808060759l55c5ec59n321e26f9ca2e6065@mail.gmail.com> References: <326847810808040406wbd51741y48a9653abceec8d0@mail.gmail.com> <326847810808041357j648cc977ld2386514e8ef9bc7@mail.gmail.com> <115224fb0808050129k5e32128nbc109f3832ee01a7@mail.gmail.com> <326847810808050407g79f25ac9v92a0cf0f442628c6@mail.gmail.com> <115224fb0808050416p1c7aba76ge84c453366370f15@mail.gmail.com> <326847810808060012s26711cd4xeaeda9d19f57f028@mail.gmail.com> <115224fb0808060145q728bcde5od601ca08c316047d@mail.gmail.com> <326847810808060316h640a76c4ra7c60489fa63c7a3@mail.gmail.com> <115224fb0808060626l8112c83o6dfc946d2423e48e@mail.gmail.com> <326847810808060715ibda42d9i82c32362a121119a@mail.gmail.com> 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: ger.gmane.org 1218034901 32599 80.91.229.12 (6 Aug 2008 15:01:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 6 Aug 2008 15:01:41 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Wed Aug 06 17:02:30 2008 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 lo.gmane.org with esmtp (Exim 4.50) id 1KQkWa-0003Im-Qg for gctc-ntg-context-518@m.gmane.org; Wed, 06 Aug 2008 17:02:04 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9FE4C1FC7B; Wed, 6 Aug 2008 17:00:58 +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 28893-02-4; Wed, 6 Aug 2008 17:00:07 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D78FB1FBC9; Wed, 6 Aug 2008 17:00:06 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E7D4F1FBC9 for ; Wed, 6 Aug 2008 17:00:03 +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 28312-02-8 for ; Wed, 6 Aug 2008 16:59:24 +0200 (CEST) Original-Received: from hs-out-0708.google.com (hs-out-0708.google.com [64.233.178.245]) by ronja.ntg.nl (Postfix) with ESMTP id 180B01FADF for ; Wed, 6 Aug 2008 16:59:20 +0200 (CEST) Original-Received: by hs-out-0708.google.com with SMTP id k27so202908hsc.2 for ; Wed, 06 Aug 2008 07:59:19 -0700 (PDT) Original-Received: by 10.100.127.18 with SMTP id z18mr467020anc.116.1218034758883; Wed, 06 Aug 2008 07:59:18 -0700 (PDT) Original-Received: by 10.100.109.20 with HTTP; Wed, 6 Aug 2008 07:59:18 -0700 (PDT) In-Reply-To: <326847810808060715ibda42d9i82c32362a121119a@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.9 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:43006 Archived-At: On Wed, Aug 6, 2008 at 4:15 PM, Alan Stone wrote: > On Wed, Aug 6, 2008 at 3:26 PM, Wolfgang Schuster > wrote: >> >> Depends on the situation, for left aligned numbers it didn't matter >> because >> you can't see where the space comes from (1) but for right aligned numbers >> you need a postive value for distance (2). >> >> (1) Left aligned number: >> >> \starttext >> \bTABLE[frame=off] >> \bTR\bTD[width=1cm] 1 \eTD\bTD header \eTD\eTR >> \eTABLE >> \bTABLE[frame=off,distance=5mm] >> \bTR\bTD[width=5mm] 1 \eTD\bTD header \eTD\eTR >> \eTABLE >> \stoptext >> >> (2) Right aligned number: >> >> \starttext >> \bTABLE[frame=off] >> \bTR\bTD[width=1cm,align=flushright] 1 \eTD\bTD header \eTD\eTR >> \eTABLE >> \bTABLE[frame=off,distance=5mm] >> \bTR\bTD[width=5mm,align=flushright] 1 \eTD\bTD header \eTD\eTR >> \eTABLE >> \stoptext > > I'm impressed... > > So you really have an MBA in Klingon! :O) > >> > Hans wrote: >> >>> - maxwidth ? >> >> >> >>just try it on long entries .. it prevents too long lines >> >> >> >>this is a very long entry >> >>this is a very ... >> > >> > Ok I see. Now, in \placecontent or \setuplist, which parameter >> > allows to influence where long lines are cut off in two (or more) ? >> > >> > Like... >> > >> > (number) This long long >> > chapter title (pagenumber) >> > >> > vs. >> > >> > (number) This long >> > long chapter title (pagenumber) >> > >> > Using the brute force tactic I tried setting width and textwith which >> > didn't >> > work. >> > It could be textcommand. If so what does \command#1 mean ( see main >> > manual pg 150 ) ? >> >> The effect for maxwidth (3cm in my example) is this: >> >> \starttext >> \limitatetext {This long long chapter title} {3cm} {\unknown} >> \stoptext >> >> Wolfgang > > I just tried with > > style={\switchtobodyfont[small]\setuplinewidth[(x)pt]\setupinterlinespace[line=2.4ex]} \starttext \framed{text} \thinrule \setuplinewidth[small] \framed{text} \thinrule \setuplinewidth[1cm] \framed{text} \thinrule \stoptext > and several values for (x) in > > \startinteractionmenu[myMenu] > \placecontent[ > criterium=all, > alternative=b, > % style={\switchtobodyfont[small]\setupinterlinespace[line=2.4ex]}, > style={\switchtobodyfont[small]\setuplinewidth[150pt]\setupinterlinespace[line=2.4ex]}, > interaction=all, > before={\blank[small]\startnarrower[left,right]}, > after={\stopnarrower\blank[medium]}] > \stopinteractionmenu > > but that generates a compile error. Grrr... You could try style={\switchtobodyfont[small]\hsize.8\hsize\relax\setupinterlinespace[line=2.4ex]}, or style={\switchtobodyfont[small]\hsize150pt\relax\setupinterlinespace[line=2.4ex]}, The better way is to define you own list alternative. \define[3]\ChapterList {\hbox {\hbox to .5em{#1}\hskip.5em \vtop{\hsize150pt\relax#2}% \hfil#3}} \setuplist[chapter][alternative=command,command=\ChapterList] Wolfgang ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________