changeset 26949:86f439ba2d47 stable

doc: Improve example code for using -pdflatexstandalone (bug #55945). * plot.txi: Don't use filename extension in print command. Use space before '...' in code because parser errors out when it is not separated from the last command.
author Rik <rik@octave.org>
date Wed, 20 Mar 2019 08:13:57 -0700
parents b4cb230ced82
children 36dcbe7868ac 589b00536a39
files doc/interpreter/plot.txi
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/doc/interpreter/plot.txi	Tue Mar 19 10:05:15 2019 -0700
+++ b/doc/interpreter/plot.txi	Wed Mar 20 08:13:57 2019 -0700
@@ -1070,13 +1070,13 @@
 plot (x, x, "r");
 axis ([0, 3, 0, 1]);
 text (0.65, 0.6175, ...
-      ['$\displaystyle\leftarrow x = @{2 \over \sqrt@{\pi@}@}'...
+      ['$\displaystyle\leftarrow x = @{2 \over \sqrt@{\pi@}@}' ...
        '\int_@{0@}^@{x@} e^@{-t^2@} dt = 0.6175$'],
       "interpreter", "latex");
 xlabel ("x");
 ylabel ("erf (x)");
 title ("erf (x) with text annotation");
-print (hf, "plot15_7.pdf", "-dpdflatexstandalone");
+print (hf, "plot15_7", "-dpdflatexstandalone");
 system ("pdflatex plot15_7");
 open plot15_7.pdf
 @end group