Skip to content
Snippets Groups Projects
Commit 2e231561 authored by Stéphane Adjemian's avatar Stéphane Adjemian
Browse files

Fixed bug (conversion of variable names in tex).

(cherry picked from commit 80218a1b)
parent f337c2b0
Branches
Tags
No related merge requests found
...@@ -25,15 +25,8 @@ end ...@@ -25,15 +25,8 @@ end
if iscell(name) if iscell(name)
nn = length(name); nn = length(name);
id = findstr(cell2mat(transpose(name)),'_');
else else
nn = 1; nn = 1;
id = findstr(name,'_');
end
if isempty(id)
tex = name;
return
end end
if iscell(name) if iscell(name)
...@@ -51,6 +44,9 @@ for i=1:nn ...@@ -51,6 +44,9 @@ for i=1:nn
id = findstr(name,'_'); id = findstr(name,'_');
len = length(tex); len = length(tex);
end end
if isempty(id)
continue
end
n = length(id); n = length(id);
if id(1)==1 if id(1)==1
if iscell(name) if iscell(name)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment