diff doc/interpreter/plotimages.m @ 20337:8e056730f27c

doc: Fix building of Manual plot 15.7 under gnuplot. * plot.txi: Change example code to match that in plotimages.m * plotimages.m: Change text() call to use Latex feature \over. Only run new "pdflatexstandalone" if using an OpenGL toolkit.
author Rik <rik@octave.org>
date Sun, 12 Jul 2015 19:57:48 -0700
parents b439ccc9a162
children f248847b5071
line wrap: on
line diff
--- a/doc/interpreter/plotimages.m	Sun Jul 12 17:02:01 2015 -0700
+++ b/doc/interpreter/plotimages.m	Sun Jul 12 19:57:48 2015 -0700
@@ -93,9 +93,9 @@
     xlabel ("x");
     ylabel ("erf (x)");
     title ("erf (x) with text annotation");
-    if (strcmp (typ, "pdf"))
-      text (0.65, 0.6175, ['$\displaystyle\leftarrow x = {2/\sqrt{\pi}' ...
-            '{\int_{0}^{x}}e^{-t^2} dt} = 0.6175$']);
+    if (strcmp (typ, "pdf") && ! strcmp (graphics_toolkit, "gnuplot"))
+      text (0.65, 0.6175, ['$\displaystyle\leftarrow x = {2\over\sqrt{\pi}}'...
+                           '\int_{0}^{x}e^{-t^2} dt = 0.6175$']);
       ## Be very careful about modifying this.  pdflatex expects to be in
       ## the same directory as the file it is operating on.
       cd (make_absolute_filename (d));