From 0787589479652e4be89cd2d0974a369d38c03663 Mon Sep 17 00:00:00 2001
From: Willi Mutschler <willi@mutschler.eu>
Date: Wed, 13 Dec 2023 20:33:10 +0100
Subject: [PATCH] method_of_moments: use / instead of filesep for latex
 filenames

---
 matlab/+mom/graph_comparison_irfs.m | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/matlab/+mom/graph_comparison_irfs.m b/matlab/+mom/graph_comparison_irfs.m
index 97fab5f03d..54aab69381 100644
--- a/matlab/+mom/graph_comparison_irfs.m
+++ b/matlab/+mom/graph_comparison_irfs.m
@@ -54,7 +54,7 @@ function graph_comparison_irfs(matched_irfs,irf_model_varobs,varobs_id,irf_horiz
 graph_directory_name = CheckPath('graphs',dname);
 latex_directory_name = CheckPath('latex',dname);
 if TeX && any(strcmp('eps',cellstr(graph_format)))
-    fid_TeX = fopen([latex_directory_name filesep fname '_irf_matching_plot.tex'],'w');
+    fid_TeX = fopen([latex_directory_name '/' fname '_irf_matching_plot.tex'],'w');
     fprintf(fid_TeX,'%% TeX eps-loader file generated by mom.run.m (Dynare).\n');
     fprintf(fid_TeX,['%% ' datestr(now,0) '\n']);
     fprintf(fid_TeX,' \n');
@@ -105,7 +105,7 @@ for jexo = unique_shock_entries'
             if TeX && any(strcmp('eps',cellstr(graph_format)))
                 fprintf(fid_TeX,'\\begin{figure}[H]\n');
                 fprintf(fid_TeX,'\\centering \n');
-                fprintf(fid_TeX,'\\includegraphics[width=%2.2f\\textwidth]{%s_matched_irf_%s%s}\n',figures_textwidth*min(plt/nc,1),[graph_directory_name filesep fname],exo_names{jexo},int2str(fig));
+                fprintf(fid_TeX,'\\includegraphics[width=%2.2f\\textwidth]{%s_matched_irf_%s%s}\n',figures_textwidth*min(plt/nc,1),[graph_directory_name '/' fname],exo_names{jexo},int2str(fig));
                 if relative_irf
                     fprintf(fid_TeX,'\\caption{Relative impulse response functions (orthogonalized shock to $%s$).}', exo_names_tex{jexo});
                 else
-- 
GitLab