jed-users mailing list

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

LaTeX4Jed: install in homedir, bugs and wishes


Hi,

how can I install L4J in my homedir? The manual tells only the way to
install L4J in $JED_ROOT.

I copied latex.sl and latex.hlp to ~/.jed. Then I thought I can run 'jed
-batch -n -l preparse -f create_dfa_cache(latex.sl)' there, but it fails
with "S-Lang Error: Object not opened: /usr/share/jed/lib/site.slc:
unable to open" How must I call jed?

In the menu "math" _{} and ^{} are interchanged. _{} produces ^{} and
vice versa.

Can L4J support the -sourceposition option of xdvi? I only know the way,
call latex with --source to get this running, but there must be a
package, that you can include with \usepackage that makes xdvi can handle
the sourceposition.

I use =>, ==>, -->, ... as "command" for \Rightarrow, \Longrightarrow,
\longrightarrow. Is it also interesting for you? <=> is easyer to remeber
then a shortcut and faster written the \Leftrightarrow. But I must write
==< for \Longleftarrow and -< for \leftarrow.

#v+
definekey("tex_arrow()", "<", $1);
definekey("tex_arrow()", ">", $1);

define tex_arrow()
{
   push_spot();
   
   bskip_chars("<=-");
   
   if (LAST_CHAR == '>') {
	  if ( looking_at_char('<') ) {
		 go_right(1);
		 if ( looking_at_char('=') ) {
			go_right(1);
			if ( looking_at_char('=') ) {
			   go_left(2);
			   deln(3);
			   insert("{\\Longleftrightarrow}");
			} else {
			   go_left(2);
			   deln(2);
			   insert("{\\Leftrightarrow}");
			}
		 } else if ( looking_at_char('-') ) {
			go_right(1);
			if ( looking_at_char('-') ) {
			   go_left(2);
			   deln(3);
			   insert("{\\longleftrightarrow}");
			} else {
			   go_left(2);
			   deln(2);
			   insert("{\\leftrightarrow}");
			}
		 } else {
			pop_spot();
			insert_char(LAST_CHAR);
		 }
	  } else if ( looking_at_char('=') ) {
			go_right(1);
			if ( looking_at_char('=') ) {
			   go_left(1);
			   deln(2);
			   insert("{\\Longrightarrow}");
			} else {
			   go_left(1);
			   deln(1);
			   insert("{\\Rightarrow}");
			}
		 } else if ( looking_at_char('-') ) {
			go_right(1);
			if ( looking_at_char('-') ) {
			   go_left(1);
			   deln(2);
			   insert("{\\longrightarrow}");
			} else {
			   go_left(1);
			   deln(1);
			   insert("{\\rightarrow}");
			}
		 } else {
			pop_spot();
			insert_char(LAST_CHAR);
		 }
   } else if (LAST_CHAR == '<') {
	  if ( looking_at_char('=') ) {
		 go_right(1);
		 if ( looking_at_char('=') ) {
			go_left(1);
			deln(2);
			insert("{\\Longleftarrow}");
		 } else {
			go_left(1);
			deln(1);
			insert("{\\Leftarrow}");
		 }
	  } else if ( looking_at_char('-') ) {
		 go_right(1);
		 if ( looking_at_char('-') ) {
			go_left(1);
			deln(2);
			insert("{\\longleftarrow}");
		 } else {
			go_left(1);
			deln(1);
			insert("{\\leftarrow}");
		 }
	  } else {
		 pop_spot();
		 insert_char(LAST_CHAR);
	  }
   }
}
#v-

And I think <==>, <->, ... is better to find in the menu then
\Longleftrightarrow. Maybe, you can write the menu entries this way.

It would be nice, if I can set the output format temporaly.
#v+
--- .jed/latex.sl.orig  2003-05-22 00:00:41.000000000 +0200
+++ .jed/latex.sl       2003-05-22 00:04:47.000000000 +0200
@@ -345,8 +345,14 @@
   bat = path_sans_extname (dircat (latex_file_dir, latex_file)) + ".bat";
   
   % TODO: FIX THE WINDOZE CASE!!!
+  if ( prefix_argument (-1) == -1 )
+     LaTeX_Default_Output;
+  else
+     read_with_completion ("dvi,ps,eps,pdf,dvipdf",
+                          "LaTeX output: dvi,ps,eps,pdf,dvipdf",
+                          LaTeX_Default_Output, "", 's');
   
-  switch (LaTeX_Default_Output)
+  switch ( () )
     { case "dvi":
       cmd = LaTeX_Compose_Cmd;
       cmd2 = "";
#v-

Bye, Joerg.

--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.


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