Am 09.11.2010 um 16:05 schrieb Thomas A. Schmitz:

> Thanks Wolfgang, I must remember align=hanging (had a similar problem with 
> footnotes recently). Descriptions may be a way, but would it be possible to 
> mimick my input syntax here:
> 
> \MyLine{5}{Fa.}{This line is short.}
> 
> and define a description that will take "5" as "closesymbol" and "Fa." as 
> "text"? Otherwise, I'd need to define a description for every speaking 
> character.


Another solution:

\setupbodyfont[termes,12pt]

\setupinterlinespace[line=4.5ex]

\setupalign[hanging]

\defineitemgroup[myline][width=1cm,symstyle=bold]

\define[3]\MyLine
  {\startmyline\hsize=7cm
   \sym{#2}#3\wordright[2em]{#1}%
   \stopmyline}

\starttext

\MyLine{5}{Fa.}{This line is short.}

\MyLine{12}{Ma.}{\input knuth }

\MyLine{8}{Pa.}{\input ward }

\stoptext

When you’re going to use this for a long document i suggest an alternative 
method for the input:

\MyLine[lines=...,speaker=...] ... \par

and

\startMyLine[lines=...,speaker=...]
...
\stopMyLine

Wolfgang

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to