Filter löschen
Filter löschen

How to create a output html file with fixed side navigation menu for live scripts?

4 Ansichten (letzte 30 Tage)
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.

Antworten (1)

Adithya
Adithya am 28 Mär. 2023
Bearbeitet: Adithya am 28 Mär. 2023
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.

Kategorien

Mehr zu MATLAB Report Generator finden Sie in Help Center und File Exchange

Produkte


Version

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by