How can I change my default figure Print Preview and/or default Print stylesheet in MATLAB R2011a (7.12)?
6 ビュー (過去 30 日間)
古いコメントを表示
MathWorks Support Team
2013 年 6 月 19 日
編集済み: MathWorks Support Team
2023 年 5 月 25 日
I want to change my default print stylesheet, but I cannot find how to do this.
採用された回答
MathWorks Support Team
2013 年 6 月 19 日
The ability to save changes default stylesheet from the Print Preview dialog is not available in MATLAB 7.12 (R2011a). However, for releases prior to R2012b, you can use the following steps to force MATLAB to 'remember' the new default stylesheet. For releases after R2012a, see related solution 1-AVUSD6 for a workaround.
1. Edit your settings in a figure's preview window (File->Print Preview) and save them with the name you want (Ex: 'Modified').
2. Open initprintexporttemplate.m file by executing the following:
edit(fullfile(matlabroot,'\toolbox\matlab\graphics\initprintexporttemplate.m'))
3.Comment the RETURN command on line number 9 of 'initprintexporttemplate.m' file.
4.Change the line number 86 in the file 'initprintexporttemplate.m' from - 'defpt = readDefProps([prefdir '/PrintSetup/default.txt']);' to 'defpt = readDefProps([prefdir '/PrintSetup/Modified.txt']);'
5. In case you want to change the settings for printing the figure, you also need to modify the line 146 in file 'initprintexporttemplate.m' from 'defpt = readDefProps([prefdir '/ExportSetup/default.txt']);' to 'defpt = readDefProps([prefdir '/ExportSetup/Modified.txt']);'
6. Save the file. Now every time you open a new figure the Modified stylesheet setting will be loaded. If you want to go back to your default settings, change the line 86 in 'initprintexporttemplate.m' file to default again.
P.S.: In case you are not able to save the 'initprintexporttemplate.m' file, run MATLAB as administrator.
2 件のコメント
Rutuja Shirali
2015 年 6 月 25 日
編集済み: MathWorks Support Team
2023 年 5 月 25 日
Hello Sugato, the solution can be found here:
Rutuja Shirali
2015 年 6 月 25 日
編集済み: MathWorks Support Team
2023 年 5 月 25 日
Hello Sugato, the solution can be found here:
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で File Operations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!