From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/4083 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: [Q] First work cap Date: Thu, 15 Feb 2001 09:51:33 +0100 Sender: owner-ntg-context@let.uu.nl Message-ID: <3.0.6.32.20010215095133.0163eca0@server-1> 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="us-ascii" X-Trace: main.gmane.org 1035394773 22720 80.91.224.250 (23 Oct 2002 17:39:33 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 17:39:33 +0000 (UTC) Cc: "ConTeXt" Original-To: "Giuseppe Bilotta" In-Reply-To: <00a101c096d2$0d95e600$a3ccfea9@nuovo> Xref: main.gmane.org gmane.comp.tex.context:4083 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:4083 At 03:51 PM 2/14/01 +0100, Giuseppe Bilotta wrote: >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] I do have some hooks here, for instance for dropped caps (kind of tricky, consider a initial char spanning three lines where the first paragraph is one line) and some day this kind of things will move into the core. There is a supp-fun.tex file that implements some of it. 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 -------------------------------------------------------------------------