Subject: mailing-list for TeXmacs Users
List archive
From : Felix Breuer <address@hidden>- To: Joris van der Hoeven <address@hidden>, address@hidden
- Subject: Re: [TeXmacs] Have Enumerate environments share a counter
- Date: Wed, 20 Oct 2004 19:14:00 +0200
On Tue, Oct 19, 2004 at 11:12:49PM +0200, Joris van der Hoeven wrote:
>
> What about the following macro:
>
> (assign "continue-enumerate"
> (macro "body"
> (document
> (enumerate
> (with "item-nr" (value "last-item")
> (document (arg "body")))))))
Great!
I tried to extend it for use with enumerate-Alpha and came up with the
following rather awkward workaround:
<assign|unnumber-Alpha|<style-with|src-compact|all|<macro|Alpha|<case|<style-with|src-compact|all|<equal|<arg|Alpha>|A>>|1|<equal|<arg|Alpha>|B>|2|<equal|<arg|Alpha>|C>|3|<equal|<arg|Alpha>|D>|4|<equal|<arg|Alpha>|E>|5|<equal|<arg|Alpha>|F>|6|<equal|<arg|Alpha>|G>|7|<equal|<arg|Alpha>|H>|8|<equal|<arg|Alpha>|I>|9|<equal|<arg|Alpha>|J>|10|<equal|<arg|Alpha>|K>|11|<equal|<arg|Alpha>|L>|12>>>>
<assign|continue-enumerate-Alpha|<\macro|body>
<\enumerate-Alpha>
<with|item-nr|<unnumber-Alpha|<value|last-item>>|<arg|body>>
</enumerate-Alpha>
</macro>>
Regards,
Felix
- Have Enumerate environments share a counter, Felix Breuer, 10/19/2004
- Re: [TeXmacs] Have Enumerate environments share a counter, Joris van der Hoeven, 10/19/2004
- Re: [TeXmacs] Have Enumerate environments share a counter, Felix Breuer, 10/20/2004
- Re: [TeXmacs] Have Enumerate environments share a counter, Joris van der Hoeven, 10/20/2004
- Re: [TeXmacs] Have Enumerate environments share a counter, Joris van der Hoeven, 10/20/2004
- Re: [TeXmacs] Have Enumerate environments share a counter, Felix Breuer, 10/20/2004
- Re: [TeXmacs] Have Enumerate environments share a counter, Joris van der Hoeven, 10/19/2004
Archive powered by MHonArc 2.6.19.