Expand collect_LaTeX_Files.m to gsa Output folder

time-shift
Johannes Pfeifer 2016-05-31 13:31:54 +02:00
parent 74212ab199
commit 11687d8c66
1 changed files with 9 additions and 0 deletions

View File

@ -98,6 +98,15 @@ for ii=1:length(TeX_Files)
end
end
%% GSA/Output directory
TeX_Files=dir([M_.dname filesep 'gsa' filesep 'Output' filesep M_.fname '*.TeX']);
for ii=1:length(TeX_Files)
[pathstr,f_name,ext] = fileparts(TeX_Files(ii).name);
if ~strcmp(TeX_Files(ii).name,f_name_binder)
fprintf(fid,'%s \n',['\include{', M_.dname '/gsa/Output' '/',f_name,'}']);
end
end
%% Write footer
fprintf(fid,'%s \n','\end{document}');