I use Weave.jl to convert a jmd file to pandoc format. Julia code blocks end up being annotated with {.julia}. I then convert to PDF via LaTeX with the --listings Pandoc option. That allows me to use the jlcode LaTeX package to display code blocks.
But is it possible to also have the code blocks that contain the results be annotated with something of the user’s choosing, say {.results}? The Weave.jl docs mention that we can use results="markup" (that seems to be the default), "hidden", or “anything else for raw output” (which doesn’t produce a code block at all).
The objective is to have the results formatted differently than the source code In the final PDF.
I asked this question on Slack and Discourse but no answer so far: https://discourse.julialang.org/t/weave-jl-jmd-md-pdf/37970
I use Weave.jl to convert a jmd file to pandoc format. Julia code blocks end up being annotated with
{.julia}
. I then convert to PDF via LaTeX with the--listings
Pandoc option. That allows me to use thejlcode
LaTeX package to display code blocks.But is it possible to also have the code blocks that contain the results be annotated with something of the user’s choosing, say
{.results}
? The Weave.jl docs mention that we can useresults="markup"
(that seems to be the default),"hidden"
, or “anything else for raw output” (which doesn’t produce a code block at all).The objective is to have the results formatted differently than the source code In the final PDF.
Thanks.