Skip to Content.
Sympa Menu

texmacs-users - Re: [TeXmacs] automatic <item> in enumerate

Subject: mailing-list for TeXmacs Users

List archive

Re: [TeXmacs] automatic <item> in enumerate


Chronological Thread 
  • From: "Sam Liddicott" <address@hidden>
  • To: address@hidden
  • Subject: Re: [TeXmacs] automatic <item> in enumerate
  • Date: Wed, 23 Mar 2011 08:02:56 -0000
  • Envelope-to:
  • Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAAAXNSR0IArs4c6QAAADxQTFRF NTdQY2Z/i286eHFugnNXoJBwm5GCs5VeoqO0ua+fwLCQ4c2q19C81NDF4eLr/unQ/PTf/fXW+/rq /f/7XKo76wAAAAlwSFlzAAALEwAACxMBAJqcGAAAAi9JREFUSMetloGSqyAMRVsFNAQkxP//15cE 62rFdt/MZqbTVu/hBhLEx/qf8fgDIAN455wHyPk7wCIe9nA+fwGSH87hgD8AHPfRpy2GwdMtcBh+ mg4Ech9Ih+RNixJKDLEL0GF8VLkSojePHrDlryNijbFW8zBg8PUKbBOI6D1WCV5Rf2DzxCtgBlMs tRRVW5LyVW3ew1TfAZZ6RcQicpb4yZmaC74DJADK6BdATOrUAbJzsZie+K22ZnEBknNYysvhVH6u 1X8CqAe4DuANoPoOrAbsHXUARJ5knc5z4EyyTnHoAqj7xvkYIdk65AwhyEZKMusOIDV2QQQaCnDQ gBiDR3RdIEb5CBESt2wgQJI0Yx/Agphg1MgNsD+QkszM9wHVPx/PeQOW+fmcR9DF8+4CyCJhCuP8 fDzmBbLqs8JzMODqYNfDvKhoGYM2lDosy5jlRozccRAgrPM8iygQS3Mv87IugUgKlC7NZ6liuy4r uresVq5QuQAr09ZKEga8OkluyKXeQ6Bs3SrtqgC1pWLNqAfwDhBnB+sK8OrVL4D4h1B4zWPWhJhu gPUHKA5EwSMYUMsdQK+UKDhIOTSHeg+8HCoTOGtB/gwcl4mSdGybwXegPWhM/RHYKwchkckhUNMX 6j7ueQNScLbZZOPRxaADyO2UQCJpl7wbnE6gQ+ksWjpngxOwF1tF5ecP3R6KB+AQxPfHLncQ+nKw 06fhu68OTIfJ869eTtg22l+9zfwDK3mKl5BFHMYAAAAASUVORK5CYII=


On 23/03/11 07:31, Sam Liddicott wrote:


On 17/03/11 16:21, Sam Liddicott wrote:


On 15/07/10 18:04, Joris van der Hoeven wrote:
On Thu, Jul 15, 2010 at 02:48:16PM +0100, Sam Liddicott wrote:
Why don't I get automatic<item> tags in my enumerate:
<new-list|enumerate-me|<value|aligned-dot-item>|<macro|x|-<arg|x>->>
like the built-in enumerate-roman does?

I can't find any drd's that relate to this.
See itemize-tag in std-text-drd.scm

Thanks - that worked well.

When I export html (apart from \0 breaking it) my code isn't exported in an html <ol>

Any hints on how to manage that?

Looking in ./src/TeXmacs/progs/convert/html/tmhtml.scm I think the best thing for me to do is to have my macro use enumerate-numeric inside, even if I re-define it, that way the exporter should still number it.

Hmmm... if I use enumerate-numeric inside my macro, then I do get numbering in the exported html, but if I override enumerate-numeric in my macro:

<with|enumerate-numeric|<macro|......>|...>

then I lose the numbering in the html export.

Which puzzles me as ./src/TeXmacs/progs/convert/html/tmhtml.scm suggests the magic is all in the name...

But in fact if I redefine enumeric-numeric at the beginning of the document (with it's normal definition) like this:
<new-list|enumerate-numeric|<value|aligned-dot-item>|<value|identity>>

then it stops numbering items for html export...

grrr

I was going to have to fix enumerate output anyway so number didn't have to start at 1 (which html supports) but I may as well work on having explicit numbers emitted, perhaps with <specific|html|...> or something

Sam



Archive powered by MHonArc 2.6.19.

Top of Page