How to create a output html file with fixed side navigation menu for live scripts?
4 ビュー (過去 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.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1328125/image.png)
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!