From c5b95e932890ce3670a1fc641e0ffa3e9e898e17 Mon Sep 17 00:00:00 2001
From: Houtan Bastani <houtan@dynare.org>
Date: Fri, 13 Dec 2013 17:23:26 +0100
Subject: [PATCH] reporting: bug fix: avoid underscores altogether

(cherry picked from commit 359245b65b93915bfa19ae6ca922de25ffab52cf)
---
 matlab/reports/@graph/createGraph.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/matlab/reports/@graph/createGraph.m b/matlab/reports/@graph/createGraph.m
index 99d9753359..5f94cba232 100644
--- a/matlab/reports/@graph/createGraph.m
+++ b/matlab/reports/@graph/createGraph.m
@@ -138,7 +138,7 @@ drawnow;
 if isempty(o.figname)
     [junk, tn] = fileparts(tempname);
     if strcmp(computer, 'PCWIN') || strcmp(computer, 'PCWIN64')
-        tn = strrep(tn, '_', '\_');
+        tn = strrep(tn, '_', '-');
     end
     o.figname = [o.figDirName filesep tn '.tex'];
 end
-- 
GitLab