Mercurial > octave
diff scripts/plot/util/print.m @ 26935:d17eecaf4a14
Don't issue warning about unsupported latex when printing with -dpdflatexstandalone (bug #55946).
* warning_ids.m: Document new warning ID "Octave:text_interpreter".
* print.m: Disable warning "Octave:text_interpreter" temporarily using "local"
argument when printing to a latex format.
* __gnuplot_draw_axes__.m (do_tics_1, __maybe_munge_text__): Check warning
state of "Octave:text_interpreter" before issuing a warning about either axes
ticklabels or text objects using the latex interpreter.
author | Rik <rik@octave.org> |
---|---|
date | Mon, 18 Mar 2019 10:33:38 -0700 |
parents | 1771bed38482 |
children | 72fab319b47d |
line wrap: on
line diff
--- a/scripts/plot/util/print.m Fri Mar 15 22:34:55 2019 +0100 +++ b/scripts/plot/util/print.m Mon Mar 18 10:33:38 2019 -0700 @@ -659,6 +659,9 @@ ## When exporting latex files use "latex" for the ticklabelinterpreter. ## It will format tick labels in log axes correctly if (strfind (opts.devopt, "latex")) + ## Disable warnings about Latex being unsupported since Octave will be + ## passing Latex code directly to interpreter with no rendering. + warning ("off", "Octave:text_interpreter", "local"); h = findall (opts.figure, "type", "axes"); for n = 1:numel (h) if (ishghandle (h(n)))