jed-users mailing list

[2011 Date Index] [2011 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

[Jed-users-l] [PATCH] TeX mode: Replace three dots by \ldots instead of {\ldots}


[ Sending it again from the email address with which I'm subscribed. ]

In TeX's math mode, using {\ldots} instead of \ldots often leads to
ugly typographic results.

As a simple example, compare e.g.,

$$ (1,2,\ldots, N) $$

with

$$ (1,2,{\ldots}, N) $$

and notice how the spacing between the "last" dot and the comma in
the last case comes out wrong and looks ugly.

So change the automatic replacement of ... from {\ldots} to \ldots
in jed's TeX mode to fix this problem.

PS: It would be useful to change ... to \cdots if the last character
was either + or -, but I don't know how to do that.

---
 lib/texcom.sl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/texcom.sl b/lib/texcom.sl
index 4a75906..5f0151b 100644
--- a/lib/texcom.sl
+++ b/lib/texcom.sl
@@ -236,7 +236,7 @@ define tex_ldots ()
 	  {
 	     go_left (2);
 	     deln (2);
-	     insert ("{\\ldots} ");
+	     insert ("\\ldots ");
 	     return;
 	  }
      }
-- 
1.7.3.4

_______________________________________________
Jed-users-l mailing list
Jed-users-l@xxxxxxxx
http://mailman.jtan.com/mailman/listinfo/jed-users-l


[2011 date index] [2011 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]