From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/4094 Path: main.gmane.org!not-for-mail From: "Giuseppe Bilotta" Newsgroups: gmane.comp.tex.context Subject: Re: [Q] First work cap Date: Fri, 16 Feb 2001 11:49:55 +0100 Sender: owner-ntg-context@let.uu.nl Message-ID: <007c01c09806$64890160$a3ccfea9@nuovo> References: <200102131608.RAA02669@anxur.fi.muni.cz><3.0.6.32.20010214100010.015a3100@server-1> <3.0.6.32.20010215095133.0163eca0@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 1035394783 22823 80.91.224.250 (23 Oct 2002 17:39:43 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 17:39:43 +0000 (UTC) Cc: "ConTeXt" Original-To: "Hans Hagen" Xref: main.gmane.org gmane.comp.tex.context:4094 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:4094 > >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. > Aha! So it's not just me unable to work it out correctly! It *is* hard to implement ... I tried \def\DoCap{\NiceDroppedCaps{}{cmr12}{0pt}{2}} \def\CapFirst{\EveryPar{\EveryPar{}\DoCap}} \setuphead[subject][after=\CapFirst] and the results are far from perfect, even when initial paragraphs are long enough ... The Cap gets in the margin, and the subsequent lines are too much indented ... can it depend on the fact that first paragraphs are not indented in my setup? Giuseppe Bilotta Using Microsoft products is like having sex without condoms---but much less pleasurable