[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Texmacs-dev] New algorithm style - need help
From: |
Jan Lellmann |
Subject: |
Re: [Texmacs-dev] New algorithm style - need help |
Date: |
Sat, 09 Apr 2011 14:28:21 +0200 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2 |
Thanks a lot Sam, that is very helpful. I suspext there are some "document"
tags generated that shouldn't, or they are not properly parsed at the time
where <indent-yes> happens, so Texmacs thinks the paragraph has already
started, and indent-yes has no effect.
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
myalg-example.tm
Description: Text document
myalg-style.ts
Description: video/vnd.dlna.mpeg-tts