texmacs-dev
[Top][All Lists]
Advanced

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

Re: [Texmacs-dev] langle in text export


From: Sam Liddicott
Subject: Re: [Texmacs-dev] langle in text export
Date: Wed, 15 Dec 2010 09:56:41 -0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.14pre) Gecko/20101214 Lanikai/3.1.8pre


I've loosely contrived this command: except-specific-verbatim

<assign|except-specific-verbatim|<macro|body|<specific|screen|<arg|body>><specific|printer|<arg|body>><if*|false|<arg|body>>>>

Which tries to render for output except verbatim output. It works because <if*|false|...> doesn't reserve space for verbatim export.

Where I have been using langle I now use:
<except-specific-verbatim|<with|mode|math|<left|langle>>>

And thus manage to squash its appearance.

More generally, nv-langle and nv-rangle can have overridable substitution characters used in verbatim mode:

<assign|specific-verbatim|<macro|x|<with|color|white|magnification|0.01|<arg|x>>>>

<assign|except-specific-verbatim|<macro|body|<specific|screen|<arg|body>><specific|printer|<arg|body>><if*|false|<arg|body>>>>

<assign|nv-langle-subst|\<less\>>

<assign|nv-rangle-subst|\<gtr\>>

<assign|nv-langle|<macro|<except-specific-verbatim|<with|mode|math|<left|langle>>><if|<provides|nv-langle-subst>|<specific-verbatim|<value|nv-langle-subst>>>>>

<assign|nv-rangle|<macro|<except-specific-verbatim|<with|mode|math|<right|rangle>>><if|<provides|nv-rangle-subst>|<specific-verbatim|<value|nv-rangle-subst>>>>>

Is there a better way I could define specific-verbatim to avoid output in non-verbatim export? I wish there were an environment variable set during rendering...

On 14/12/10 18:37, Sam Liddicott wrote:


texmacs text export:
  texmacs -s -c wafs.tm wafs.txt -q

has started emitting the words langle and rangle where angle brackets are used, e.g.:
   \<langle\>hello\<rangle\>
comes out as
langlehellorangle

which is clearly un-readable.

A while ago it ignored langle and rangle on output, but if it has to do something, substituting < and > would be better than what it is doing now.

I also note that text export mode inserts blank lines all over the place. This is welcome (it was needed), except in code blocks where mode=code where the blank lines make the text harder to read.

It would be nice if there was a <specific> mode for verbatim output. I'm currently using: <assign|specific-verbatim|<macro|x|<with|color|white|magnification|0.01|<arg|x>>>>

It would be nice if there were an "except" - like specific (except that it reserved space in the output) that did not emit the argument for certain environments.

Then I can have an <except|verbatim|<langle>><specific|verabatim|\<>
so I can at least influence a meaningful text representation of the document.

anyway...

Sam


_______________________________________________
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]