Subject: mailing-list for TeXmacs Users
List archive
From : "Sam Liddicott" <address@hidden>- To: address@hidden
- Subject: Re: [TeXmacs] automatic <item> in enumerate
- Date: Wed, 23 Mar 2011 08:48:57 -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 08:02, Sam Liddicott wrote:
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
The answer was to re-define <item> to it's normal definition inside my macro. Just as doing so stopped enumerate-numeric from being recognized as converting to html's <ol> so it seems to stop <item> from being recognized and so it is processed and expanded normally, with literal numbers.
Sam
- Re: [TeXmacs] automatic <item> in enumerate, Sam Liddicott, 03/17/2011
- Re: [TeXmacs] automatic <item> in enumerate, Sam Liddicott, 03/23/2011
- Re: [TeXmacs] automatic <item> in enumerate, Sam Liddicott, 03/23/2011
- Re: [TeXmacs] automatic <item> in enumerate, Sam Liddicott, 03/23/2011
- Re: [TeXmacs] automatic <item> in enumerate, Sam Liddicott, 03/23/2011
- Re: [TeXmacs] automatic <item> in enumerate, Sam Liddicott, 03/23/2011
Archive powered by MHonArc 2.6.19.