Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

TeX string incomplete?!

36 views
Skip to first unread message

Armin Mueller

unread,
Jan 28, 2009, 11:36:46 AM1/28/09
to
Hello all,

here is a small program that will issue a warning in R2008b. I don't
understand why, because I chose 'none' as 'Interpreter'.

Warning: incomplete command in TeX text string:
'Luft40ms_D40_25mm2s_Sirene_250Hz_'
> In legendcolorbarlayout>doLayoutCB at 283
In title at 46
In title at 23
In title_bug at 15

The isolated code line is running without warning:

>> title('Luft40ms_D40_25mm2s_Sirene_250Hz_', 'Interpreter', 'none')

Where is the difference? Any hints?

Thanks!
Armin

title_bug.m

us

unread,
Jan 28, 2009, 12:00:20 PM1/28/09
to
Armin Mueller

> here is a small program that will issue a warning in R2008b. I don't
> understand why, because I chose 'none' as 'Interpreter'.

you should report this bug...

% the bug
% - 1. legend
% - 2. title
s='ERROR_';
plot(1:2);
legend('error');
title(s,'interpreter','none');
%{


Warning: incomplete command in TeX text string:

'ERROR_'

> In legendcolorbarlayout>doLayoutCB at 283
In title at 46
In title at 23

%}

pause;
% a workaround
% - 1. title
% - 2. legend
clf;
s='OK_';
plot(1:2);
title(s,'interpreter','none');
legend('ok');

us

Armin Mueller

unread,
Jan 28, 2009, 4:19:24 PM1/28/09
to
us wrote:

> you should report this bug...

Yes, right. Done.

Cheers,
Armin

Luuk

unread,
Mar 11, 2013, 5:55:06 PM3/11/13
to
Armin Mueller <arm...@web.de> wrote in message <glqi4r$fv2$1...@news4.rz.uni-karlsruhe.de>...
The source of the problem is the '_' sign in the string which you put in your title. I had the same problem (so I got here), and solved it by discarding the _ from the string.
If you want to use the underscore, you should probably use the TeX command \textunderscore for it (http://www.tex.ac.uk/cgi-bin/texfaq2html?label=underscore)
I'm not sure how exactly to use TeX in plots, but it should be explained here: http://www.mathworks.nl/help/matlab/ref/texlabel.html
0 new messages