7541:24434
Share« Teaching Geoscience with MATLAB Interest Group
To publish (or die :-) )!
I showed the publish functionality to you during the workshop. Some of you knew about it already. Frederik has started to use it with his class homework sets (?). Who else will use it now?
Thanks Loren - I've used it for a couple years now and will continue to do so. My graduate student built an entire software "manual" with publish.m and LaTex. I'm uploading it for everyone to provide inspiration.
Great to meet everyone at the workshop.
sinc.
Pete
Great to meet everyone at the workshop.
sinc.
Pete
7541:24480
Share
This post was edited by Rory McFadden on Aug, 2016
Ok publish-o-files, Here's one for you:
I'd like to know where the editable publish settings are stored. For example, I set up the "output settings" (specifically, the publish-to folder) for a particular .m file to publish to an .html file that is on the web (http://users.clas.ufl.edu/adamsp/Outgoing/Code/CpCnv/slcVegLineAnalysis.html , from my desktop mac at work. I sync all of my .m files via Dropbox, so I'd like these same settings to be accessible from my laptop... they aren't. Where are the publish setting stored?
thanks.
Pete
Ok publish-o-files, Here's one for you:
I'd like to know where the editable publish settings are stored. For example, I set up the "output settings" (specifically, the publish-to folder) for a particular .m file to publish to an .html file that is on the web (http://users.clas.ufl.edu/adamsp/Outgoing/Code/CpCnv/slcVegLineAnalysis.html , from my desktop mac at work. I sync all of my .m files via Dropbox, so I'd like these same settings to be accessible from my laptop... they aren't. Where are the publish setting stored?
thanks.
Pete
7541:25289
Share
This post was edited by Loren Shure on Nov, 2015
I just changed defaults on one of my files and I now see publish_configurations.m in my preferences directory. I think you have to be very careful with this -- it says not to edit it by hand but to use the publish configuration editor. And it hardwires in the file location: e.g.,
%% @name mytry
% @associatedFile C:\Users\loren\Documents\MATLAB\mytry.m
% @mostRecentlyActioned false
% @uniqueId -43fda35a:1510072f5c0:-7fea
% @publishOptionsBasedOn User Default
publish_options.outputFileFormat='pdf';
publish_options.outputLocation='';
publish_options.styleSheet='';
publish_options.figureCaptureMethod='entireGUIWindow';
publish_options.imageFormat='default';
publish_options.useNewFigure=true;
publish_options.maxWidth=Inf;
publish_options.maxHeight=Inf;
publish_options.showCode=true;
publish_options.evaluateCode=true;
publish_options.catchError=true;
publish_options.createThumbnail=true;
publish_options.maxNumberOfOutputLines=Inf;
publish_options.codeToEvaluate=[ ...
'% Modify expression to add input arguments.' char(10) ...
'% Example:' char(10) ...
'% a = [1 2 3; 4 5 6]; ' char(10) ...
'% foo(a);' char(10) ...
'' char(10) ...
'mytry' char(10) ...
]
publish('C:\Users\loren\Documents\MATLAB\mytry.m',publish_options);
So I don't think copying your preferences will work the way you expect unless the file system is identical in setup.
I just changed defaults on one of my files and I now see publish_configurations.m in my preferences directory. I think you have to be very careful with this -- it says not to edit it by hand but to use the publish configuration editor. And it hardwires in the file location: e.g.,
%% @name mytry
% @associatedFile C:\Users\loren\Documents\MATLAB\mytry.m
% @mostRecentlyActioned false
% @uniqueId -43fda35a:1510072f5c0:-7fea
% @publishOptionsBasedOn User Default
publish_options.outputFileFormat='pdf';
publish_options.outputLocation='';
publish_options.styleSheet='';
publish_options.figureCaptureMethod='entireGUIWindow';
publish_options.imageFormat='default';
publish_options.useNewFigure=true;
publish_options.maxWidth=Inf;
publish_options.maxHeight=Inf;
publish_options.showCode=true;
publish_options.evaluateCode=true;
publish_options.catchError=true;
publish_options.createThumbnail=true;
publish_options.maxNumberOfOutputLines=Inf;
publish_options.codeToEvaluate=[ ...
'% Modify expression to add input arguments.' char(10) ...
'% Example:' char(10) ...
'% a = [1 2 3; 4 5 6]; ' char(10) ...
'% foo(a);' char(10) ...
'' char(10) ...
'mytry' char(10) ...
]
publish('C:\Users\loren\Documents\MATLAB\mytry.m',publish_options);
So I don't think copying your preferences will work the way you expect unless the file system is identical in setup.
7541:25292
Share
Thanks Loren. I agree that this might have unforeseen consequences, so I'll refrain until "sync-computing" advances in its sophistication.
7541:25448
Share