return_size_scs_diagr2 - return the size of the graphic window of a scicos diagram
txt = return_size_scs_diagr2(name,flag)
- name : string. the name of the scicos diagram (extension free)
- flag : string. a flag to set the size of the scicos diagram
- 'html' : to return size for html man page
- 'guide' : to return size for paper format
- txt : string. the size of the scicos diagram
//Fonction qui retourne la taille d'un diagramme
//scicos spéciée dans un fichier SPECIALDESC
//Entrée name : nom du fichier (ex :'CONVOLGEN_f')
// flag : html ou guide
//Sortie txt : nouvelle taille de la figure
function txt=return_size_scs_diagr2(name,flag)
if fileinfo(tex_path+lang+'/'+name+'/SPECIALDESC')<>[] then
txt=[];
tt=mgetl(tex_path+lang+'/'+name+'/SPECIALDESC');
for i=1:size(tt,1)
if flag=='html' then
if strindex(tt(i),'size_scs_diagr_html')<>[] then
ierror=execstr(tt(i),'eercatch');
if ierror<>0 then
printf("Format error in SPECIALDESC\n");
break
else
txt=size_scs_diagr_html;
end
end
elseif flag=='guide' then
if strindex(tt(i),'size_scs_diagr_guide')<>[] then
ierror=execstr(tt(i),'eercatch');
if ierror<>0 then
printf("Format error in SPECIALDESC\n");
break
else
txt=size_scs_diagr_guide;
end
end
end
end
else
txt=[];
end
endfunction
IRCOM Group
Alan Layec