Commits

Anonymous committed d08950e

Fix up TeXmacs wiki page.

Comments (0)

Files changed (3)

TeXmacs-1.0.7.16-psbug.patch

+diff -ru TeXmacs-1.0.7.16-src.orig/src/Plugins/Ghostscript/gs_utilities.cpp TeXmacs-1.0.7.16-src/src/Plugins/Ghostscript/gs_utilities.cpp
+--- TeXmacs-1.0.7.16-src.orig/src/Plugins/Ghostscript/gs_utilities.cpp	2012-07-09 16:33:21.000000000 +0200
++++ TeXmacs-1.0.7.16-src/src/Plugins/Ghostscript/gs_utilities.cpp	2012-11-07 06:24:53.290583215 +0100
+@@ -42,7 +42,7 @@
+ bool
+ gs_image_size_sub (string buf, int& w_pt, int& h_pt) {
+   int pos= search_forwards ("\n%%BoundingBox: ", buf);
+-  if (pos < 0) search_forwards ("%%BoundingBox: ", buf);
++  if (pos < 0) pos = search_forwards ("%%BoundingBox: ", buf);
+   if (pos < 0) return false;
+   if (buf[pos] == '\n') pos++;
+   bool ok= read (buf, pos, "%%BoundingBox: ");
+@@ -63,6 +63,7 @@
+   if (!ok) return false;
+   w_pt= x2-x1;
+   h_pt= y2-y1;
++  if (h_pt==0 && w_pt==0) h_pt = 1;
+   return true;
+ }
+ 
+@@ -80,7 +81,7 @@
+   if (!err && gs_image_size_sub (buf, w_pt, h_pt)) return;
+   cerr << "TeXmacs Cannot read image file '" << image << "'"
+        << " in gs_image_size" << LF;
+-  w_pt= 0; h_pt= 0;
++  w_pt= 0; h_pt= 1;
+ }
+ 
+ void ps_bounding_box (url image, int& x1, int& y1, int& x2, int& y2);
-# Using Pure with TeXmacs.
+# Using Pure with TeXmacs
 
-# Using Pure with !TeXmacs
+The forthcoming Pure 0.56 release (currently under development) has full support for [TeXmacs](http://www.texmacs.org/), the free scientific text editor from the GNU Project. Pure can be run as a plugin inside TeXmacs, which allows you to use TeXmacs as an alternative frontend to the Pure interpreter. The distributed plugin can also be used with the mathematical input and output capabilities that TeXmacs provides. Using Pure along with the Pure [[Octave]] and [[Reduce]] modules in TeXmacs provides you with a fairly comprehensive scientific computing tool. It also adds an entirely new dimension to Pure programming, since Pure programs can now be written in customary mathematical notation and the results can be directly incorporated into high-quality mathematical typesetting.
 
-<a href="http://wiki.pure-lang.googlecode.com/hg/texmacs.png"><img src="http://wiki.pure-lang.googlecode.com/hg/texmacs-mini.png" align="right"/></a>
+![TeXmacs](texmacs.png)
 
-The forthcoming Pure 0.56 release (currently under development) has full support for [TeXmacs](http://www.texmacs.org/), the free scientific text editor from the GNU Project. Pure can be run as a plugin inside !TeXmacs, which allows you to use !TeXmacs as an alternative frontend to the Pure interpreter. The distributed plugin can also be used with the mathematical input and output capabilities that !TeXmacs provides. Using Pure along with the Pure [[Octave]] and [[Reduce]] modules in !TeXmacs provides you with a fairly comprehensive scientific computing tool. It also adds an entirely new dimension to Pure programming, since Pure programs can now be written in customary mathematical notation and the results can be directly incorporated into high-quality mathematical typesetting.
+A description of the interface can be found in "The Pure TeXmacs Plugin" article ([pdf](http://wiki.pure-lang.googlecode.com/hg/docs/pure-texmacs.en.pdf), [texmacs](http://pure-lang.googlecode.com/hg/pure/texmacs/plugins/pure/doc/pure-texmacs.en.tm)). Some further Octave/Gnuplot examples are also available ([pdf](http://wiki.pure-lang.googlecode.com/hg/docs/plot_demo.pdf), [texmacs](http://wiki.pure-lang.googlecode.com/hg/docs/plot_demo.tm)). 
 
-A description of the interface can be found in "The Pure !TeXmacs Plugin" article ([pdf](http://wiki.pure-lang.googlecode.com/hg/docs/pure-texmacs.en.pdf), [texmacs](http://pure-lang.googlecode.com/hg/pure/texmacs/plugins/pure/doc/pure-texmacs.en.tm)). Some further Octave/Gnuplot examples are also available ([pdf](http://wiki.pure-lang.googlecode.com/hg/docs/plot_demo.pdf), [texmacs](http://wiki.pure-lang.googlecode.com/hg/docs/plot_demo.tm)). 
-
-The plugin has been tested with !TeXmacs 1.0.7.16 and the current development version of !TeXmacs. To make the !PostScript import feature work with the stable !TeXmacs version, you'll need to apply the following patch to the official !TeXmacs sources and recompile: [TeXmacs-1.0.7.16-psbug.patch](http://wiki.pure-lang.googlecode.com/hg/TeXmacs-1.0.7.16-psbug.patch). (This patch resolves a bug in the !PostScript import feature of !TeXmacs. It shouldn't be needed for the svn version of !TeXmacs any more.)
-
-To make Pure's online help facility work in !TeXmacs, you probably want to install the latest online documentation which also includes the help files in !TeXmacs format. Until Pure 0.56 comes out, you can download a suitable tarball here: [pure-docs-0.56.tar.gz](http://wiki.pure-lang.googlecode.com/hg/pure-docs-0.56.tar.gz). Unpack the tarball as usual and run `sudo make install install-tm` to install the documentation files. (Note that this requires that you have the latest Pure from the hg repository installed.)
+The plugin has been tested with TeXmacs 1.0.7.16 and the current development version of TeXmacs. To make the PostScript import feature work with the stable TeXmacs version, you'll need to apply the following patch to the official TeXmacs sources and recompile: [TeXmacs-1.0.7.16-psbug.patch](TeXmacs-1.0.7.16-psbug.patch). (This patch resolves a bug in the PostScript import feature of TeXmacs. It shouldn't be needed for the svn version of TeXmacs any more.)

texmacs.png

Added
New image