2

I'm currently working on my thesis. And I've written some python code in Jupyter notebook files and I would like to show these files in latex.

How can I do this best?

Regards

  • What have you discovered on the Jupyter site about exporting a notebook as LaTeX? Have you explored any packages in LaTeX that allow you to typeset code? – Jeffrey J Weimer Apr 09 '21 at 14:57
  • I've already experienced with listings, this works but it doesn't has like the different "color" to seperate functions and classes and so on. – Tam Van Duc Apr 09 '21 at 18:16
  • 1
    Not sure if I get your question. Maybe you are looking for something like the listings package. Overleaf has a good overview article about the topic: https://www.overleaf.com/learn/latex/code_listing. – Dr. Manuel Kuehner Apr 10 '21 at 02:54
  • Thank you sir. Very much – Tam Van Duc Apr 13 '21 at 17:24

0 Answers0