From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/34106 Path: news.gmane.org!not-for-mail From: "Wolfgang Schuster" Newsgroups: gmane.comp.tex.context Subject: Re: Section title font define Date: Tue, 3 Apr 2007 12:40:18 +0200 Message-ID: <115224fb0704030340u757a1891n8ff843535e1e74f@mail.gmail.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0485413542==" X-Trace: sea.gmane.org 1175596848 30314 80.91.229.12 (3 Apr 2007 10:40:48 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 3 Apr 2007 10:40:48 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Tue Apr 03 12:40:45 2007 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 1HYgRH-0006gX-BK for gctc-ntg-context-518@m.gmane.org; Tue, 03 Apr 2007 12:40:35 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id DF4FC203E6; Tue, 3 Apr 2007 12:40:34 +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 31627-02; Tue, 3 Apr 2007 12:40:30 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id DB4FA203DD; Tue, 3 Apr 2007 12:40:29 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E4964203DD for ; Tue, 3 Apr 2007 12:40:26 +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 31198-09-2 for ; Tue, 3 Apr 2007 12:40:23 +0200 (CEST) Original-Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.246]) by ronja.ntg.nl (Postfix) with ESMTP id E1760203DC for ; Tue, 3 Apr 2007 12:40:22 +0200 (CEST) Original-Received: by an-out-0708.google.com with SMTP id d33so1534614and for ; Tue, 03 Apr 2007 03:40:19 -0700 (PDT) Original-Received: by 10.100.124.5 with SMTP id w5mr4209705anc.1175596818911; Tue, 03 Apr 2007 03:40:18 -0700 (PDT) Original-Received: by 10.100.106.19 with HTTP; Tue, 3 Apr 2007 03:40:18 -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:34106 Archived-At: --===============0485413542== Content-Type: multipart/alternative; boundary="----=_Part_6265_10837878.1175596818833" ------=_Part_6265_10837878.1175596818833 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline 2007/4/3, Roy Zuo : > > Hi all, > > I am going to write my thesis with ConTeXt. The problem is that our > University wants chapter titles to be 18 points while body text is 11 > points. I do not want to use \switchtobodyfont every time I type a chapter > title, but I have no idea how to make it a style in the setup area. > Any hints? Thanks a lot. > > Yous, > > Roy Hi Roy, \definefont[chapterfont][Sans at 18pt] \setuphead[chapter][style=\titlefont] \setupbodyfont[12pt] \starttext \chapter{Knuth} \input knuth \stoptext Wolfgang ------=_Part_6265_10837878.1175596818833 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline

2007/4/3, Roy Zuo <roylzuo@gmail.com>:
Hi all,

I am going to write my thesis with ConTeXt. The problem is that our University wants chapter titles to be 18 points while body text is 11 points. I do not want to use \switchtobodyfont every time I type a chapter title, but I have no idea how to make it a style in the setup area.
Any hints? Thanks a lot.

Yous,

Roy

Hi Roy,

\definefont[chapterfont][Sans at 18pt]
\setuphead[chapter][style=\titlefont]
 
\setupbodyfont[12pt]

\starttext

\chapter{Knuth}

\input knuth

\stoptext

Wolfgang


------=_Part_6265_10837878.1175596818833-- --===============0485413542== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context --===============0485413542==--