From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/4071 Path: main.gmane.org!not-for-mail From: "Giuseppe Bilotta" Newsgroups: gmane.comp.tex.context Subject: Re: [Q] First work cap Date: Wed, 14 Feb 2001 15:51:55 +0100 Sender: owner-ntg-context@let.uu.nl Message-ID: <00a101c096d2$0d95e600$a3ccfea9@nuovo> References: <200102131608.RAA02669@anxur.fi.muni.cz> <3.0.6.32.20010214100010.015a3100@server-1> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1035394762 22594 80.91.224.250 (23 Oct 2002 17:39:22 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 17:39:22 +0000 (UTC) Original-To: "ConTeXt" Xref: main.gmane.org gmane.comp.tex.context:4071 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:4071 Han The Thanh wrote: > >>>> is it possible to make the first word of each chapter as smallcap without > >>>> saying explicitly \cap{someword}? > >>> Hans wrote: > > 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}] > What about a hook in the kernel? \setuphead[headname][firstword=\command] Giuseppe Bilotta Using Microsoft products is like having sex without condoms---but much less pleasurable