rgheck <rgh...@bobjweil.com> writes:

> The following patch does as advertised. I think it's fairly
> straightforward, but any comments?

Yes: your are making things unnecessarily complicated :)

I did not do anything because I had to think about the implications in
terms of upgrade compatibility of layout files (probably no much to do,
but I am a bit busy), but the simple solution should look like:

* in stdcounters.inc, add

Counter enumi
  LabelString "\\arabic{enumi}."
End

Counter enumii
  LabelString "(\\alph{enumii})"
End

Counter enumiii
  LabelString "\\roman{enumiii}."
End

Counter enumiv
  LabelString "\\Alph{enumiv}."
End

* in Buffer.cpp, just use textclass.counters().theCounter(enumcounter)
  to get the string. 

Could you check that it works?

JMarc

Reply via email to