[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Texmacs-dev] [patch] std-math.ts: Make the ( and ) configurable.
From: |
Joris van der Hoeven |
Subject: |
Re: [Texmacs-dev] [patch] std-math.ts: Make the ( and ) configurable. |
Date: |
Tue, 29 Nov 2005 12:11:43 +0100 |
User-agent: |
Mutt/1.5.9i |
On Tue, Nov 08, 2005 at 12:01:46PM -0800, Karl Hegbloom wrote:
> The attached diff is what I've done to 'std-math.ts' to make the
> parentheses around matrices configurable, so that I can use [ ] instead
> if I like. At the top of the document, inside the preamble, I write:
>
> \assign matrix-left-symbol \left [
> \assign matrix-right-symbol \right [
>
> ... and it all looks the way I want it to.
>
> Please consider applying this diff to the next release of TeXmacs, since
> several others have asked for the same thing. It leaves the behavior
> exactly as before, with matrices surrounded by left and right ( by
> default.
Yes, this can be done. Notice that the user may also simply redefine
the "matrix" macro, replacing the ( and ) by [ resp. ].
I am not sure whether we should provide an option in the interface
for this kind of things: too many options quickly become confusing.
Or we have to find an elegant way for dealing with minor switches.
Best wishes, Joris
> --- std-math.ts.orig 2005-11-08 11:55:10.000000000 -0800
> +++ std-math.ts 2005-11-08 11:55:21.000000000 -0800
> @@ -61,7 +61,11 @@
> </src-comment>
> </active*>
>
> -
> <assign|matrix|<macro|x|<shrink-inline|<style-with|src-compact|none|<left|(><tformat|<cwith|1|-1|1|-1|cell-halign|c>|<arg|x>><right|)>>>>>
> + <assign|matrix-left-symbol|<left|(>>
> +
> + <assign|matrix-right-symbol|<right|)>>
> +
> +
> <assign|matrix|<macro|x|<shrink-inline|<style-with|src-compact|none|||<value|matrix-left-symbol><tformat|<cwith|1|-1|1|-1|cell-halign|c>|<arg|x>><value|matrix-right-symbol>>>>>
>
>
> <assign|det|<macro|x|<shrink-inline|<style-with|src-compact|none|<left|\|><tformat|<cwith|1|-1|1|-1|cell-halign|c>|<arg|x>><right|\|>>>>>
>
> _______________________________________________
> Texmacs-dev mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/texmacs-dev