Am 12.04.2012 um 23:34 schrieb Kip Warner:
On Tue, 2012-04-10 at 11:21 +0200, Wolfgang Schuster wrote:
Am 10.04.2012 um 03:14 schrieb Kip Warner:
Hey list,
Is there any means of setting up footnotes such that whenever they are tangential, they are automatically separated by a comma delimiter?
No there isnt but its not hard hard to add a separator because its already possible to change the distance between the numbers.
Would that be done with \setupnotation or maybe \setupfootnotes? Either way, I'm not sure how to do this.
I wrote a patch for the footnote code where you can set a symbol between the numbers with \setupnote[footnote][textseparator=…] but it’s decision to include it. \unprotect \unexpanded\def\strc_notes_inject_symbol {\removeunwantedspaces \doifitalicelse\/\donothing % Charles IV \footnote{the fourth} \ifdim\lastkern=\notesignal % \kern\noteparameter\c!distance % yes or no note font? or main text \strc_notes_inject_separator \fi \nobreak \begingroup \currentconstructionsynchronize % this flushes the data to the list \strc_notes_register_note_page % this registers the symbol page number (late) \strc_notes_interaction_check_inline \strc_notes_set_style_color_inline\c!textstyle\c!textcolor \hbox \strc_notes_get_reference_attribute_symbol \bgroup \dostarttagged\t!descriptionsymbol\currentnote \dotagsetnotesymbol \noteparameter\c!textcommand{\ctxcommand{noteprefixednumber("\currentnote",\currentnotenumber)}}% % the next one can cycle so we need to make sure it has no advance width \doif{\noteparameter\c!indicator}\v!yes\strc_notes_inject_pointer \dostoptagged \egroup \endgroup \dostoptagged % check \globallet\lastnotesymbol\relax} \unexpanded\def\strc_notes_inject_dummy % temp hack {\removeunwantedspaces \doifitalicelse\/\donothing % Charles IV \footnote{the fourth} \ifdim\lastkern=\notesignal % \kern\noteparameter\c!distance % yes or no note font? or main text \strc_notes_inject_separator \fi \nobreak \hbox to .5em{}% \globallet\lastnotesymbol\relax} \def\strc_notes_inject_separator {\edef\p_textseparator{\noteparameter\c!textseparator}% \ifx \p_textseparator \empty \kern\noteparameter\c!distance \else \nobreak\hbox\bgroup \strc_notes_interaction_check_inline \strc_notes_set_style_color_inline\c!textstyle\c!textcolor \noteparameter\c!textcommand{\p_textseparator}% \kern\noteparameter\c!distance \egroup\nobreak \fi} \protect \setupnote [footnote] [ textseparator={,}, textstyle=italic, textcolor=red, distance=.5em, ] \starttext Text\footnote{One}\footnote{Two}\footnote{Three} \stoptext Wolfgang