How to make published html look as good as the blogs on MATLAB Central?

2 ビュー (過去 30 日間)
Naor Movshovitz
Naor Movshovitz 2016 年 8 月 3 日
編集済み: per isakson 2020 年 2 月 1 日
Check out any of the posts on Cleve's Corner, for example this one. As with all blogs on MATLAB Central it is supposedly published from a MATLAB script using the built-in html publishing feature. But when I try to publish a script with LaTeX equations it looks nothing like this! Inline math is never aligned with the text, and display math is not centered. And all math is low-res images and looks rather bad. Are there some settings that I am missing, possibly undocumented, or is the blogs' html perhaps post-processed by professional tools? More generally, is there anything I can do to make math look better in published scripts?

採用された回答

per isakson
per isakson 2016 年 8 月 3 日
編集済み: per isakson 2020 年 2 月 1 日
I don't think you have missed anything documented.
I had a look at the html-code of Cleve's blog and I think it uses Beautiful math in all browsers, whereas the standard Publish does not. Yes, that is indeed the case, see Cleve’s Corner: Cleve Moler on Mathematics and Computing
The description of the FEX contribution Relativistic rocket by Mikhail contains the paragraph: "See published html help for more information. The html help uses MathJax javascript to display formulas if you are connected to Internet. Otherwise, it falls back to pre-generated PNG images."
And see the discussion in the comments of LaTeX Formula Publishing   and Google finds more for "Matlab MathJax".
&nbsp
I made a small experiment (R2016a) with an example of the documentation in combination with a sentence of Cleve's blog. It confirms your observations.
&nbsp
&nbsp
The rendering of Cleve's blog looks better.
&nbsp
The quality of the rendering of the example in the documentation is similar to that of my experiment.
  3 件のコメント
per isakson
per isakson 2016 年 8 月 3 日
I added a couple of links on "Matlab MathJax" to the answer.
Naor Movshovitz
Naor Movshovitz 2016 年 8 月 10 日
thanks for the great links!

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeFunction Creation についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by