I need to change the publish.m file ([matlabroot]/toolbox/matlab/codetools/publish.m) to make the font size of published equations somewhat bigger. I used to do it in previous versions of MATLAB and it worked successfully, but in 2015a it seems that the change isn't noticed.
I've tried restarting MATLAB or running clear publish to no avail.
Do you know how I can make MATLAB recognize the change?

 採用された回答

luolimao
luolimao 2015 年 10 月 4 日
編集済み: luolimao 2015 年 10 月 11 日

1 投票

It's a bit of a tedious method, but it works. Basically, you run MATLAB as administrator, navigate to .../toolbox/matlab/codetools/, edit the publish.m file, and then run
pcode publish.m
This will regenerate the publish.p in that folder (it must exist, and MATLAB only reads that file). Just note that if you also have a non-admin instance of MATLAB open at the same time that you're using for publishing, you should run
clear all
or at least
clear publish
every time you make edits to the .m file and regenerate the .p file (MATLAB will cache the version of the .p file that existed when you opened that instance, unless you force-clear it).
Edit (10/11/15): Based on the comment below by Walter Roberson, and which I have confirmed on Windows, it is sufficient to run
rehash toolboxcache
after making changes.

3 件のコメント

Walter Roberson
Walter Roberson 2015 年 10 月 4 日
In OS-X I see no indication that MATLAB has a publish.p -- it appears to be relying upon the .m file.
rehash toolboxcache
mrmashal
mrmashal 2015 年 10 月 4 日
Thanks, it worked! and it was not at all tedious :)
luolimao
luolimao 2015 年 10 月 11 日
@Walter Roberson your method does indeed work on Windows. Editing my answer.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeStartup and Shutdown についてさらに検索

製品

質問済み:

2015 年 4 月 24 日

編集済み:

2015 年 10 月 11 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by