On 7/22/2015 11:33 PM, talazem@fastmail.fm wrote:
Dear Pablo,
Thank you very much for what you proposed — it did work indeed. I tried to achieve the same at some length this afternoon. I think I understand what is going on in the first macro, but wouldn’t have been able to arrive at the the second one for \variant, or the counter (and still don’t fully understand it). Thanks again.
Hans, Idris, Thomas, and others interested in critical editions: I wonder whether this code — with the user-facing command \variant{#1}{#2} — might be something that could become part of an eventual CritTeXt package.
This is rather specific code and one then ends up with options for either or not the ] and so which then makes it more complex. Better is to collect such things into a module. If there is enough we can always see if some mechanisms are needed. Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------