# LaTeX and Markdown in the same Weave Chunk

**URL:** https://discourse.julialang.org/t/latex-and-markdown-in-the-same-weave-chunk/70640
**Category:** General Usage
**Tags:** question, weave
**Created:** [October 29, 2021, 8:31pm UTC](https://discourse.julialang.org/t/latex-and-markdown-in-the-same-weave-chunk/70640 "2021-10-29T20:31:01Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Derek\_Vetsch](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/derek_vetsch/32/8552_2.png) [@Derek\_Vetsch](https://discourse.julialang.org/u/Derek_Vetsch)
#### Post date: [October 29, 2021, 8:31pm UTC](https://discourse.julialang.org/t/latex-and-markdown-in-the-same-weave-chunk/70640/1 "2021-10-29T20:31:01Z")

</div>

Is it possible to mix LaTeX and Markdown in the same chunk? I tried something like this but when I weave it it looks as if I printed this in the REPL. I know if you just put everything in its own chunk that works fine but I’d love to cut down on the typing of ````julia` if I can.

````julia
```julia echo=false
using Weave, LaTeXStrings, Markdown
# This weaves just fine
L"\dfrac{1}{2}"
```

````

````julia
```julia echo=false
using Weave, LaTeXStrings, Markdown
# This also works
md" **Some Markdown text**"
```

````

````julia
```julia echo=false
using Weave, LaTeXStrings, Markdown
# This is where I don't know what to do
L"\dfrac{1}{2}"
md" **Some markdown text**"
```

````

Any help would be much appreciated.
