The (define-group enumerate algorithmic) idea is good, in fact I just found that I can include this snippet using <extern>, which makes the environment almost natively editable, much as itemize or enumerate.
Using this idea, the indentation in the first line can be fixed. However, several other problems appear (see attachment). In particular Texmacs doesn't let me edit the indented blocks as multiline content anymore.
I think is boils down to these questions:1) How does Texmacs decide whether some macro argument should be editable by the user as "document" or as "inline", i.e. how does it decide whether creating new lines _inside_ an argument using the "return" key should be allowed?
2) I found that quite often, the "Edit source tree" view inserts "document" tags around some argument, which screws up the rendering. They cannot subsequently be changed to "inline" mode and I did not find a way to remove them (even if they only a single argument). I had to edit the .tm in a text editor. What is the proper way to do this?
Jan
myalg-example.pdf
Description: Adobe PDF document
<TeXmacs|1.0.7.10>
<style|<tuple|generic|myalg-style>>
<\body>
<\algorithm|Writing Texmacs Style Files>
<\algorithmic>
<state>Do something
<item><WHILE|(this while was created after the \<less\>item\<gtr\>
change)|(only inline content allowed here and no indentation, document
tag seems to be missing)| (indentation wrong)>
<item><IF|(if was created after the change)|(only inline content
allowed here and no indentation, document tag seems to be missing)>
<item>
<\IF| (<math|\<longleftarrow\>> why is indentation wrong? if was
created before the change, cannot move to same line as ``6:'')>
<state>Use \<less\>meta\<gtr\>+left/right to add cases
<item>(multiline content allowed here)
<|IF|some condition>
<state>Equations work:
<\eqnarray*>
<tformat|<table|<row|<cell|\<varepsilon\>>|<cell|\<rightarrow\>>|<cell|0,<eq-number>>>>>
</eqnarray*>
</IF|<state><math|\<longleftarrow\>> indentation still wrong>
<state>Done.
</algorithmic>
</algorithm>
</body>
<\initial>
<\collection>
<associate|page-type|letter>
</collection>
</initial>
myalg-style.ts
Description: video/vnd.dlna.mpeg-tts
_______________________________________________ Texmacs-dev mailing list [email protected] http://lists.gnu.org/mailman/listinfo/texmacs-dev
