Mercurial > octave-nkf
changeset 20372: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 | 55b10614f33d |
children | a7770c66cb3d |
files | doc/interpreter/plot.txi doc/interpreter/plotimages.m |
diffstat | 2 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/doc/interpreter/plot.txi Sun Jul 12 17:02:01 2015 -0700 +++ b/doc/interpreter/plot.txi Sun Jul 12 19:57:48 2015 -0700 @@ -960,8 +960,8 @@ hold on; plot (x, x, "r"); axis ([0, 3, 0, 1]); -text (0.65, 0.6175, ['$\displaystyle\leftarrow x = @{2/\sqrt@{\pi@}' ... - '@{\int_@{0@}^@{x@}@}e^@{-t^2@} dt@} = 0.6175$']); +text (0.65, 0.6175, ['$\displaystyle\leftarrow x = @{2\over\sqrt@{\pi@}@}'... + '\int_@{0@}^@{x@}e^@{-t^2@} dt = 0.6175$']); xlabel ("x"); ylabel ("erf (x)"); title ("erf (x) with text annotation");
--- 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));