# What do you use to embed Julia code in LaTeX?

**URL:** https://discourse.julialang.org/t/what-do-you-use-to-embed-julia-code-in-latex/23992
**Category:** General Usage
**Created:** [May 8, 2019, 10:28am UTC](https://discourse.julialang.org/t/what-do-you-use-to-embed-julia-code-in-latex/23992 "2019-05-08T10:28:08Z")
**Posts on this page:** 1
**Showing post:** 16

<div class="post-metadata">

### Author: ![lmiq](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lmiq/32/18314_2.png) [@lmiq](https://discourse.julialang.org/u/lmiq)
#### Post date: [August 30, 2020, 2:00pm UTC](https://discourse.julialang.org/t/what-do-you-use-to-embed-julia-code-in-latex/23992/16 "2020-08-30T14:00:46Z")

</div>

You have to both add the [nocolors] option and comment those lines to get a completely grayscale output.

I have added a minimal working example (with some fixes to the code above), here:

[https://github.com/m3g/jlcode\_example](https://github.com/m3g/jlcode_example)

---

_[View the full topic](https://discourse.julialang.org/t/what-do-you-use-to-embed-julia-code-in-latex/23992)._
