From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/85194 Path: news.gmane.org!not-for-mail From: Lars Huttar Newsgroups: gmane.comp.tex.context Subject: how to include sans, bold and size in \setuptab[headstyle=???] Date: Mon, 11 Nov 2013 12:00:37 -0500 Message-ID: <52810D35.4000003@sil.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 1384189251 3690 80.91.229.3 (11 Nov 2013 17:00:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 11 Nov 2013 17:00:51 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Nov 11 18:00:57 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 1Vfur7-0005Su-JI for gctc-ntg-context-518@m.gmane.org; Mon, 11 Nov 2013 18:00:53 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3900A101EE; Mon, 11 Nov 2013 18:00:53 +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 WBumbncRWKcG; Mon, 11 Nov 2013 18:00:47 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id CAC2D101F1; Mon, 11 Nov 2013 18:00:47 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 28093101F1 for ; Mon, 11 Nov 2013 18:00:47 +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 KDGyS8141Hfj for ; Mon, 11 Nov 2013 18:00:45 +0100 (CET) Original-Received: from filter3-til.mf.surf.net (filter3-til.mf.surf.net [194.171.167.219]) by balder.ntg.nl (Postfix) with ESMTP id 72D9F101EE for ; Mon, 11 Nov 2013 18:00:44 +0100 (CET) Original-Received: from mail-qe0-f54.google.com (mail-qe0-f54.google.com [209.85.128.54]) by filter3-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id rABH0f2Z019285 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Mon, 11 Nov 2013 18:00:43 +0100 Original-Received: by mail-qe0-f54.google.com with SMTP id 1so4742604qec.13 for ; Mon, 11 Nov 2013 09:00:40 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:content-type:content-transfer-encoding; bh=v0OssWigXy+aNpvEdHRkknZu+0qANn0MGjMyFPmUrEA=; b=kxIH2v3/LgPoKVD3ztE+ZledQzNbB8Rk/7VMDcxwP5SH+D1t4pDiPLBeGaJNbZ0fNB r9C9ynmVbskgbABfO2EfsbU8qYpUUU5foBhWPGTkLUidXndgT2VSDtPTFwU0F3RjeAJo 482XBWflz8yhYWAsFdR6i5eKrAw2ev6cRIx7g8zTj4CDcnWfuRWpIWHASi51fPiq8fqJ 7IQVue6gGK6uPJBhsqBpqgCXPWxpbQTLa93vQf2zoxY2OwH/JbB9yry7bm8JN6Oun4Iv jYbJ5NCESa3dEhLAXQzWpCBvn51D9gJXjZ/lBrCzGId47RR6rkoCmBPP3VI8MVNL4nsd yCHQ== X-Gm-Message-State: ALoCoQkGEYj40oU6Hn+w3Rxbi2bVvWJpJCuOluN037ltyTmiSjtLPBiDg+zX/PamT2lLGZFJrIdI X-Received: by 10.224.119.76 with SMTP id y12mr39815830qaq.58.1384189240720; Mon, 11 Nov 2013 09:00:40 -0800 (PST) Original-Received: from [172.22.10.212] ([162.40.29.3]) by mx.google.com with ESMTPSA id a5sm60215370qae.2.2013.11.11.09.00.39 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 11 Nov 2013 09:00:40 -0800 (PST) User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.128.54; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 06KMh0GdM - 8a890d9aa6e3 - 20131111 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.219 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:85194 Archived-At: Hello, I have the following MWE: \starttext \setuptab[headstyle=ssbfb] \tab{foo} \input knuth \par \stoptext Here, the headstyle specifies a sans font with boldface style, at 1.44 times the current bodyfont size. However, I want to be able to specify an absolute point size, instead of a relative size. I tried variations like \setuptab[headstyle=18pt] but that has no effect: the size remains 12pt, or whatever the default is. If I use \setuptab[headstyle={\switchtobodyfont[18pt]}] then the size takes effect (for the key only, which is what I want). I can combine that with sans: \setuptab[headstyle={\switchtobodyfont[ss, 18pt]}] and that works. But how to mix in boldface? \setuptab[headstyle={\switchtobodyfont[ssbf, 18pt]}] doesn't give sans boldface, but reverts to a serif, non-bold style (at 18pt size). \setuptab[headstyle={\switchtobodyfont[ss, bf, 18pt]}] gives the same results. I finally tried \setuptab[headstyle={\ssbf \switchtobodyfont[18pt]}] and that works! But it seems clunky: it looks like it requires two font switches, which I'm told makes things slower. And I can't help wondering if I'm missing some simpler way. Is there a more efficient or elegant way to do this? Thanks, Lars ___________________________________________________________________________________ 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 ___________________________________________________________________________________