texmacs-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Texmacs-dev] New algorithm style - need help


From: Sam Liddicott
Subject: Re: [Texmacs-dev] New algorithm style - need help
Date: Sat, 09 Apr 2011 15:06:19 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.17pre) Gecko/20110408 Lanikai/3.1.10pre


Also, your "problem" may actually stem from the fact that you are using literal "item" in the traditional sense that actually exist in your document tree and computed items in your macro.

If you follow the technique I used in newfangle and have NO literal <item> in the document tree but generate them all it may be easier to get them to line up.

Sam

On 09/04/11 13:28, Jan Lellmann wrote:
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


_______________________________________________
Texmacs-dev mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/texmacs-dev


--
[FSF Associate Member #2325] <http://www.fsf.org/register_form?referrer=2325>

<http://www.openrightsgroup.org/>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]