Mercurial > octave
comparison 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 |
comparison
equal
deleted
inserted
replaced
26934:1771bed38482 | 26935:d17eecaf4a14 |
---|---|
657 endif | 657 endif |
658 | 658 |
659 ## When exporting latex files use "latex" for the ticklabelinterpreter. | 659 ## When exporting latex files use "latex" for the ticklabelinterpreter. |
660 ## It will format tick labels in log axes correctly | 660 ## It will format tick labels in log axes correctly |
661 if (strfind (opts.devopt, "latex")) | 661 if (strfind (opts.devopt, "latex")) |
662 ## Disable warnings about Latex being unsupported since Octave will be | |
663 ## passing Latex code directly to interpreter with no rendering. | |
664 warning ("off", "Octave:text_interpreter", "local"); | |
662 h = findall (opts.figure, "type", "axes"); | 665 h = findall (opts.figure, "type", "axes"); |
663 for n = 1:numel (h) | 666 for n = 1:numel (h) |
664 if (ishghandle (h(n))) | 667 if (ishghandle (h(n))) |
665 props(end+1).h = h(n); | 668 props(end+1).h = h(n); |
666 props(end).name = "ticklabelinterpreter"; | 669 props(end).name = "ticklabelinterpreter"; |