NetLogo code on LaTeX document

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

NetLogo code on LaTeX document

sergio.bacelar
How can I format a NetLogo code block to insert in a LaTeX document?
 `Verbatim`, `Listings`, `Mint`? I had problems using `NetLogo` and `Pygments`.
Reply | Threaded
Open this post in threaded view
|

Re: NetLogo code on LaTeX document

sergio.bacelar
I solved this problem using the information in https://github.com/cdzhang/netlogo_latex_minted https://github.com/cdzhang/netlogo_latex_minted.  

 As I am writing in `org-mode` I used:
 

 ```#+Latex_HEADER: \usepackage{minted}
 #+LATEX_HEADER: \usemintedstyle[netlogo]{Nlogo}````
 

 And then:
 

 ```#+BEGIN_SRC netlogo
 

 (insert NetLogo code here)
 

 #+END_SRC```