Skip to Content.
Sympa Menu

texmacs-users - Re: [TeXmacs] Have Enumerate environments share a counter

Subject: mailing-list for TeXmacs Users

List archive

Re: [TeXmacs] Have Enumerate environments share a counter


Chronological Thread 
  • 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



Archive powered by MHonArc 2.6.19.

Top of Page