From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/85195 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: how to include sans, bold and size in \setuptab[headstyle=???] Date: Mon, 11 Nov 2013 18:27:52 +0100 Message-ID: <52811398.7040506@gmail.com> References: <52810D35.4000003@sil.org> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1664163487==" X-Trace: ger.gmane.org 1384190882 24566 80.91.229.3 (11 Nov 2013 17:28:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 11 Nov 2013 17:28:02 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Nov 11 18:28:05 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 1VfvHN-0000bI-3u for gctc-ntg-context-518@m.gmane.org; Mon, 11 Nov 2013 18:28:01 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 32E02101F1; Mon, 11 Nov 2013 18:28:00 +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 LUaMF+HX4XQi; Mon, 11 Nov 2013 18:27:58 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 87381101F2; Mon, 11 Nov 2013 18:27:58 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5AF03101F2 for ; Mon, 11 Nov 2013 18:27:57 +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 R+GrhDcuU-pi for ; Mon, 11 Nov 2013 18:27:56 +0100 (CET) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id 33E11101F1 for ; Mon, 11 Nov 2013 18:27:56 +0100 (CET) Original-Received: from mail-bk0-x22a.google.com (mail-bk0-x22a.google.com [IPv6:2a00:1450:4008:c01::22a]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id rABHRtZF000880 for ; Mon, 11 Nov 2013 18:27:55 +0100 Original-Received: by mail-bk0-f42.google.com with SMTP id w16so1839868bkz.29 for ; Mon, 11 Nov 2013 09:27:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type; bh=xrMTCvbRldudHfYX/NrRlJFhNlx7NXZWLOJlPn+SGF0=; b=FdTOfCnd2+8VCNQOH93QWVb3KK2y1p67o2NILwRlZ1ddGOfaw/VCnfUZU71BbZtcZn Gn2DI7xXKANxbBcjRGUvDgmUHodJZn42xUlpf9SdRxSuWJfknITEtPR7rk3oF6aE5oCb lbHMM13RtFK503NpiwYfUO5d5YWvh43wx7lka99RsoT5i3iYUcd6uTmJOufg/ZPPxs20 fFAmo1mpeoJZq7Rl7dFKetd3f0xqLg7YwWoKEjS5zfNYPmcrl2J4Gr0XnncS+CumvvEi rhpZBdNbDI74bBU1DBwaMv5xq9HZhRnuYRwA1Ls8sLYeOL4MiJJIqlxq2BxnJ05f0rYr e2/w== X-Received: by 10.204.123.199 with SMTP id q7mr22725724bkr.10.1384190874858; Mon, 11 Nov 2013 09:27:54 -0800 (PST) Original-Received: from keima.localdomain (x2f24629.dyn.telefonica.de. [2.242.70.41]) by mx.google.com with ESMTPSA id l9sm15114631bkg.0.2013.11.11.09.27.53 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 11 Nov 2013 09:27:54 -0800 (PST) User-Agent: Postbox 3.0.8 (Macintosh/20130427) In-Reply-To: <52810D35.4000003@sil.org> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2a00:1450:4008:c01::22a; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03KMhrT9z - 4babb1607a42 - 20131111 (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:85195 Archived-At: This is a multi-part message in MIME format. --===============1664163487== Content-Type: multipart/alternative; boundary="------------010501080501070801050600" This is a multi-part message in MIME format. --------------010501080501070801050600 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit > Lars Huttar > 11. November 2013 18:00 > Hello, I have the following MWE: > \starttext > > \setuptab[headstyle=ssbfb] > \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? > \definefont[BigBoldSans][SansBold at 18pt] \setuptab[headstyle=BigBoldSans] Wolfgang --------------010501080501070801050600 Content-Type: multipart/related; boundary="------------030208070009000201010703" --------------030208070009000201010703 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit
11. November 2013 18:00
Hello, I have the following MWE:
\starttext

\setuptab[headstyle=ssbfb]


\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?

\definefont[BigBoldSans][SansBold at 18pt]

\setuptab[headstyle=BigBoldSans]

Wolfgang
--------------030208070009000201010703 Content-Type: image/jpeg; x-apple-mail-type=stationery; name="compose-unknown-contact.jpg" Content-Transfer-Encoding: base64 Content-ID: Content-Disposition: inline; filename="compose-unknown-contact.jpg" /9j/4AAQSkZJRgABAQEARwBHAAD/2wBDAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEC AQEBAQEBAgICAgICAgICAgICAgICAgICAgICAgICAgICAgL/2wBDAQEBAQEBAQICAgICAgIC AgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgL/wAAR CAAZABkDAREAAhEBAxEB/8QAGAAAAwEBAAAAAAAAAAAAAAAABgcICQr/xAA0EAABAwMCAgUK BwAAAAAAAAACAQMEBQYRABITIQcUMUF2CBUXIjI2N0JRtVRWkZOV0dL/xAAYAQEAAwEAAAAA AAAAAAAAAAADAAEEAv/EACQRAAICAAQGAwAAAAAAAAAAAAABAhEDMrHREyExM0FxgfDx/9oA DAMBAAIRAxEAPwDuEt+gW/ULet6oVC3rfqNQqFv0OfPn1GhUqfOmzZtKZlS5UqZMaNwzNwiJ VIl7eXLCaZIGwBl3TY8epPx2+jy2ZNPjvkwc9uhW8j7nCPhvOsQliYIeS7cvCpp8o50qwrC4 v3lsNSDbdmTEhvs2tahxpfV3WnmbbozJEw/gwdadbYExVRXKEKoSdvJcaOSqxE7/AAiX0gXx +a69/JSf9alIlste0VzaNpeFrcT9KKymotyiaZ0KRCnzacoE7Kjzn4gi2KqUh3jqDHDHv4mR UfruTWlMzlVUKIVNp9GguEJnAh0+IZjyAiisgyRDnu5azS8miKqjOTVkKqS/psG37fo1Fbab eg25b8eZPeFJBBJSjMG5HjMeyihnaauZwe4OGiju13GAcpOwBeN+U8/IkGbsiS8b7ryogmbz hbyc9REROfZhERO5ETShjPtvpGqTUyLErytS4siSwx5x2tRH4hPOI0DkjZtaJtFxuVEbIUUi yeNujlBUJGbJN6nM/Cyf2Hf60YgjvKA+NPSP4gT7axpcPtr51YWJnYn9dnAQWl722p4ot37y zqnlfp6FrqbwawG8/9k= --------------030208070009000201010703-- --------------010501080501070801050600-- --===============1664163487== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============1664163487==--