Fonction Scilab
eng - fr


return_capt - sonde les fichiers SPECIALDESC et retourne les légendes des figures

Librairie

Séquence d'appel

txt = return_capt(namef)

Paramètres

Description

Add here a paragraph of the function description. Other paragraph can be added

Add here a paragraph of the function description

Exemple

Add here scilab instructions and comments

Contenu du fichier


//return_capt
//Fonction qui recherche la présence d'un fichier SPECIALDESC
//dans tex_path et qui retourne le titre des figures
//Entrée namef : nom de la page d'aide
function txt=return_capt(namef)
if fileinfo(namef+'/SPECIALDESC')<>[] then
 txt=[];
 i_equ1=0;i_equ2=0;
 tt=mgetl(namef+'/SPECIALDESC');
 for i=1:size(tt,1)
   if strindex(tt(i),'scope_caption')<>[] then
    i_equ1=i;//strindex(tt(i),'=');
   end
   if (i_equ1<>0 & i>=i_equ1) then
    if strindex(tt(i),']')<>[] then
      i_equ2=i;
      break
    end
   end
 end
 if i_equ1<>0 then
 for i=i_equ1:i_equ2
  txt=txt+tt(i);
 end
 if strindex(txt,'scope_caption')<>[] then
   txt=part(txt,strindex(txt,'=')+1:length(txt));
 end
 txt=evstr(txt);
 end
else
txt=[]
end
endfunction

Fonction(s) utilisée(s)

Add here the used function name and references

Auteurs

enter here the author name Add here the author references