How to create a output html file with fixed side navigation menu for live scripts?
16 次查看(过去 30 天)
显示 更早的评论
Hi there,
I'm a live script enthusiast.
Recently I have tried to use live scripts to organize MATLAB codes.
However, I found that it would be a little inconvenient if I directly applied default table of contents when the script is pretty long.
I'm wondering if it's possible to output a html file with fixed side navigation menu for live scripts (i.e. left hand side table of contents),
just like what we generally see in online documentation(see the figure below).
That will be great if we can acquire information through this way when encountering a super long output html file.
0 个评论
回答(1 个)
Adithya
2023-3-28
编辑:Adithya
2023-3-28
Yes, it is possible to generate an HTML file with a fixed side navigation menu for MATLAB live scripts.
To do so, you can use the MATLAB Report Generator to create a report template that includes a fixed side navigation menu. You can then use this template to generate your HTML output.
Here are the general steps:
1.Create a new report template in MATLAB Report Generator.
2. Add a fixed side navigation menu to the template using HTML and CSS. You can use a variety of libraries and frameworks to create the menu, such as Bootstrap or jQuery
3.Set up the template to work with MATLAB live scripts. You can use the MATLAB Live Script Output component to include the live script in the report.
4.Generate the report using the template and your live script.
You can customize the menu to suit your needs, including adding links to different sections of the live script.You can find more information on the syntax and usage of MATLAB Report Generator in this MATLAB documentation.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 MATLAB Report Generator 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!