# What is the simple way to extract julia code to pdf with exact colour and place?

**URL:** <https://discourse.julialang.org/t/what-is-the-simple-way-to-extract-julia-code-to-pdf-with-exact-colour-and-place/64558>\
**Category:** New to Julia\
**Created:** [July 13, 2021, 11:18am UTC](https://discourse.julialang.org/t/what-is-the-simple-way-to-extract-julia-code-to-pdf-with-exact-colour-and-place/64558 "2021-07-13T11:18:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![adikaagas](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/adikaagas/32/27083_2.png) [@adikaagas](https://discourse.julialang.org/u/adikaagas)\
**Post date:** [July 13, 2021, 11:18am UTC](https://discourse.julialang.org/t/what-is-the-simple-way-to-extract-julia-code-to-pdf-with-exact-colour-and-place/64558/1 "2021-07-13T11:18:57Z")

</div>

I want to extract my julia code on atom notebook to pdf file, how to do it with the same colour and place?

---

<div class="post-metadata">

**Author:** ![ess3sq](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ess3sq/32/26834_2.png) [@ess3sq](https://discourse.julialang.org/u/ess3sq)\
**Post date:** [July 13, 2021, 11:38am UTC](https://discourse.julialang.org/t/what-is-the-simple-way-to-extract-julia-code-to-pdf-with-exact-colour-and-place/64558/2 "2021-07-13T11:38:19Z")

</div>

I’m not sure this is possible, but to be fair, if you plan to write code in order to “publish” it (as in, export to PDF for sharing) a notebook system like Pluto or Jupyter might be better, especially if stuff like plots is meant to be part of the exported pdf.

---

<div class="post-metadata">

**Author:** ![adikaagas](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/adikaagas/32/27083_2.png) [@adikaagas](https://discourse.julialang.org/u/adikaagas)\
**Post date:** [July 13, 2021, 3:41pm UTC](https://discourse.julialang.org/t/what-is-the-simple-way-to-extract-julia-code-to-pdf-with-exact-colour-and-place/64558/3 "2021-07-13T15:41:59Z")

</div>

using ctrl+p on jupyter, and saved as pdf solved my problem.

---

<div class="post-metadata">

**Author:** ![brenhinkeller](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/brenhinkeller/32/36648_2.png) [@brenhinkeller](https://discourse.julialang.org/u/brenhinkeller)\
**Post date:** [July 15, 2021, 3:51am UTC](https://discourse.julialang.org/t/what-is-the-simple-way-to-extract-julia-code-to-pdf-with-exact-colour-and-place/64558/4 "2021-07-15T03:51:16Z")

</div>

Weave is good for this if one doesn’t want to use a notebook
