From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/69863 Path: news.gmane.org!not-for-mail From: "Christian" Newsgroups: gmane.comp.tex.context Subject: Re: itemize textstyle Date: Thu, 7 Jul 2011 20:19:31 +0200 Message-ID: <002101cc3cd2$6af399d0$40dacd70$@gmx.de> References: <001601cc3cb1$32766680$97633380$@gmx.de> <272A94B7-0208-442A-9CAF-EF42A27613BE@googlemail.com> <001c01cc3cc6$658c33a0$30a49ae0$@gmx.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" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1310062790 3654 80.91.229.12 (7 Jul 2011 18:19:50 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 7 Jul 2011 18:19:50 +0000 (UTC) To: "'mailing list for ConTeXt users'" Original-X-From: ntg-context-bounces@ntg.nl Thu Jul 07 20:19: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 1QetAv-0007F8-NK for gctc-ntg-context-518@m.gmane.org; Thu, 07 Jul 2011 20:19:45 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E90D8CAE0D; Thu, 7 Jul 2011 20:19: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 9VXipu0iMjpq; Thu, 7 Jul 2011 20:19:42 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D68C4CAE07; Thu, 7 Jul 2011 20:19:41 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 71B68CAE07 for ; Thu, 7 Jul 2011 20:19: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 mT1nK3Ir0lPm for ; Thu, 7 Jul 2011 20:19:38 +0200 (CEST) Original-Received: from filter1-nij.mf.surf.net (filter1-nij.mf.surf.net [195.169.124.152]) by balder.ntg.nl (Postfix) with ESMTP id A54BFCAC8D for ; Thu, 7 Jul 2011 20:19:38 +0200 (CEST) Original-Received: from mailout-de.gmx.net (mailout-de.gmx.net [213.165.64.23]) by filter1-nij.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with SMTP id p67IJbwX003466 for ; Thu, 7 Jul 2011 20:19:38 +0200 Original-Received: (qmail invoked by alias); 07 Jul 2011 18:19:36 -0000 Original-Received: from f053210060.adsl.alicedsl.de (EHLO christianPC) [78.53.210.60] by mail.gmx.net (mp057) with SMTP; 07 Jul 2011 20:19:36 +0200 X-Authenticated: #61879178 X-Provags-ID: V01U2FsdGVkX18MtTt39yEMcbzqiNW4yhd9xphwUxa/NI9xeKuHxx 6FE7t90OZuUuUM In-Reply-To: X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQIxhoUf5kDgqkb7Uc+cshu73qpaPgFAnAHgAmzDl4ECSCg6GZPm5Hxg Content-Language: de X-Y-GMX-Trusted: 0 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=213.165.64.23; country=DE; latitude=51.0000; longitude=9.0000; http://maps.google.com/maps?q=51.0000,9.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 07F56jBPM - 673787eb7ecc - 20110707 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.152 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:69863 Archived-At: > >> \setupitemize[1][style=\bf\setff{smallcaps}] > >> \setupitemize[3][style=\it] > >> \setupitemize[4][style=\tfx,color=darkgray] > > > > I already tried the "sytle" parameter (option?). But it has no effect > > :( Does it work for you? > > Wrong key, style is for the symbol/number of the item. A real setup key for > the content isn't available and the best i can do (without extra markup > around each entry) is the following. > > \definefontfeature[smcp][smcp=yes] > > \setupitemize[1][command=\bf\addff{smcp}] > \setupitemize[2][command=\tf\subfs{smcp}] > \setupitemize[3][command=\it] > \setupitemize[4][command=\tf\darkgray,color=black] > > \setupbodyfont[palatino] > > \starttext > > \startitemize > \item One > \startitemize > \item Two > \startitemize > \item Three > \startitemize > \item Four > \stopitemize > \stopitemize > \stopitemize > \stopitemize > > \stoptext > > With some extra markup a better result is possible: > > \definefontfeature[smcp][smcp=yes] > > \definestartstop[itemzero] [before=\startitem,after=\stopitem,] > \definestartstop[itemone] [itemzero][style=\bf\addff{smcp}] > \definestartstop[itemtwo] [itemzero][style=\tf] > \definestartstop[itemthree][itemzero][style=\it] > \definestartstop[itemfour] [itemzero][style=\tfx,color=darkgray] > > \setupbodyfont[palatino] > > \starttext > > \startitemize > \startitemone One \stopitemone > \startitemize > \startitemtwo Two \stopitemtwo > \startitemize > \startitemthree Three \stopitemthree > \startitemize > \startitemfour Four \stopitemfour > \stopitemize > \stopitemize > \stopitemize > \stopitemize > > \stoptext > > What you can also do is to ask Hans for style and color keys to change the > layout of the itemize content (would then only be available when you use > \startitem ... \stopitem). Thank you very much for this example! This is already more than enough for a starting point. I guess the style and color keys for items might be an idea to hold on to. But at the moment I neither do want to push this, nor is there the urgent need because of your code. Also, there is surely enough work to do with more important stuff ;) Thanks again! ___________________________________________________________________________________ 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 ___________________________________________________________________________________