Thread Subject: waitbar TeX warning

Subject: waitbar TeX warning

From: Kelly

Date: 3 Feb, 2006 16:49:12

Message: 1 of 3

Is there a way to stop the following warning from appearing without
hacking the waitbar function?

>> filename = fullfile('path', 'file')

filename =

path\file

>> waitbar(0.1, sprintf('Processing %s', filename))
Warning: Unable to interpret TeX string "\file".
> In waitbar at 188

It doesn't have any effect on the waitbar appearance, but it's a bit
annoying that the warning keeps appearing. I can stop it by turning
off the interpreter in the waitbar function,

tHandle=title(name); % original line 188
tHandle=title(name, 'Interpreter', 'none'); % new

but I'd rather something I could switch off only when needed, rather
than permanently disabling TeX. Is there a way to do this without
actually rewriting waitbar to accept a new input?

-Kelly

Subject: waitbar TeX warning

From: CRet

Date: 4 Feb, 2006 00:17:51

Message: 2 of 3

Hi,

See the MATLAB TeX reference doc page, you have to avoid \file which may be
tentatively interpreted by replacing any \ by \\.
" To print the special characters used to define the Tex strings when
Interpreter is Tex, prefix them with the backslash "\" character: \\, \{, \}
\_, \^. "


% One of the possible way to avoid the warning.
filename=fullfile('path','file');
TexFileName=strrep(filename,'\','\\');
waitbar(0, sprintf('Processing %s', TexFileName))
%
Please note that since Tex interpretor is not disable, special symbol or
typo are possible to display

C.Ret

"Kelly" <kakearney@nospamgmail.com> wrote in
news:ef27af6.-1@webx.raydaftYaTP...
> Is there a way to stop the following warning from appearing without
> hacking the waitbar function?
>
> >> filename = fullfile('path', 'file')
>
> filename =
>
> path\file
>
> >> waitbar(0.1, sprintf('Processing %s', filename))
> Warning: Unable to interpret TeX string "\file".
> > In waitbar at 188
>
> It doesn't have any effect on the waitbar appearance, but it's a bit
> annoying that the warning keeps appearing. I can stop it by turning
> off the interpreter in the waitbar function,
>
> tHandle=title(name); % original line 188
> tHandle=title(name, 'Interpreter', 'none'); % new
>
> but I'd rather something I could switch off only when needed, rather
> than permanently disabling TeX. Is there a way to do this without
> actually rewriting waitbar to accept a new input?
>
> -Kelly


Subject: waitbar TeX warning

From: John

Date: 10 Sep, 2007 21:28:08

Message: 3 of 3

Kelly <kakearney@nospamgmail.com> wrote in message
<ef27af6.-1@webx.raydaftYaTP>...
> Is there a way to stop the following warning from
appearing without
> hacking the waitbar function?
>
> >> filename = fullfile('path', 'file')
>
> filename =
>
> path\file
>
> >> waitbar(0.1, sprintf('Processing %s', filename))
> Warning: Unable to interpret TeX string "\file".
> > In waitbar at 188
>
> It doesn't have any effect on the waitbar appearance, but
it's a bit
> annoying that the warning keeps appearing. I can stop it
by turning
> off the interpreter in the waitbar function,
>
> tHandle=title(name); % original line 188
> tHandle=title(name, 'Interpreter', 'none'); % new
>
> but I'd rather something I could switch off only when
needed, rather
> than permanently disabling TeX. Is there a way to do this
without
> actually rewriting waitbar to accept a new input?
>
> -Kelly


Kelly

The text interpreter can be modified by locating where that
property in the heirechy of objects. For the statement

   hwait = wait('Some message');

Run the program to that statement in your code, then
examine hwait with

   get(hwait).

hwait doesn't have a Interpreter property, so look at the
children.

   hchild = get(hwait,'children');
   get(hchild);

hchild also doesn't have an Interpreter proprety, but does
have a title property, which is set in the waitbar
function. Look at the properties of title.

   htitle = get(hchild,'title');
   get(htitle);

Here, the Interpreter property is set to Tex. Change it
with

   set(htitle,'Interpreter','None');

In your code, enter the following commands to set the
Interpreter to none.

   hwait = wait('Some message');
   hchild = get(hwait,'children');
   htitle = get(hchild,'title');
   set(htitle,'Interpreter','None');

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

Public Submission Policy

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Disclaimer prior to use.

Contact us at files@mathworks.com