On Nov 9, 2010, at 4:53 PM, Wolfgang Schuster wrote:
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
Yes, this looks good! I use the macro in a slightly more complex situation, so my "real" syntax is \MyLine[<number>][yes|no][<Speaker>]{<line content>} where yes|no determines whether the number should be displayed or not and the third argument (the speaker) is optional; it it's there, it will be typeset in the space at the beginning of the line. Complex, but makes it easy to read my source... Thanks! Thomas