From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/85293 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Chapter numbering - applying several commands at once Date: Sun, 17 Nov 2013 20:48:20 +0100 Message-ID: <7233BCF2-A242-47F4-AB81-A0136DB1362D@gmail.com> References: <528912c0.45230f0a.7369.7b98SMTPIN_ADDED_BROKEN@mx.google.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 7.0 \(1822\)) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1384717713 9106 80.91.229.3 (17 Nov 2013 19:48:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 17 Nov 2013 19:48:33 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Nov 17 20:48:39 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 1Vi8Kk-0007Dc-8y for gctc-ntg-context-518@m.gmane.org; Sun, 17 Nov 2013 20:48:38 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 637F11020B; Sun, 17 Nov 2013 20:48:37 +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 Nyp9JhTF6efj; Sun, 17 Nov 2013 20:48:36 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 02116101F2; Sun, 17 Nov 2013 20:48:36 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7C2E5101F2 for ; Sun, 17 Nov 2013 20:48:34 +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 2k-izzD8DmJ0 for ; Sun, 17 Nov 2013 20:48:22 +0100 (CET) Original-Received: from filter1-utr.mf.surf.net (filter1-utr.mf.surf.net [195.169.124.152]) by balder.ntg.nl (Postfix) with ESMTP id 8A646101EB for ; Sun, 17 Nov 2013 20:48:22 +0100 (CET) Original-Received: from mail-bk0-x22d.google.com (mail-bk0-x22d.google.com [IPv6:2a00:1450:4008:c01::22d]) by filter1-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id rAHJmLmi020745 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Sun, 17 Nov 2013 20:48:21 +0100 Original-Received: by mail-bk0-f45.google.com with SMTP id mx13so92220bkb.18 for ; Sun, 17 Nov 2013 11:48:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; bh=GyZMzmkUQ/60e5Ki2zWYyXO4ZD0oaAX3U9nLc0J3wpg=; b=lIXtWF5cQ0jvAR7/pUQa0rprAbzYK3gI1TddoasmmbFAKbfiDLciJ0yaUf0gmjC/v2 uk9Yez9ISJ3BDQDpcgtTlGoo8z8B+GXuCf6hF9PkdGB8oxs2AkWrVqPYX1jfXIa1kn4k Q9D9OQsOyRpfOlAQgO/ahFMGq40RJauH+OZAvuIwkbq0eyxA2rDDNBKqzFkCE0fXBcK0 xxt0JIQPHBvNG5ZPhnL46tzw1CdzY/M4VFQ4dcyy6CAyd0MWqGomLQopMFOjsbe+5XhC IlTHA8QspO+i0cXLaHT5qqLeRo9CvQdxIR9BDzHRHuUIXxc88d1EBHMECu9IBTknTAXt DVzg== X-Received: by 10.204.123.199 with SMTP id q7mr9965887bkr.10.1384717701165; Sun, 17 Nov 2013 11:48:21 -0800 (PST) Original-Received: from keima.localdomain (x2f23af5.dyn.telefonica.de. [2.242.58.245]) by mx.google.com with ESMTPSA id b6sm14248662bko.16.2013.11.17.11.48.18 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 17 Nov 2013 11:48:19 -0800 (PST) In-Reply-To: <528912c0.45230f0a.7369.7b98SMTPIN_ADDED_BROKEN@mx.google.com> X-Mailer: Apple Mail (2.1822) X-Bayes-Prob: 0.0003 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2a00:1450:4008:c01::22d; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 07KOHMlS5 - 9d2cfb13331e - 20131117 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) 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:85293 Archived-At: Am 17.11.2013 um 20:02 schrieb Jan Tosovsky : > 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]}, > ] Inestead of small capitals for the chapter number you can use capitals in combination with a smaller font size. \setuplabeltext[en][chapter=Chapter~] \setuphead [chapter] [alternative=middle, style=\bfc, numberstyle={\setcharactercasing[WORD]\kerncharacters[0.125]\bfa}, numbercommand=\groupedcommand{}{\blank[4mm]}, sectionstopper={.}, inbetween={\blank[4mm]}, conversion=Romannumerals] 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 ___________________________________________________________________________________