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!