From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/34108 Path: news.gmane.org!not-for-mail From: "Roy Zuo" Newsgroups: gmane.comp.tex.context Subject: Re: Section title font define Date: Tue, 3 Apr 2007 19:17:16 +0800 Message-ID: References: <115224fb0704030340u757a1891n8ff843535e1e74f@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="===============1062114212==" X-Trace: sea.gmane.org 1175599057 8683 80.91.229.12 (3 Apr 2007 11:17:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 3 Apr 2007 11:17:37 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Tue Apr 03 13:17:29 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 1HYh0y-00016A-F1 for gctc-ntg-context-518@m.gmane.org; Tue, 03 Apr 2007 13:17:28 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B893E20426; Tue, 3 Apr 2007 13:17: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 04058-01; Tue, 3 Apr 2007 13:17:20 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4FD1F20421; Tue, 3 Apr 2007 13:17:20 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 60CB220421 for ; Tue, 3 Apr 2007 13:17:19 +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 04057-01-15 for ; Tue, 3 Apr 2007 13:17:17 +0200 (CEST) Original-Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.175]) by ronja.ntg.nl (Postfix) with ESMTP id B30AA20418 for ; Tue, 3 Apr 2007 13:17:16 +0200 (CEST) Original-Received: by ug-out-1314.google.com with SMTP id m2so295016uge for ; Tue, 03 Apr 2007 04:17:16 -0700 (PDT) Original-Received: by 10.66.242.20 with SMTP id p20mr585820ugh.1175599036138; Tue, 03 Apr 2007 04:17:16 -0700 (PDT) Original-Received: by 10.67.75.17 with HTTP; Tue, 3 Apr 2007 04:17:16 -0700 (PDT) In-Reply-To: <115224fb0704030340u757a1891n8ff843535e1e74f@mail.gmail.com> 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:34108 Archived-At: --===============1062114212== Content-Type: multipart/alternative; boundary="----=_Part_1449_4482158.1175599036077" ------=_Part_1449_4482158.1175599036077 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Thanks Wolfgang and Mari! You are really nice. I have never noticed that Sanjoy's Hello World includes so many ConTeXt features, and it is really great! I think I have to carefully read that Hello World source before starting my thesis. Yours, Roy On 4/3/07, Wolfgang Schuster wrote: > > > > 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 > > > > _______________________________________________ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context > > ------=_Part_1449_4482158.1175599036077 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Thanks Wolfgang and Mari! You are really nice.
I have never noticed that Sanjoy's Hello World includes so many ConTeXt features, and it is really great! I think I have to carefully read that Hello World source before starting my thesis.

Yours,

Roy

On 4/3/07, Wolfgang Schuster <schuster.wolfgang@googlemail.com> wrote:


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



_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


------=_Part_1449_4482158.1175599036077-- --===============1062114212== 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 --===============1062114212==--