From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/42384 Path: news.gmane.org!not-for-mail From: "Alan Stone" Newsgroups: gmane.comp.tex.context Subject: Re: how to convert font size to pt number ? Date: Sat, 12 Jul 2008 23:06:40 +0200 Message-ID: <326847810807121406p6b21aad4re0869b2543186567@mail.gmail.com> References: <326847810807121248y4a103bb7xd42775cd0a2bd333@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0513186637==" X-Trace: ger.gmane.org 1215897178 21240 80.91.229.12 (12 Jul 2008 21:12:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 12 Jul 2008 21:12:58 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Sat Jul 12 23:13:46 2008 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1KHmPY-0000sn-Am for gctc-ntg-context-518@m.gmane.org; Sat, 12 Jul 2008 23:13:44 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B18611FD47; Sat, 12 Jul 2008 23:12:49 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 07138-01-2; Sat, 12 Jul 2008 23:12:00 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7D4A71FC24; Sat, 12 Jul 2008 23:12:00 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 23B2A1FC03 for ; Sat, 12 Jul 2008 23:11:53 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 06721-02 for ; Sat, 12 Jul 2008 23:11:03 +0200 (CEST) Original-Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.190]) by ronja.ntg.nl (Postfix) with ESMTP id 01D7F1FC2F for ; Sat, 12 Jul 2008 23:06:40 +0200 (CEST) Original-Received: by nf-out-0910.google.com with SMTP id c10so1142387nfd.44 for ; Sat, 12 Jul 2008 14:06:40 -0700 (PDT) Original-Received: by 10.210.118.7 with SMTP id q7mr7671931ebc.99.1215896800550; Sat, 12 Jul 2008 14:06:40 -0700 (PDT) Original-Received: by 10.210.136.3 with HTTP; Sat, 12 Jul 2008 14:06:40 -0700 (PDT) In-Reply-To: X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 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 X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:42384 Archived-At: --===============0513186637== Content-Type: multipart/alternative; boundary="----=_Part_24900_28931608.1215896800543" ------=_Part_24900_28931608.1215896800543 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Thanks for your quick response Aditya. I've read that too and unfortunately don't find anything on that page that answers my question. Hmmm... Either the question was not clear enough or I've been smoking the carpet... :O) Let's try to formulate it otherwise... With somefont defined through \definetypeface[somefont][...] style={\switchtobodyfont[somefont,huge]} gives a compile error, only, for example, style={\switchtobodyfont[somefont,14pt]} works like in \setuphead[chapter][style={\switchtobodyfont[somefont,14pt]}] I don't want to manually input some pt size but, for example, the \tfc or huge corresponding pt size. Therefore I'm looking for - the ConTeXtMagicCommand to convert \ConTexTMagicCommand[\tfc or huge] to "\tfc or huge size expressed in pt" or - some other ConTeXtSuperMagic trick to display the chapter heading in somefont and \tfc or huge size I guess I could \chapter{\tfc chaptertitle}, however I'm looking for something more generic so I only have to input chapter{chaptertitle}. Cheers, Alan ------=_Part_24900_28931608.1215896800543 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Thanks for your quick response Aditya.

I've read that too and unfortunately don't find anything on that page that answers my question.

Hmmm...

Either the question was not clear enough or I've been smoking the carpet...  :O)

Let's try to formulate it otherwise...

With somefont defined through \definetypeface[somefont][...]

style={\switchtobodyfont[somefont,huge]} gives a compile error,
only, for example, style={\switchtobodyfont[somefont,14pt]} works

like in \setuphead[chapter][style={\switchtobodyfont[somefont,14pt]}]

I don't want to manually input some pt size but, for example, the \tfc or huge corresponding pt size.

Therefore I'm looking for

- the ConTeXtMagicCommand to convert
\ConTexTMagicCommand[\tfc or huge] to "\tfc or huge size expressed in pt"

or

- some other ConTeXtSuperMagic trick to display the chapter heading in somefont and \tfc or huge size

I guess I could \chapter{\tfc chaptertitle}, however I'm looking for something more generic so I only have to input chapter{chaptertitle}.

Cheers,
Alan
------=_Part_24900_28931608.1215896800543-- --===============0513186637== 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============0513186637==--