jed-users mailing list

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

Re: New LaTeX mode on CTAN


On Wed, 4 Dec 2002 07:48:43 +0100 (CET) wrote Guido Gonzato <ggonza@xxxxxx>:

> Hello guys & gals,
> 
> my LaTeX mode for jed has been accepted by the folks at the Comprehensive
> TeX Archive Network, and you'll find it in the /support/jed subdirectory
> of all CTAN mirrors; e.g. ftp.dante.de/tex-archive/support/jed

Congratulations.

I got a patch to the version 1.2.5 from
  http://profs.sci.univr.it/~gonzato/jed/index.html
adding eps to the output options. You might find this handy, e.g. to process
gnuplot pslatex output for inclusion in your document as eps.

It also changes the 
   define latex_mode 
to
   public define latex_mode 
a convention that allows automatic insertion to the commands-to-autoload
by a script.


Moreover I have some ideas for further improvements/simplifications
(mostly inspired from the way LyX works):

Highlight for comment environment?

* Run Latex twice (thrice) if labels may have changed.

* Run bibtex automatically and Latex again, if there are undefined references.

* Update/Create the dvi/ps/pdf file from tex if not present when
  Viewing/Printing

* An extra file for the templates (maybe one for all types). Consider using
  templates.sl for this task.

Günter Milde

--
Milde at ife.et.tu-dresden.de


Here is the patch:


--- latex.sl        Wed Dec  4 09:13:27 2002
+++ latex-1.2.5.1.sl        Wed Dec  4 09:13:30 2002
@@ -40,7 +40,7 @@
 
 % custom variables
 
-% output profile: "dvi", "ps", "dvipdf", "pdf"
+% output profile: "dvi", "ps", "eps", "dvipdf", "pdf"
 custom_variable ("LaTeX_Default_Output", "dvi");
 custom_variable ("LaTeX_Indent", 2);
 custom_variable ("LaTeX_Article_Default_Options", "a4paper,12pt");
@@ -83,6 +88,7 @@
 static variable LaTeX_Compose_Pdf_Cmd = "pdflatex" +
   " -interaction=nonstopmode";
 static variable LaTeX_Dvips_Cmd = "dvips";
+static variable LaTeX_Eps_Options = " -i -E"; % every page a file, eps output
 static variable LaTeX_Dvipdf_Cmd = "dvipdf";
 static variable LaTeX_Bibtex_Cmd = "bibtex";
 static variable LaTeX_Makeindex_Cmd = "makeindex";
@@ -140,7 +146,7 @@
 
 define close_latex_parse_errors ()
 {
-  setbuf_info (getbuf_info () & 0xFE); % not modified
+  set_buffer_modified_flag(0);
   set_readonly (1);
   delbuf (whatbuf());
 }
@@ -231,8 +230,8 @@
 {
   variable default = LaTeX_Default_Output;
   LaTeX_Default_Output =
-    read_with_completion ("dvi,ps,pdf,dvipdf",
-                          "LaTeX output: dvi,ps,pdf,dvipdf",
+    read_with_completion ("dvi,ps,eps,pdf,dvipdf",
+                          "LaTeX output",
                           default, "", 's');
 }
 
@@ -259,6 +258,10 @@
       cmd = LaTeX_Compose_Cmd;
       cmd2 = LaTeX_Dvips_Cmd;
     }
+    { case "eps":
+      cmd = LaTeX_Compose_Cmd;
+      cmd2 = LaTeX_Dvips_Cmd + LaTeX_Eps_Options;
+    }
     { case "dvipdf":
       cmd = LaTeX_Compose_Cmd;
       cmd2 = LaTeX_Dvipdf_Cmd;
@@ -1789,7 +1792,7 @@
 % There are way too many key-bindings for this mode.
 % Please have a look at the menus!
 %!%-
-define latex_mode ()
+public define latex_mode ()
 {
   latex_keymap ();
   set_mode ("LaTeX", 0x1 | 0x20);




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


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