CheckPath.m and plot_priors.m: use slash even on Windows to not cause LaTeX-problems

dcontrib-log
Johannes Pfeifer 2023-11-21 02:29:04 +01:00
parent 0e5f9defbc
commit 37f747bb3b
2 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@ function [DirectoryName, info] = CheckPath(type,dname)
info = 0;
DirectoryName = [ dname filesep type ];
DirectoryName = [ dname '/' type ]; % don't use filesep as it will create issues with LaTeX on Windows
if ~isdir(dname)
% Make sure there isn't a file with the same name, see trac ticket #47

View File

@ -76,7 +76,7 @@ for plt = 1:nbplt
if TeX && any(strcmp('eps',cellstr(options_.graph_format)))
fprintf(fidTeX,'\\begin{figure}[H]\n');
fprintf(fidTeX,'\\centering\n');
fprintf(fidTeX,'\\includegraphics[width=%2.2f\\textwidth]{%s_Priors%s}\n',options_.figures.textwidth*min(index/nc,1),[graphDirectoryName filesep M_.fname],int2str(plt));
fprintf(fidTeX,'\\includegraphics[width=%2.2f\\textwidth]{%s_Priors%s}\n',options_.figures.textwidth*min(index/nc,1),[graphDirectoryName '/' M_.fname],int2str(plt));
fprintf(fidTeX,'\\caption{Priors.}');
fprintf(fidTeX,'\\label{Fig:Priors:%s}\n',int2str(plt));
fprintf(fidTeX,'\\end{figure}\n');