How can I export a Matlab live script to Typst?

I have to include a MATLAB live script (with output) in the appendix of a lab report, but MATLAB does not have an option for Typst export. The following options are available:
image

I tried converting from Markdown and jupyter notebook to typst, but this is not an ideal way, because formatting is lost and some forumals don’t get converted.

Does anyone here have a similar problem? Is there a solution for Python Jupyter Notebooks?

Hi, welcome to this forum! I have edited your question title and category to follow our guidelines.

I don’t know a direct solution to your problem, but there are a few options for converting files such as Jupyter notebooks to Typst:

  1. Pandoc can take Word, HTML, Markdown, Jupyter notebooks, etc. and convert them to Typst. I don’t know how well it works.
  2. Quarto can also convert a Jupyter or Markdown file to Typst. It uses pandoc behind the scene but the output might be more polished than with raw pandoc.
  3. There’s GitHub - dermesser/typst_of_jupyter: Convert Jupyter notebooks to Typst source code (and then to PDFs) which might be useful for your use case.