diff --git a/matlab/GetPosteriorParametersStatistics.m b/matlab/GetPosteriorParametersStatistics.m index 820b6e53f088780237aeb98dc1a9f3f2d8a93352..a7c91062167ee4660d7893bd1b822f95bea36669 100644 --- a/matlab/GetPosteriorParametersStatistics.m +++ b/matlab/GetPosteriorParametersStatistics.m @@ -16,7 +16,7 @@ function oo_ = GetPosteriorParametersStatistics(estim_params_, M_, options_, bay % SPECIAL REQUIREMENTS % None. -% Copyright (C) 2006-2015 Dynare Team +% Copyright (C) 2006-2016 Dynare Team % % This file is part of Dynare. % @@ -328,7 +328,7 @@ end %% subfunctions: % function fid = TeXBegin(directory,fname,fnum,title) -TeXfile = [directory '/' fname '_Posterior_Mean_' int2str(fnum) '.TeX']; +TeXfile = [directory '/' fname '_Posterior_Mean_' int2str(fnum) '.tex']; fidTeX = fopen(TeXfile,'w'); fprintf(fidTeX,'%% TeX-table generated by Dynare.\n'); fprintf(fidTeX,['%% RESULTS FROM METROPOLIS HASTINGS (' title ')\n']); diff --git a/matlab/McMCDiagnostics.m b/matlab/McMCDiagnostics.m index ffadfb4a8af71071694bb3de7a8fac2459d7a610..53bcef0bcaa1cf41ac7acdc5ce527673ec9a521f 100644 --- a/matlab/McMCDiagnostics.m +++ b/matlab/McMCDiagnostics.m @@ -205,7 +205,7 @@ if NumberOfDraws < Origin end if TeX && any(strcmp('eps',cellstr(options_.graph_format))) - fidTeX = fopen([OutputFolder '/' ModelName '_UnivariateDiagnostics.TeX'],'w'); + fidTeX = fopen([OutputFolder '/' ModelName '_UnivariateDiagnostics.tex'],'w'); fprintf(fidTeX,'%% TeX eps-loader file generated by McmcDiagnostics.m (Dynare).\n'); fprintf(fidTeX,['%% ' datestr(now,0) '\n']); fprintf(fidTeX,' \n'); @@ -384,7 +384,7 @@ clear UDIAG; % Multivariate diagnostic. % if TeX && any(strcmp('eps',cellstr(options_.graph_format))) - fidTeX = fopen([OutputFolder '/' ModelName '_MultivariateDiagnostics.TeX'],'w'); + fidTeX = fopen([OutputFolder '/' ModelName '_MultivariateDiagnostics.tex'],'w'); fprintf(fidTeX,'%% TeX eps-loader file generated by McmcDiagnostics.m (Dynare).\n'); fprintf(fidTeX,['%% ' datestr(now,0) '\n']); fprintf(fidTeX,' \n'); diff --git a/matlab/PlotPosteriorDistributions.m b/matlab/PlotPosteriorDistributions.m index 1b3103a95b9ec50f44c70b4587b4313777cfedb9..e40cadffbdca750110046dbe81e6a2614e937d75 100644 --- a/matlab/PlotPosteriorDistributions.m +++ b/matlab/PlotPosteriorDistributions.m @@ -16,7 +16,7 @@ function oo_ = PlotPosteriorDistributions(estim_params_, M_, options_, bayestopt % SPECIAL REQUIREMENTS % none -% Copyright (C) 2005-2013 Dynare Team +% Copyright (C) 2005-2016 Dynare Team % % This file is part of Dynare. % @@ -50,7 +50,7 @@ nn = sqrt(MaxNumberOfPlotPerFigure); figurename = 'Priors and posteriors'; if TeX && any(strcmp('eps',cellstr(options_.graph_format))) - fidTeX = fopen([OutputDirectoryName '/' M_.fname '_PriorsAndPosteriors.TeX'],'w'); + fidTeX = fopen([OutputDirectoryName '/' M_.fname '_PriorsAndPosteriors.tex'],'w'); fprintf(fidTeX,'%% TeX eps-loader file generated by PlotPosteriorDistributions.m (Dynare).\n'); fprintf(fidTeX,['%% ' datestr(now,0) '\n']); fprintf(fidTeX,' \n'); diff --git a/matlab/PosteriorIRF.m b/matlab/PosteriorIRF.m index 8148e59f16eba28b43e61b8f1db8f5f440e0c8f2..3b164a00dc3da918f7508e57f574151821dc03be 100644 --- a/matlab/PosteriorIRF.m +++ b/matlab/PosteriorIRF.m @@ -388,7 +388,7 @@ end subplotnum = 0; tit_TeX(M_.exo_names_orig_ord,:) = M_.exo_names_tex; if options_.TeX && any(strcmp('eps',cellstr(options_.graph_format))) - fidTeX = fopen([DirectoryName filesep M_.fname '_BayesianIRF.TeX'],'w'); + fidTeX = fopen([DirectoryName filesep M_.fname '_BayesianIRF.tex'],'w'); fprintf(fidTeX,'%% TeX eps-loader file generated by PosteriorIRF.m (Dynare).\n'); fprintf(fidTeX,['%% ' datestr(now,0) '\n']); fprintf(fidTeX,' \n'); diff --git a/matlab/collect_LaTeX_Files.m b/matlab/collect_LaTeX_Files.m index 961a4194714811e35ccbcf612aa34d146965a173..223e3416dabf3b5e49ba19392a6fd2a1cc518773 100644 --- a/matlab/collect_LaTeX_Files.m +++ b/matlab/collect_LaTeX_Files.m @@ -9,7 +9,7 @@ function collect_LaTeX_Files(M_) % - The packages loaded enable pdflatex to run % - The _dynamic and _static TeX-model files are not included as they are standalone TeX-files -% Copyright (C) 2015 Dynare Team +% Copyright (C) 2015-2016 Dynare Team % % This file is part of Dynare. % @@ -27,7 +27,7 @@ function collect_LaTeX_Files(M_) % along with Dynare. If not, see <http://www.gnu.org/licenses/>. %% Write header -f_name_binder=[M_.fname,'_TeX_binder.TeX']; +f_name_binder=[M_.fname,'_TeX_binder.tex']; fid=fopen(f_name_binder,'w+'); fprintf(fid,'%s \n','\documentclass[12pt]{article}'); fprintf(fid,'%s \n','\usepackage[margin=2cm]{geometry}'); @@ -41,7 +41,7 @@ fprintf(fid,'%s \n','\usepackage{float,morefloats,caption}'); fprintf(fid,'%s \n','\begin{document}'); %% Root directory -TeX_Files=dir([M_.fname,'*.TeX']); +TeX_Files=dir([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) && ... @@ -53,7 +53,7 @@ for ii=1:length(TeX_Files) end %% Output directory -TeX_Files=dir([M_.dname filesep 'Output' filesep M_.fname '*.TeX']); +TeX_Files=dir([M_.dname 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) @@ -62,7 +62,7 @@ for ii=1:length(TeX_Files) end %% graphs directory -TeX_Files=dir([M_.dname filesep 'graphs' filesep M_.fname '*.TeX']); +TeX_Files=dir([M_.dname filesep 'graphs' 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) @@ -71,7 +71,7 @@ for ii=1:length(TeX_Files) end %% Identification directory -TeX_Files=dir([M_.dname filesep 'identification' filesep M_.fname '*.TeX']); +TeX_Files=dir([M_.dname filesep 'identification' 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) @@ -80,7 +80,7 @@ for ii=1:length(TeX_Files) end %% GSA directory -TeX_Files=dir([M_.dname filesep 'gsa' filesep M_.fname '*.TeX']); +TeX_Files=dir([M_.dname filesep 'gsa' 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) diff --git a/matlab/display_estimation_results_table.m b/matlab/display_estimation_results_table.m index 93fa62102c93e7fb5bea8063b73117ec3a6936b9..58f0c8c921247230cb9dd114abc73c7537b95460 100644 --- a/matlab/display_estimation_results_table.m +++ b/matlab/display_estimation_results_table.m @@ -20,7 +20,7 @@ function oo_=display_estimation_results_table(xparam1,stdh,M_,options_,estim_par % SPECIAL REQUIREMENTS % None. -% Copyright (C) 2014 Dynare Team +% Copyright (C) 2014-2016 Dynare Team % % This file is part of Dynare. % @@ -177,7 +177,7 @@ OutputDirectoryName = CheckPath('Output',M_.dname); if any(bayestopt_.pshape > 0) && options_.TeX %% Bayesian estimation (posterior mode) Latex output if np - filename = [OutputDirectoryName '/' M_.fname '_Posterior_Mode_1.TeX']; + filename = [OutputDirectoryName '/' M_.fname '_Posterior_Mode_1.tex']; fidTeX = fopen(filename,'w'); TeXBegin_Bayesian(fidTeX,1,'parameters') ip = nvx+nvn+ncx+ncn+1; @@ -194,7 +194,7 @@ if any(bayestopt_.pshape > 0) && options_.TeX %% Bayesian estimation (posterior TeXEnd(fidTeX) end if nvx - TeXfile = [OutputDirectoryName '/' M_.fname '_Posterior_Mode_2.TeX']; + TeXfile = [OutputDirectoryName '/' M_.fname '_Posterior_Mode_2.tex']; fidTeX = fopen(TeXfile,'w'); TeXBegin_Bayesian(fidTeX,2,'standard deviation of structural shocks') ip = 1; @@ -212,7 +212,7 @@ if any(bayestopt_.pshape > 0) && options_.TeX %% Bayesian estimation (posterior TeXEnd(fidTeX) end if nvn - TeXfile = [OutputDirectoryName '/' M_.fname '_Posterior_Mode_3.TeX']; + TeXfile = [OutputDirectoryName '/' M_.fname '_Posterior_Mode_3.tex']; fidTeX = fopen(TeXfile,'w'); TeXBegin_Bayesian(fidTeX,3,'standard deviation of measurement errors') ip = nvx+1; @@ -230,7 +230,7 @@ if any(bayestopt_.pshape > 0) && options_.TeX %% Bayesian estimation (posterior TeXEnd(fidTeX) end if ncx - TeXfile = [OutputDirectoryName '/' M_.fname '_Posterior_Mode_4.TeX']; + TeXfile = [OutputDirectoryName '/' M_.fname '_Posterior_Mode_4.tex']; fidTeX = fopen(TeXfile,'w'); TeXBegin_Bayesian(fidTeX,4,'correlation of structural shocks') ip = nvx+nvn+1; @@ -249,7 +249,7 @@ if any(bayestopt_.pshape > 0) && options_.TeX %% Bayesian estimation (posterior TeXEnd(fidTeX) end if ncn - TeXfile = [OutputDirectoryName '/' M_.fname '_Posterior_Mode_5.TeX']; + TeXfile = [OutputDirectoryName '/' M_.fname '_Posterior_Mode_5.tex']; fidTeX = fopen(TeXfile,'w'); TeXBegin_Bayesian(fidTeX,5,'correlation of measurement errors') ip = nvx+nvn+ncx+1; @@ -269,7 +269,7 @@ if any(bayestopt_.pshape > 0) && options_.TeX %% Bayesian estimation (posterior end elseif all(bayestopt_.pshape == 0) && options_.TeX %% MLE and GMM Latex output if np - filename = [OutputDirectoryName '/' M_.fname '_' LaTeXtitle '_Mode_1.TeX']; + filename = [OutputDirectoryName '/' M_.fname '_' LaTeXtitle '_Mode_1.tex']; fidTeX = fopen(filename,'w'); TeXBegin_ML(fidTeX,1,'parameters',table_title,LaTeXtitle) ip = nvx+nvn+ncx+ncn+1; @@ -284,7 +284,7 @@ elseif all(bayestopt_.pshape == 0) && options_.TeX %% MLE and GMM Latex output TeXEnd(fidTeX) end if nvx - filename = [OutputDirectoryName '/' M_.fname '_' LaTeXtitle '_Mode_2.TeX']; + filename = [OutputDirectoryName '/' M_.fname '_' LaTeXtitle '_Mode_2.tex']; fidTeX = fopen(filename,'w'); TeXBegin_ML(fidTeX,2,'standard deviation of structural shocks',table_title,LaTeXtitle) ip = 1; @@ -300,7 +300,7 @@ elseif all(bayestopt_.pshape == 0) && options_.TeX %% MLE and GMM Latex output TeXEnd(fidTeX) end if nvn - filename = [OutputDirectoryName '/' M_.fname '_' LaTeXtitle '_Mode_3.TeX']; + filename = [OutputDirectoryName '/' M_.fname '_' LaTeXtitle '_Mode_3.tex']; fidTeX = fopen(filename,'w'); TeXBegin_ML(fidTeX,3,'standard deviation of measurement errors',table_title,LaTeXtitle) ip = nvx+1; @@ -316,7 +316,7 @@ elseif all(bayestopt_.pshape == 0) && options_.TeX %% MLE and GMM Latex output TeXEnd(fidTeX) end if ncx - filename = [OutputDirectoryName '/' M_.fname '_' LaTeXtitle '_Mode_4.TeX']; + filename = [OutputDirectoryName '/' M_.fname '_' LaTeXtitle '_Mode_4.tex']; fidTeX = fopen(filename,'w'); TeXBegin_ML(fidTeX,4,'correlation of structural shocks',table_title,LaTeXtitle) ip = nvx+nvn+1; @@ -333,7 +333,7 @@ elseif all(bayestopt_.pshape == 0) && options_.TeX %% MLE and GMM Latex output TeXEnd(fidTeX) end if ncn - filename = [OutputDirectoryName '/' M_.fname '_' LaTeXtitle '_Mode_5.TeX']; + filename = [OutputDirectoryName '/' M_.fname '_' LaTeXtitle '_Mode_5.tex']; fidTeX = fopen(filename,'w'); TeXBegin_ML(fidTeX,5,'correlation of measurement errors',table_title,LaTeXtitle) ip = nvx+nvn+ncx+1; diff --git a/matlab/dyn_latex_table.m b/matlab/dyn_latex_table.m index c4575520e8ddb371775a5998e2dbee32c872c1db..29e6a961ddf73bfc65da018ae3d28d4a8120d97b 100644 --- a/matlab/dyn_latex_table.m +++ b/matlab/dyn_latex_table.m @@ -60,7 +60,7 @@ if length(headers) > 0 end header_string=[header_string '\\\\\n']; -filename = [OutputDirectoryName '/' M_.fname '_' LaTeXtitle '.TeX']; +filename = [OutputDirectoryName '/' M_.fname '_' LaTeXtitle '.tex']; fidTeX = fopen(filename,'w'); fprintf(fidTeX,['%% ' datestr(now,0)]); fprintf(fidTeX,' \n'); diff --git a/matlab/dynare_estimation_1.m b/matlab/dynare_estimation_1.m index 645cbf1f30364c594b8d82f5af44a36599e93877..a2be89596bae10e3bfc7700f47b5aa47f756fd94 100644 --- a/matlab/dynare_estimation_1.m +++ b/matlab/dynare_estimation_1.m @@ -525,7 +525,7 @@ if (~((any(bayestopt_.pshape > 0) && options_.mh_replic) || (any(bayestopt_.psha if ~options_.nograph, [nbplt,nr,nc,lr,lc,nstar] = pltorg(M_.exo_nbr); if options_.TeX && any(strcmp('eps',cellstr(options_.graph_format))) - fidTeX = fopen([M_.fname '_SmoothedShocks.TeX'],'w'); + fidTeX = fopen([M_.fname '_SmoothedShocks.tex'],'w'); fprintf(fidTeX,'%% TeX eps-loader file generated by dynare_estimation_1.m (Dynare).\n'); fprintf(fidTeX,['%% ' datestr(now,0) '\n']); fprintf(fidTeX,' \n'); @@ -615,7 +615,7 @@ if (~((any(bayestopt_.pshape > 0) && options_.mh_replic) || (any(bayestopt_.psha if ~options_.nograph [nbplt,nr,nc,lr,lc,nstar] = pltorg(number_of_plots_to_draw); if options_.TeX && any(strcmp('eps',cellstr(options_.graph_format))) - fidTeX = fopen([M_.fname '_SmoothedObservationErrors.TeX'],'w'); + fidTeX = fopen([M_.fname '_SmoothedObservationErrors.tex'],'w'); fprintf(fidTeX,'%% TeX eps-loader file generated by dynare_estimation_1.m (Dynare).\n'); fprintf(fidTeX,['%% ' datestr(now,0) '\n']); fprintf(fidTeX,' \n'); @@ -690,7 +690,7 @@ if (~((any(bayestopt_.pshape > 0) && options_.mh_replic) || (any(bayestopt_.psha if ~options_.nograph [nbplt,nr,nc,lr,lc,nstar] = pltorg(n_varobs); if options_.TeX && any(strcmp('eps',cellstr(options_.graph_format))) - fidTeX = fopen([M_.fname '_HistoricalAndSmoothedVariables.TeX'],'w'); + fidTeX = fopen([M_.fname '_HistoricalAndSmoothedVariables.tex'],'w'); fprintf(fidTeX,'%% TeX eps-loader file generated by dynare_estimation_1.m (Dynare).\n'); fprintf(fidTeX,['%% ' datestr(now,0) '\n']); fprintf(fidTeX,' \n'); diff --git a/matlab/forecast_graphs.m b/matlab/forecast_graphs.m index 8a40a3ba91a151e6cce0081e2651e7b61ba3c94c..5dab918116823621bbbf5b00dbe8546cec0b2855 100644 --- a/matlab/forecast_graphs.m +++ b/matlab/forecast_graphs.m @@ -8,7 +8,7 @@ function forecast_graphs(var_list,M_, oo_,options_) % o oo_ outputs structure % o options_ options structure -% Copyright (C) 2008-2015 Dynare Team +% Copyright (C) 2008-2016 Dynare Team % % This file is part of Dynare. % @@ -57,7 +57,7 @@ end %% write LaTeX-Header if options_.TeX && any(strcmp('eps',cellstr(options_.graph_format))) - fidTeX = fopen([M_.dname '/graphs/',fname,'_forcst.TeX'],'w'); + fidTeX = fopen([M_.dname '/graphs/',fname,'_forcst.tex'],'w'); fprintf(fidTeX,'%% TeX eps-loader file generated by Dynare''s graph_decomp.m.\n'); fprintf(fidTeX,['%% ' datestr(now,0) '\n']); fprintf(fidTeX,' \n'); diff --git a/matlab/graph_decomp.m b/matlab/graph_decomp.m index ac2205011c4b910113dcf2a62cc9d7d50d90644b..637f2eb4347372af3564a7e38b974ec60220297c 100644 --- a/matlab/graph_decomp.m +++ b/matlab/graph_decomp.m @@ -42,7 +42,7 @@ nvar = length(i_var); %% write LaTeX-Header if DynareOptions.TeX && any(strcmp('eps',cellstr(DynareOptions.graph_format))) - fidTeX = fopen([DynareModel.fname '_shock_decomp.TeX'],'w'); + fidTeX = fopen([DynareModel.fname '_shock_decomp.tex'],'w'); fprintf(fidTeX,'%% TeX eps-loader file generated by Dynare''s graph_decomp.m.\n'); fprintf(fidTeX,['%% ' datestr(now,0) '\n']); fprintf(fidTeX,' \n'); diff --git a/matlab/gsa/filt_mc_.m b/matlab/gsa/filt_mc_.m index 8809f4baf06adfa6380aab8fdc66b6950dbfab3f..677fd0b59974e0b823785d1907a2661623754362 100644 --- a/matlab/gsa/filt_mc_.m +++ b/matlab/gsa/filt_mc_.m @@ -16,7 +16,7 @@ function [rmse_MC, ixx] = filt_mc_(OutDir,options_gsa_,dataset_,dataset_info) % Reference: % M. Ratto, Global Sensitivity Analysis for Macroeconomic models, MIMEO, 2006. -% Copyright (C) 2012-2013 Dynare Team +% Copyright (C) 2012-2016 Dynare Team % % This file is part of Dynare. % @@ -808,7 +808,7 @@ end function []=create_TeX_loader(options_,figpath,label_number,caption,label_name) if options_.TeX && any(strcmp('eps',cellstr(options_.graph_format))) - fidTeX = fopen([figpath '.TeX'],'w'); + fidTeX = fopen([figpath '.tex'],'w'); fprintf(fidTeX,'%% TeX eps-loader file generated by filt_mc_.m (Dynare).\n'); fprintf(fidTeX,['%% ' datestr(now,0) '\n\n']); fprintf(fidTeX,'\\begin{figure}[H]\n'); diff --git a/matlab/gsa/map_calibration.m b/matlab/gsa/map_calibration.m index c16658f6f1ae37417e17209cd312f1c0d075e418..79c83650b3d193d89bbd06bc7376e91521189352 100644 --- a/matlab/gsa/map_calibration.m +++ b/matlab/gsa/map_calibration.m @@ -504,7 +504,7 @@ return function []=create_TeX_loader(options,figpath,caption,label_name,label_type) if options.TeX && any(strcmp('eps',cellstr(options.graph_format))) - fidTeX = fopen([figpath '.TeX'],'w'); + fidTeX = fopen([figpath '.tex'],'w'); fprintf(fidTeX,'%% TeX eps-loader file generated by map_calibration.m (Dynare).\n'); fprintf(fidTeX,['%% ' datestr(now,0) '\n\n']); fprintf(fidTeX,'\\begin{figure}[H]\n'); diff --git a/matlab/gsa/map_ident_.m b/matlab/gsa/map_ident_.m index 2ce54748092b22b80e88ad3272519600b114567c..2ac84ae80b846175ee14fdaa3d4b72dfcef6ba9f 100644 --- a/matlab/gsa/map_ident_.m +++ b/matlab/gsa/map_ident_.m @@ -1,6 +1,6 @@ function map_ident_(OutputDirectoryName,opt_gsa) -% Copyright (C) 2012-2013 Dynare Team +% Copyright (C) 2012-2016 Dynare Team % % This file is part of Dynare. % @@ -1551,7 +1551,7 @@ return function []=create_TeX_loader(options_,figpath,ifig_number,caption,label_name) if options_.TeX && any(strcmp('eps',cellstr(options_.graph_format))) - fidTeX = fopen([figpath '.TeX'],'w'); + fidTeX = fopen([figpath '.tex'],'w'); fprintf(fidTeX,'%% TeX eps-loader file generated by map_ident_.m (Dynare).\n'); fprintf(fidTeX,['%% ' datestr(now,0) '\n\n']); fprintf(fidTeX,'\\begin{figure}[H]\n'); diff --git a/matlab/gsa/redform_map.m b/matlab/gsa/redform_map.m index 19d586bd0dff164b84fccd7f0f6aa22b40d1703d..c9f480f30a7e35c639ddd92cd6aa69888b92f1c1 100644 --- a/matlab/gsa/redform_map.m +++ b/matlab/gsa/redform_map.m @@ -759,7 +759,7 @@ return function []=create_TeX_loader(options_,figpath,caption,label_name) if options_.TeX && any(strcmp('eps',cellstr(options_.graph_format))) - fidTeX = fopen([figpath '.TeX'],'w'); + fidTeX = fopen([figpath '.tex'],'w'); fprintf(fidTeX,'%% TeX eps-loader file generated by redform_map.m (Dynare).\n'); fprintf(fidTeX,['%% ' datestr(now,0) '\n\n']); fprintf(fidTeX,'\\begin{figure}[H]\n'); diff --git a/matlab/gsa/redform_screen.m b/matlab/gsa/redform_screen.m index 56b5a7d805898f2018891e3567512a6336c3a565..6d99357e72b97eaced067f10a8692534509cd17e 100644 --- a/matlab/gsa/redform_screen.m +++ b/matlab/gsa/redform_screen.m @@ -14,7 +14,7 @@ function redform_screen(dirname, options_gsa_) % Reference: % M. Ratto, Global Sensitivity Analysis for Macroeconomic models, MIMEO, 2006. -% Copyright (C) 2012-2013 Dynare Team +% Copyright (C) 2012-2016 Dynare Team % % This file is part of Dynare. % @@ -165,7 +165,7 @@ create_TeX_loader(options_,[dirname,'/',M_.fname,'_redform_screen'],1,'Reduced f function []=create_TeX_loader(options_,figpath,label_number,caption,label_name) if options_.TeX && any(strcmp('eps',cellstr(options_.graph_format))) - fidTeX = fopen([figpath '.TeX'],'w'); + fidTeX = fopen([figpath '.tex'],'w'); fprintf(fidTeX,'%% TeX eps-loader file generated by redform_screen.m (Dynare).\n'); fprintf(fidTeX,['%% ' datestr(now,0) '\n\n']); fprintf(fidTeX,'\\begin{figure}[H]\n'); diff --git a/matlab/gsa/scatter_mcf.m b/matlab/gsa/scatter_mcf.m index 736e3dc5aca58d2e550645e41dd24beee287129e..ae5901920e3925967071fdc0f03939a3def26802 100644 --- a/matlab/gsa/scatter_mcf.m +++ b/matlab/gsa/scatter_mcf.m @@ -4,7 +4,7 @@ function scatter_mcf(X,Y,vnames,plotsymbol, fnam, dirname, figtitle, xparam1, D % Reference: % M. Ratto, Global Sensitivity Analysis for Macroeconomic models, MIMEO, 2006. -% Copyright (C) 2014 Dynare Team +% Copyright (C) 2014-2016 Dynare Team % % This file is part of Dynare. % @@ -165,7 +165,7 @@ end if ~nograph, dyn_saveas(hh,[dirname,filesep,fig_nam_],DynareOptions); if DynareOptions.TeX && any(strcmp('eps',cellstr(DynareOptions.graph_format))) - fidTeX = fopen([dirname,'/',fig_nam_ '.TeX'],'w'); + fidTeX = fopen([dirname,'/',fig_nam_ '.tex'],'w'); fprintf(fidTeX,'%% TeX eps-loader file generated by stab_map_2.m (Dynare).\n'); fprintf(fidTeX,['%% ' datestr(now,0) '\n\n']); fprintf(fidTeX,'\\begin{figure}[H]\n'); diff --git a/matlab/gsa/stab_map_1.m b/matlab/gsa/stab_map_1.m index 072f0c544101671a62740b7d70caaff93fdb1a01..3218b8d3c34eb928e8564fdee56809380f2e8d6e 100644 --- a/matlab/gsa/stab_map_1.m +++ b/matlab/gsa/stab_map_1.m @@ -24,7 +24,7 @@ function [proba, dproba] = stab_map_1(lpmat, ibehaviour, inonbehaviour, aname, i % Reference: % M. Ratto, Global Sensitivity Analysis for Macroeconomic models, MIMEO, 2006. -% Copyright (C) 2012-2013 Dynare Team +% Copyright (C) 2012-2016 Dynare Team % % This file is part of Dynare. % @@ -103,7 +103,7 @@ if iplot && ~options_.nograph if nparplot>12, dyn_saveas(hh,[dirname,filesep,fname_,'_',aname,'_SA_',int2str(i)],options_); if options_.TeX && any(strcmp('eps',cellstr(options_.graph_format))) - fidTeX = fopen([dirname,filesep,fname_,'_',aname,'_SA_',int2str(i) '.TeX'],'w'); + fidTeX = fopen([dirname,filesep,fname_,'_',aname,'_SA_',int2str(i) '.tex'],'w'); fprintf(fidTeX,'%% TeX eps-loader file generated by stab_map_2.m (Dynare).\n'); fprintf(fidTeX,['%% ' datestr(now,0) '\n\n']); fprintf(fidTeX,'\\begin{figure}[H]\n'); @@ -118,7 +118,7 @@ if iplot && ~options_.nograph else dyn_saveas(hh,[dirname,filesep,fname_,'_',aname,'_SA'],options_); if options_.TeX && any(strcmp('eps',cellstr(options_.graph_format))) - fidTeX = fopen([dirname,filesep,fname_,'_',aname,'_SA.TeX'],'w'); + fidTeX = fopen([dirname,filesep,fname_,'_',aname,'_SA.tex'],'w'); fprintf(fidTeX,'%% TeX eps-loader file generated by stab_map_2.m (Dynare).\n'); fprintf(fidTeX,['%% ' datestr(now,0) '\n\n']); fprintf(fidTeX,'\\begin{figure}[H]\n'); diff --git a/matlab/gsa/stab_map_2.m b/matlab/gsa/stab_map_2.m index 2bafb48a7e65b488fc60c57f165970de2ddea7ad..b0cc4e3be341403eb5d8de9b806a9a690f275601 100644 --- a/matlab/gsa/stab_map_2.m +++ b/matlab/gsa/stab_map_2.m @@ -9,7 +9,7 @@ function indcorr = stab_map_2(x,alpha2, pvalue_crit, fnam, dirname,xparam1,figti % Reference: % M. Ratto, Global Sensitivity Analysis for Macroeconomic models, MIMEO, 2006. -% Copyright (C) 2012-2013 Dynare Team +% Copyright (C) 2012-2016 Dynare Team % % This file is part of Dynare. % @@ -115,7 +115,7 @@ for j=1:npar, if (mod(j2,12)==0) && j2>0, dyn_saveas(hh,[dirname,filesep,fig_nam_,int2str(ifig)],options_); if options_.TeX && any(strcmp('eps',cellstr(options_.graph_format))) - fidTeX = fopen([dirname,filesep,fig_nam_,int2str(ifig),'.TeX'],'w'); + fidTeX = fopen([dirname,filesep,fig_nam_,int2str(ifig),'.tex'],'w'); fprintf(fidTeX,'%% TeX eps-loader file generated by stab_map_2.m (Dynare).\n'); fprintf(fidTeX,['%% ' datestr(now,0) '\n\n']); fprintf(fidTeX,'\\begin{figure}[H]\n'); @@ -136,7 +136,7 @@ for j=1:npar, if ~nograph && (j==(npar)) && j2>0 && (mod(j2,12)~=0), dyn_saveas(hh,[dirname,filesep,fig_nam_,int2str(ifig)],options_); if options_.TeX && any(strcmp('eps',cellstr(options_.graph_format))) - fidTeX = fopen([dirname,filesep,fig_nam_,int2str(ifig),'.TeX'],'w'); + fidTeX = fopen([dirname,filesep,fig_nam_,int2str(ifig),'.tex'],'w'); fprintf(fidTeX,'%% TeX eps-loader file generated by stab_map_2.m (Dynare).\n'); fprintf(fidTeX,['%% ' datestr(now,0) '\n\n']); fprintf(fidTeX,'\\begin{figure}[H]\n'); diff --git a/matlab/ident_bruteforce.m b/matlab/ident_bruteforce.m index a2234f5317ed02faf19453aa66796d878b8d1b0e..b9d35088dc3f757aac92a65fba4e71c216a2f758 100644 --- a/matlab/ident_bruteforce.m +++ b/matlab/ident_bruteforce.m @@ -9,7 +9,7 @@ function [pars, cosnJ] = ident_bruteforce(J,n,TeX, pnames_TeX) % pars : cell array with groupf of params for each column of J for 1 to n % cosnJ : the cosn of each column with the selected group of columns -% Copyright (C) 2009-2012 Dynare Team +% Copyright (C) 2009-2016 Dynare Team % % This file is part of Dynare. % @@ -66,7 +66,7 @@ for ll = 1:n, end dyn_waitbar_close(h); if TeX - filename = [OutputDirectoryName '/' M_.fname '_collinearity_patterns' int2str(ll) '.TeX']; + filename = [OutputDirectoryName '/' M_.fname '_collinearity_patterns' int2str(ll) '.tex']; fidTeX = fopen(filename,'w'); fprintf(fidTeX,'%% TeX-table generated by ident_bruteforce (Dynare).\n'); fprintf(fidTeX,['%% Collinearity patterns with ',int2str(ll),' parameter(s)\n']); diff --git a/matlab/mode_check.m b/matlab/mode_check.m index e50baef4ebe27222c605ddc5a5fde7dd18060088..40b675739bab202dc8b09656b75c6acf4235b0dc 100644 --- a/matlab/mode_check.m +++ b/matlab/mode_check.m @@ -40,7 +40,7 @@ function mode_check(fun,x,hessian_mat,DynareDataset,DatasetInfo,DynareOptions,Mo %! @end deftypefn %@eod: -% Copyright (C) 2003-2015 Dynare Team +% Copyright (C) 2003-2016 Dynare Team % % This file is part of Dynare. % @@ -78,7 +78,7 @@ end [nbplt,nr,nc,lr,lc,nstar] = pltorg(length(x)); if TeX && any(strcmp('eps',cellstr(DynareOptions.graph_format))) - fidTeX = fopen([Model.fname '_CheckPlots.TeX'],'w'); + fidTeX = fopen([Model.fname '_CheckPlots.tex'],'w'); fprintf(fidTeX,'%% TeX eps-loader file generated by mode_check.m (Dynare).\n'); fprintf(fidTeX,['%% ' datestr(now,0) '\n']); fprintf(fidTeX,' \n'); diff --git a/matlab/plot_identification.m b/matlab/plot_identification.m index e3a20013a4ef75b7716b15260dc78f2cec755d80..f2cab6bd958c0e7fdc4237cc40ea6bbadd8d6635 100644 --- a/matlab/plot_identification.m +++ b/matlab/plot_identification.m @@ -19,7 +19,7 @@ function plot_identification(params,idemoments,idehess,idemodel, idelre, advance % SPECIAL REQUIREMENTS % None -% Copyright (C) 2008-2013 Dynare Team +% Copyright (C) 2008-2016 Dynare Team % % This file is part of Dynare. % @@ -103,7 +103,7 @@ if SampleSize == 1, title('Sensitivity component with moments Information matrix (log-scale)') end if options_.TeX && any(strcmp('eps',cellstr(options_.graph_format))) - fidTeX = fopen([IdentifDirectoryName '/' M_.fname '_ident_strength_' tittxt1,'.TeX'],'w'); + fidTeX = fopen([IdentifDirectoryName '/' M_.fname '_ident_strength_' tittxt1,'.tex'],'w'); fprintf(fidTeX,'%% TeX eps-loader file generated by plot_identification.m (Dynare).\n'); fprintf(fidTeX,['%% ' datestr(now,0) '\n\n']); fprintf(fidTeX,'\\begin{figure}[H]\n'); @@ -146,7 +146,7 @@ if SampleSize == 1, title('Sensitivity bars using derivatives (log-scale)') dyn_saveas(hh,[IdentifDirectoryName '/' M_.fname '_sensitivity_' tittxt1 ],options_); if options_.TeX && any(strcmp('eps',cellstr(options_.graph_format))) - fidTeX = fopen([IdentifDirectoryName '/' M_.fname '_sensitivity_' tittxt1,'.TeX'],'w'); + fidTeX = fopen([IdentifDirectoryName '/' M_.fname '_sensitivity_' tittxt1,'.tex'],'w'); fprintf(fidTeX,'%% TeX eps-loader file generated by plot_identification.m (Dynare).\n'); fprintf(fidTeX,['%% ' datestr(now,0) '\n\n']); fprintf(fidTeX,'\\begin{figure}[H]\n'); @@ -199,7 +199,7 @@ if SampleSize == 1, xlabel([tittxt,' - Collinearity patterns with ', int2str(j) ,' parameter(s)'],'interpreter','none') dyn_saveas(hh,[ IdentifDirectoryName '/' M_.fname '_ident_collinearity_' tittxt1 '_' int2str(j) ],options_); if options_.TeX && any(strcmp('eps',cellstr(options_.graph_format))) - fidTeX = fopen([ IdentifDirectoryName '/' M_.fname '_ident_collinearity_' tittxt1 '_' int2str(j),'.TeX'],'w'); + fidTeX = fopen([ IdentifDirectoryName '/' M_.fname '_ident_collinearity_' tittxt1 '_' int2str(j),'.tex'],'w'); fprintf(fidTeX,'%% TeX eps-loader file generated by plot_identification.m (Dynare).\n'); fprintf(fidTeX,['%% ' datestr(now,0) '\n\n']); fprintf(fidTeX,'\\begin{figure}[H]\n'); @@ -264,7 +264,7 @@ if SampleSize == 1, end dyn_saveas(f1,[ IdentifDirectoryName '/' M_.fname '_ident_pattern_' tittxt1 '_1' ],options_); if options_.TeX && any(strcmp('eps',cellstr(options_.graph_format))) - fidTeX = fopen([ IdentifDirectoryName '/' M_.fname '_ident_pattern_' tittxt1 '_1','.TeX'],'w'); + fidTeX = fopen([ IdentifDirectoryName '/' M_.fname '_ident_pattern_' tittxt1 '_1','.tex'],'w'); fprintf(fidTeX,'%% TeX eps-loader file generated by plot_identification.m (Dynare).\n'); fprintf(fidTeX,['%% ' datestr(now,0) '\n\n']); fprintf(fidTeX,'\\begin{figure}[H]\n'); @@ -279,7 +279,7 @@ if SampleSize == 1, if nparam>4, dyn_saveas(f2,[ IdentifDirectoryName '/' M_.fname '_ident_pattern_' tittxt1 '_2' ],options_); if options_.TeX && any(strcmp('eps',cellstr(options_.graph_format))) - fidTeX = fopen([ IdentifDirectoryName '/' M_.fname '_ident_pattern_' tittxt1 '_2.TeX'],'w'); + fidTeX = fopen([ IdentifDirectoryName '/' M_.fname '_ident_pattern_' tittxt1 '_2.tex'],'w'); fprintf(fidTeX,'%% TeX eps-loader file generated by plot_identification.m (Dynare).\n'); fprintf(fidTeX,['%% ' datestr(now,0) '\n\n']); fprintf(fidTeX,'\\begin{figure}[H]\n'); @@ -323,7 +323,7 @@ else title('MC mean of sensitivity measures') dyn_saveas(hh,[ IdentifDirectoryName '/' M_.fname '_MC_sensitivity' ],options_); if options_.TeX && any(strcmp('eps',cellstr(options_.graph_format))) - fidTeX = fopen([ IdentifDirectoryName '/' M_.fname '_MC_sensitivity.TeX'],'w'); + fidTeX = fopen([ IdentifDirectoryName '/' M_.fname '_MC_sensitivity.tex'],'w'); fprintf(fidTeX,'%% TeX eps-loader file generated by plot_identification.m (Dynare).\n'); fprintf(fidTeX,['%% ' datestr(now,0) '\n\n']); fprintf(fidTeX,'\\begin{figure}[H]\n'); @@ -433,7 +433,7 @@ else end dyn_saveas(f1,[IdentifDirectoryName '/' M_.fname '_MC_ident_pattern_1' ],options_); if options_.TeX && any(strcmp('eps',cellstr(options_.graph_format))) - fidTeX = fopen([IdentifDirectoryName '/' M_.fname '_MC_ident_pattern_1.TeX'],'w'); + fidTeX = fopen([IdentifDirectoryName '/' M_.fname '_MC_ident_pattern_1.tex'],'w'); fprintf(fidTeX,'%% TeX eps-loader file generated by plot_identification.m (Dynare).\n'); fprintf(fidTeX,['%% ' datestr(now,0) '\n\n']); fprintf(fidTeX,'\\begin{figure}[H]\n'); @@ -448,7 +448,7 @@ else if nparam>4, dyn_saveas(f2,[ IdentifDirectoryName '/' M_.fname '_MC_ident_pattern_2' ],options_); if options_.TeX && any(strcmp('eps',cellstr(options_.graph_format))) - fidTeX = fopen([ IdentifDirectoryName '/' M_.fname '_MC_ident_pattern_2.TeX'],'w'); + fidTeX = fopen([ IdentifDirectoryName '/' M_.fname '_MC_ident_pattern_2.tex'],'w'); fprintf(fidTeX,'%% TeX eps-loader file generated by plot_identification.m (Dynare).\n'); fprintf(fidTeX,['%% ' datestr(now,0) '\n\n']); fprintf(fidTeX,'\\begin{figure}[H]\n'); diff --git a/matlab/plot_priors.m b/matlab/plot_priors.m index 5f6214abdfd1ab342d2ee5aa60c840ff835f3b6b..bd3a4b31d8faa26820a29db4d3066c087aa9c970 100644 --- a/matlab/plot_priors.m +++ b/matlab/plot_priors.m @@ -13,7 +13,7 @@ function plot_priors(bayestopt_,M_,estim_params_,options_) % SPECIAL REQUIREMENTS % None -% Copyright (C) 2004-2012 Dynare Team +% Copyright (C) 2004-2016 Dynare Team % % This file is part of Dynare. % @@ -37,7 +37,7 @@ npar = length(bayestopt_.p1); [nbplt,nr,nc,lr,lc,nstar] = pltorg(npar); if TeX && any(strcmp('eps',cellstr(options_.graph_format))) - fidTeX = fopen([M_.fname '_Priors.TeX'],'w'); + fidTeX = fopen([M_.fname '_Priors.tex'],'w'); fprintf(fidTeX,'%% TeX eps-loader file generated by plot_priors.m (Dynare).\n'); fprintf(fidTeX,['%% ' datestr(now,0) '\n']); fprintf(fidTeX,' \n'); diff --git a/matlab/pm3.m b/matlab/pm3.m index 42a2bfc9fce2fee1cfca8bb2fb12e4bda00bd822..747389d5eee8d421cd7155bb67c3f9783d72b61f 100644 --- a/matlab/pm3.m +++ b/matlab/pm3.m @@ -244,7 +244,7 @@ end subplotnum = 0; if options_.TeX && any(strcmp('eps',cellstr(options_.graph_format))) - fidTeX = fopen([M_.dname '/Output/' M_.fname '_' name3 '.TeX'],'w'); + fidTeX = fopen([M_.dname '/Output/' M_.fname '_' name3 '.tex'],'w'); fprintf(fidTeX,'%% TeX eps-loader file generated by Dynare.\n'); fprintf(fidTeX,['%% ' datestr(now,0) '\n']); fprintf(fidTeX,' \n'); diff --git a/matlab/stoch_simul.m b/matlab/stoch_simul.m index f33a6ea2c6ef53d8f56a02b8cbd18513f76eacb1..689ace5cde7c99d0d71f974894ef882b6fc7b026 100644 --- a/matlab/stoch_simul.m +++ b/matlab/stoch_simul.m @@ -177,7 +177,7 @@ if options_.irf var_listTeX = M_.endo_names_tex(i_var,:); if TeX && any(strcmp('eps',cellstr(options_.graph_format))) - fidTeX = fopen([M_.fname '_IRF.TeX'],'w'); + fidTeX = fopen([M_.fname '_IRF.tex'],'w'); fprintf(fidTeX,'%% TeX eps-loader file generated by stoch_simul.m (Dynare).\n'); fprintf(fidTeX,['%% ' datestr(now,0) '\n']); fprintf(fidTeX,' \n'); diff --git a/matlab/trace_plot.m b/matlab/trace_plot.m index 759afe94bf55b43e2768edcac10dc0b5d1e84571..af6ab0fd348c20c92f95dc2eba33c1464c736716 100644 --- a/matlab/trace_plot.m +++ b/matlab/trace_plot.m @@ -18,7 +18,7 @@ function trace_plot(options_,M_,estim_params_,type,blck,name1,name2) % % SPECIAL REQUIREMENTS -% Copyright (C) 2003-2015 Dynare Team +% Copyright (C) 2003-2016 Dynare Team % % This file is part of Dynare. % @@ -133,7 +133,7 @@ end dyn_saveas(hh,[M_.fname, filesep, 'graphs', filesep, 'TracePlot_' plot_name],options_) if options_.TeX - fid=fopen([M_.fname,'/graphs/',M_.fname,'_TracePlot_' plot_name,'.TeX'],'w+'); + fid=fopen([M_.fname,'/graphs/',M_.fname,'_TracePlot_' plot_name,'.tex'],'w+'); if strcmpi(type,'DeepParameter') tex_names=M_.param_names_tex; diff --git a/tests/TeX/fs2000_corr_ME.mod b/tests/TeX/fs2000_corr_ME.mod index c9d3b3f08fe041c44ed78a2db2f30cc04fdee700..b959e1367fea4947be834a9edcab507dedfe04e2 100644 --- a/tests/TeX/fs2000_corr_ME.mod +++ b/tests/TeX/fs2000_corr_ME.mod @@ -14,7 +14,7 @@ */ /* - * Copyright (C) 2004-2013 Dynare Team + * Copyright (C) 2004-2016 Dynare Team * * This file is part of Dynare. * @@ -170,6 +170,6 @@ shock_decomposition y W R; collect_LaTeX_Files(M_); //identification(advanced=1,max_dim_cova_group=3,prior_mc=250); -if system(['pdflatex -halt-on-error ' M_.fname '_TeX_binder.TeX']) +if system(['pdflatex -halt-on-error ' M_.fname '_TeX_binder.tex']) error('TeX-File did not compile.') -end \ No newline at end of file +end diff --git a/tests/gsa/ls2003.mod b/tests/gsa/ls2003.mod index 4a8e169e62b9898afd04f4cd8291ad6bc6f6da16..4e86dfb2cdefb665206ee48767c408014d790891 100644 --- a/tests/gsa/ls2003.mod +++ b/tests/gsa/ls2003.mod @@ -218,6 +218,6 @@ datafile='data_ca1.m',first_obs=8,nobs=79,prefilter=1, rmse=1,ppost=1); collect_LaTeX_Files(M_); -if system(['pdflatex -halt-on-error ' M_.fname '_TeX_binder.TeX']) +if system(['pdflatex -halt-on-error ' M_.fname '_TeX_binder.tex']) error('TeX-File did not compile.') -end \ No newline at end of file +end diff --git a/tests/identification/as2007/as2007.mod b/tests/identification/as2007/as2007.mod index 7e6f0313c58fe881b6ac88094335b720844eb30e..387811432400b940ff8c691cd022b20d87a4adb3 100644 --- a/tests/identification/as2007/as2007.mod +++ b/tests/identification/as2007/as2007.mod @@ -65,6 +65,6 @@ identification; identification(advanced=1,max_dim_cova_group=3,prior_mc=250); collect_LaTeX_Files(M_); -if system(['pdflatex -halt-on-error ' M_.fname '_TeX_binder.TeX']) +if system(['pdflatex -halt-on-error ' M_.fname '_TeX_binder.tex']) error('TeX-File did not compile.') -end \ No newline at end of file +end