From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/85292 Path: news.gmane.org!not-for-mail From: "Jan Tosovsky" Newsgroups: gmane.comp.tex.context Subject: Chapter numbering - applying several commands at once Date: Sun, 17 Nov 2013 20:02:17 +0100 Message-ID: <35520.890975795$1384714947@news.gmane.org> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1384714937 13656 80.91.229.3 (17 Nov 2013 19:02:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 17 Nov 2013 19:02:17 +0000 (UTC) To: "'mailing list for ConTeXt users'" Original-X-From: ntg-context-bounces@ntg.nl Sun Nov 17 20:02:23 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Vi7by-0005pl-QH for gctc-ntg-context-518@m.gmane.org; Sun, 17 Nov 2013 20:02:22 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id CFB931020D; Sun, 17 Nov 2013 20:02:21 +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 A-K6eMD57hbZ; Sun, 17 Nov 2013 20:02:20 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 07B05101F2; Sun, 17 Nov 2013 20:02:20 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E58DE101F2 for ; Sun, 17 Nov 2013 20:02:18 +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 t5-a55m-15sK for ; Sun, 17 Nov 2013 20:02:18 +0100 (CET) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by balder.ntg.nl (Postfix) with ESMTP id 3E09B101EB for ; Sun, 17 Nov 2013 20:02:18 +0100 (CET) Original-Received: from fep12.mx.upcmail.net (fep12.mx.upcmail.net [62.179.121.32]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id rAHJ9Shn028132 for ; Sun, 17 Nov 2013 20:09:28 +0100 Original-Received: from edge02.upcmail.net ([192.168.13.237]) by viefep12-int.chello.at (InterMail vM.8.01.05.05 201-2260-151-110-20120111) with ESMTP id <20131117190217.BBSC7681.viefep12-int.chello.at@edge02.upcmail.net> for ; Sun, 17 Nov 2013 20:02:17 +0100 Original-Received: from emk ([78.102.140.101]) by edge02.upcmail.net with edge id qj2G1m01T2BTW0m02j2G83; Sun, 17 Nov 2013 20:02:17 +0100 X-SourceIP: 78.102.140.101 X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Ac7jx4XVwV7FlWnAS/2DqmGA67Mo/Q== Content-Language: cs X-Bayes-Prob: 0.9946 (Score 4.7, tokens from: @@RPTN) X-CanIt-Geo: ip=62.179.121.32; country=AT; latitude=47.3333; longitude=13.3333; http://maps.google.com/maps?q=47.3333,13.3333&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 01KOH9sXR - aa547a322a35 - 20131117 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.72 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:85292 Archived-At: Dear All, in my book I'd like to precede my titles with the number formated as 'CHAPTER I.', e.g. roman numeral and all this small caped and also in bold as the title itself. In the following definition I can use either: (1) \sc + \setcharactercasing - small caps + lowercased number (but not bold) (2) \smallcaps - bold small caps (but not lowercased number) (3) \setcharactercasing - lowercased number (but not small caps) Idealy I'd like to combine \smallcaps + \setcharactercasing, but this throws an error. I am also considering using just smaller font, but I am facing similar problems as I cannot combine both the casing conversion and e.g. \bfb in single \groupedcommand. I prefer setting the upercased version of Romannumerals as I do not want small roman literals in the TOC or bookmarks. Are there better ways to accomplish this? \definefontfamily[palatino][rm][Palatino Linotype][features={default, quality}] \setupbodyfont[palatino] \setuplabeltext[en][chapter=chapter~] \setuphead[chapter][ alternative=middle, style=\bfc, conversion=Romannumerals, numbercommand=\groupedcommand{\sc \setcharactercasing[word]}{.\blank[0.4cm]}, ] \setupcombinedlist[content][list=chapter, alternative=c] \starttext \completecontent \chapter{Foo}text \chapter{Bar}text \stoptext Thanks, Jan ___________________________________________________________________________________ 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 ___________________________________________________________________________________