Am 17.07.2013 um 19:46 schrieb Pablo Rodríguez
Dear list,
sorry for posting this again, but I don’t know how to solve this issue and I really need your help.
I have the following sample:
\setuppapersize[A6] \newcounter\LineNote
\setupnote[linenote][paragraph=yes] \setupnotation[linenote][alternative=serried]
\define[2]\Variant {\increment\LineNote \startlinenote[LineNote:\LineNote]{#2}#1% \stoplinenote[LineNote:\LineNote]}
\starttext
\startlinenumbering \dorecurse{10}{\Variant{\showhyphens{legislation}not original}{variant} \Variant{\showhyphens{legibility}origin} {variants} } \stoplinenumbering \stoptext
The problem here is that \Variant gets always #1 not hyphenated, although \showhyphens works fine in that argument.
The cause of this is the \increment command within \Variant. I don’t know why this happens, but the increment is required by \Variant to make sense at all.
I guess this might be a bug. Is there no possible workaround for this?
I have no solution but a better example because it’s a bug in the reference mechanism (also used by line notes) as shown below. \setuppapersize[A6] \starttext \dorecurse{10}{not original } \dorecurse{10}{not \pagereference[test:#1]original } \stoptext The problem is the following code in the reference macros (str-ref.mkvi), when the box code is commented the hyphenation works. \unexpanded\def\strc_references_set_named_reference_indeed#kind#labels#userdata#text% labels userdata text -> todo: userdata {... % will become an option: \ifnum\lastdestinationattribute>\zerocount \dontleavehmode\hbox attr \destinationattribute\lastdestinationattribute\bgroup \strc_references_flush_destination_nodes \egroup \fi} Wolfgang