From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/4061 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: [Q] First work cap Date: Wed, 14 Feb 2001 10:00:10 +0100 Sender: owner-ntg-context@let.uu.nl Message-ID: <3.0.6.32.20010214100010.015a3100@server-1> References: <200102131608.RAA02669@anxur.fi.muni.cz> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: main.gmane.org 1035394753 22523 80.91.224.250 (23 Oct 2002 17:39:13 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 17:39:13 +0000 (UTC) Cc: Han The Thanh , ConTeXt List Original-To: Berend de Boer In-Reply-To: <3A8974F4.60503@pobox.com> Xref: main.gmane.org gmane.comp.tex.context:4061 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:4061 At 06:55 PM 2/13/01 +0100, Berend de Boer wrote: >Han The Thanh wrote: > >>>> is it possible to make the first word of each chapter as smallcap without >>>> saying explicitly \cap{someword}? >>> >>> >>> Use \Caps. >> >> >> if I have some huge document with a lot of >> >> \chapter{abc} >> >> >> already, how can I do it without inserting \Caps to every word after a >> chapter? > > >Oops, didn't read your question carefully. Forget my answer. As for your >question: I don't know. Pretty hard I think. Well, pretty easy actually -) % output=pdftex interface=en \starttext \unprotect \def\doHandleFirstWord#1 {{\sc#1}\space} \def\HandleFirstWord {\EveryPar{\EveryPar{}\doHandleFirstWord}} \setuphead[chapter][page=,after={\blank[2*big]\HandleFirstWord}] \chapter{bla} Some text some text some text some text Some text some text some text some text \chapter{bla} Some text some text some text some text Some text some text some text some text \chapter{bla} Some text some text some text some text Some text some text some text some text \stoptext Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com -------------------------------------------------------------------------