发布时模仿小节

mimicking a subsection when publishing

我可能是错的,但据我了解,Matlab 在发布时没有 "subsection" 选项。

但是,如果我选择 here-mkdir- 文档),在 Examples 部分下有三个 "subsections"。 你将如何获得这个?如果仅通过 HTML 而不是通过直接的 Matlab 选项,是否可以分配快捷方式或按钮来创建 HTML 片段?

发布到html时,您可以使用html-代码:

%%
% <html>
% <h3>subsection</h3>
% </html>
% 

这正是我想要的:它创建了一个与主标题颜色相同的小节标题。

%%
% <html><h3 style="color:C45400"> 
%       This will produce a Matlab-orange subsection 
% </h3></html>
%
%%