On Thursday 15 January 2009 11:26:57 am Hans Hagen wrote:

> Bart C. Wise wrote:

> > The code below changes the first line. However, there are no spaces

> > between words and therefore, the justification is also off. You can even

> > leave the first parameter empty and you get the same results.

> >

> > Am I missing something?

> >

> > \starttext

> >

> > \TreatFirstLine {\sc} {} {} {}

>

> \TreatFirstLine {\sc} {} {} { }

> ^ space

>

> attached is the output of a mkiv variant (i couldn't resist trying to do

> it otherwise; watch how this one nicely hyphenates)

>

Hans,

Your output looks great. However, with the code below, I still get no spaces on the first line.

Compile (w/ beta): texexec --lua <file>

ConTeXt ver: 2009.01.14 11:29 MKIV fmt: 2009.1.14

Luatex: Version snapshot-0.31.3-2008123108

I also tried with the "current" version as well.

\starttext

\TreatFirstLine{\sc}{}{}{}

The combined color and font effect is also possible,

although one must be careful in using macros that accumulate

grouping, but the commands used here are pretty save in that

respect.

\stoptext

Hints?

Thanks,

Bart