From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/69451 Path: news.gmane.org!not-for-mail From: Jaroslav Hajtmar Newsgroups: gmane.comp.tex.context Subject: Re: setuplist inherit margin and width Date: Thu, 23 Jun 2011 19:49:22 +0200 Message-ID: <4E037CA2.3020000@gyza.cz> References: <41AEACB6-83E9-4EE1-B6FE-312A20D1C9EC@st.estfiles.de> <3930CD66-BEA3-45C4-B1E1-15B949FA0516@googlemail.com> Reply-To: hajtmar@gyza.cz, 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 1308851391 13827 80.91.229.12 (23 Jun 2011 17:49:51 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 23 Jun 2011 17:49:51 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Thu Jun 23 19:49:46 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 1QZo2D-0004Rj-0b for gctc-ntg-context-518@m.gmane.org; Thu, 23 Jun 2011 19:49:45 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 26CE0CAE39; Thu, 23 Jun 2011 19:49:44 +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 XUCDqKL2nCXS; Thu, 23 Jun 2011 19:49:41 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B1953CAE31; Thu, 23 Jun 2011 19:49:41 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9623ECAE31 for ; Thu, 23 Jun 2011 19:49:40 +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 OyxbYlwja-4f for ; Thu, 23 Jun 2011 19:49:28 +0200 (CEST) Original-Received: from filter2-nij.mf.surf.net (filter2-nij.mf.surf.net [195.169.124.153]) by balder.ntg.nl (Postfix) with ESMTP id 90303CAE30 for ; Thu, 23 Jun 2011 19:49:28 +0200 (CEST) Original-Received: from psi4.forpsi.com (smtpa.forpsi.com [81.2.195.204]) by filter2-nij.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p5NH8aXU025079 for ; Thu, 23 Jun 2011 19:08:37 +0200 Original-Received: (qmail 27878 invoked by uid 89); 23 Jun 2011 17:49:24 -0000 Original-Received: from unknown (HELO ?192.168.20.100?) (hajtmar@88.103.230.14) by psi04 with ESMTPA; 23 Jun 2011 17:49:24 -0000 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; cs; rv:1.9.1.8) Gecko/20100216 Thunderbird/3.0.2 In-Reply-To: <3930CD66-BEA3-45C4-B1E1-15B949FA0516@googlemail.com> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=81.2.195.204; country=CZ; latitude=49.7500; longitude=15.5000; http://maps.google.com/maps?q=49.7500,15.5000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0aEXt8A11 - 2e9c717ea386 - 20110623 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.153 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:69451 Archived-At: Hello Wolfgang. I know that my question is a little off this topic, but: Is there any possibility change due this method affect appearance list typed using \placecontent (the gap between list items, alignment, etc.)? If I knew how to do it, maybe I found how to change appearance list of bibliography (typed using \placepublications), that does not work how I want in context minimals (inappropriate gaps and poor alignment). Thanx Jaroslav Dne 23.6.2011 18:08, Wolfgang Schuster napsal(a): > Am 23.06.2011 um 16:49 schrieb Steffen Wolfrum: > > >> Hi, >> >> say, I want to design the TOC. Now I would write: >> >> \setuplist[LevelFour] [margin=1.20cm,width=0.5cm,...] >> \setuplist[LevelFive] [margin=1.70cm,width=0.5cm,] >> >> >> But is there some clever command that makes a calculation like this: >> >> \setuplist[LevelFour] [margin=1.20cm,width=0.5cm,...] >> \setuplist[LevelFive] [margin={\the\dimexpr\measure{margin[LevelFour]+width[LevelFour]}\relax},width=0.5cm,] >> >> Any idea? >> > > > Variant 1: > > \definemeasure [chapter:width] [0.4cm] > \definemeasure [section:width] [0.7cm] > \definemeasure [subsection:width] [1.0cm] > \definemeasure [subsubsection:width] [1.3cm] > > \definemeasure [chapter:margin] [0cm] > \definemeasure [section:margin] [\the\dimexpr\measure{chapter:margin}+\measure{chapter:width}\relax] > \definemeasure [subsection:margin] [\the\dimexpr\measure{section:margin}+\measure{section:width}\relax] > \definemeasure [subsubsection:margin] [\the\dimexpr\measure{subsection:margin}+\measure{subsection:width}\relax] > > \setuplist [chapter] [margin=\measure{chapter:margin},width=\measure{chapter:width}] > \setuplist [section] [margin=\measure{section:margin},width=\measure{section:width}] > \setuplist [subsection] [margin=\measure{subsection:margin},width=\measure{subsection:width}] > \setuplist [subsubsection] [margin=\measure{subsubsection:margin},width=\measure{subsubsection:width}] > > \starttext > > \placecontent > > \chapter{One} > > \section{Two} > > \subsection{Three} > > \subsubsection{Four} > > \stoptext > > > Variant 2: > > \setuplist [chapter] [width=0.4cm,margin=0cm] > \setuplist [section] [width=0.7cm,margin=\the\dimexpr\namedlistparameter{chapter}{margin}+\namedlistparameter{chapter}{width}\relax] > \setuplist [subsection] [width=1.0cm,margin=\the\dimexpr\namedlistparameter{section}{margin}+\namedlistparameter{section}{width}\relax] > \setuplist [subsubsection] [width=1.3cm,margin=\the\dimexpr\namedlistparameter{subsection}{margin}+\namedlistparameter{subsection}{width}\relax] > > \starttext > > \placecontent > > \chapter{One} > > \section{Two} > > \subsection{Three} > > \subsubsection{Four} > > \stoptext > > > 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 : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > ___________________________________________________________________________________ > > ___________________________________________________________________________________ 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 ___________________________________________________________________________________