Code covered by the BSD License  

Highlights from
publish2latex

image thumbnail

publish2latex

by

 

09 Apr 2013 (Updated )

Using full Latex markup in m-files to generate high quality documentation. Version 1.3

publishFigureFormat
function publishFigureFormat
%
% You may wish to modify this file.
%
% Purpose : This function define the default setup for the figure formats.
%
% Author :  Matther Harker and Paul O'Leary
% Date :    29. Jan 2013
% Version : 1.0
%
% (c) 2013 Matther Harker and Paul O'Leary
% url: www.harkeroleary.org
% email: office@harkeroleary.org
%
% History:
%   Date:           Comment:
%

% define the default fonts and lates interpreter
%
FontSize=12;
%
set(0,'DefaultFigureColor',[1,1,1]);
set(0,'DefaultaxesFontName','Times New Roman');
set(0,'DefaultaxesFontSize',FontSize);
set(0,'DefaulttextFontName','Times New Roman');
set(0,'DefaulttextFontSize',FontSize);
set(0,'DefaultfigurePaperType','A4');
set(0,'DefaultuicontrolFontName','Times New Roman');
set(0,'DefaultuicontrolFontSize',FontSize-1);
set(0,'DefaultTextInterpreter', 'latex');
%
%warning('off','MATLAB:dispatcher:InexactCaseMatch');
%
% Special Settings for normal figures
%
width=13.5;
height=8;
%
FigureSize=[1 1 width height];
MyAxesPosition=[0.1300 0.1500 0.8500 0.7500];
%
set(0,'DefaultFigureUnits','centimeters');
set(0,'DefaultFigurePosition',FigureSize);
set(0,'DefaultFigurePaperUnits','centimeters');
set(0,'DefaultFigurePaperPosition',FigureSize);
set(0,'DefaultaxesPosition',MyAxesPosition);


Contact us