texmacs-dev
[Top][All Lists]
Advanced

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

Re: [Texmacs-dev] rewrite-inactive


From: Sam Liddicott
Subject: Re: [Texmacs-dev] rewrite-inactive
Date: Fri, 25 May 2012 18:42:14 +0100

I learned that:
1. I can keep just the last argument of a "mark" tag or a "with" tag.
(original "with" tag has become a string value as the first member of the "inline-tag"
2. I can modify the "inline-tag" and promote the first-argument to be the label
3. I guess I can do the same for open-tag
4. I guess for middle-tag I will drop the label as with unquote*
5. I guess for end-tag I just ignore it



On Fri, May 25, 2012 at 6:36 PM, Sam Liddicott <address@hidden> wrote:
Will nobody put me out of my misery?

By means of these inspective macros I can call:
<show|<inactive*|<assign|ll|<macro|x|<inactive|<with|var|value|<indent-both|1cm|1cm|<arg|x>>>>>>>>

and see how an inactive tree is rendered, and whether or not it can be subject to any manipulation to recover the argument to inactive*


<assign|showme|<macro|x|[<get-label|<arg|x>>(<length|<arg|x>>)=<arg|x>]>>

<assign|show-string|<macro|x|<tree|string|<arg|x>>>>

<assign|show-|<xmacro|x|<quasi|<tree|<arg|x|0>|<unquote*|<map-args|show|tuple|x|1>>>>>>

<assign|show-tuple|<macro|x|<quasi|<show-|<get-label|<arg|x>>|<unquote*|<arg|x>>>>>>

<assign|show-with|<macro|x|<quasi|<show-|<get-label|<arg|x>>|<unquote*|<arg|x>>>>>>

<assign|show-mark|<macro|x|<quasi|<show-|<get-label|<arg|x>>|<unquote*|<arg|x>>>>>>

<assign|show-inline-tag|<macro|x|<quasi|<show-|<get-label|<arg|x>>|<unquote*|<arg|x>>>>>>

<assign|show-error|<macro|x|<quasi|<show-|<get-label|<arg|x>>|<unquote*|<arg|x>>>>>>

<assign|show|<macro|x|<compound|<merge|show-|<get-label|<arg|x>>>|<arg|x>>>>

On Fri, May 25, 2012 at 8:46 AM, Sam Liddicott <address@hidden> wrote:
Does anyone have an example of rewrite-inactive called from a texmacs document which doesn't result in: "invalid rewrite-inactive" ?


These all fail

<rewrite-inactive|<length|<tuple|1|2|3>>|once>

<assign|t|once><rewrite-inactive|<length|<tuple|1|2|3>>|<value|t>>

<assign|t|once><rewrite-inactive|<length|<tuple|1|2|3>>|t>

Thanks

Sam



reply via email to

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