-
Notifications
You must be signed in to change notification settings - Fork 73
Open
Description
What is a good method for displaying code in a document and then using it in a juliaconsole block?
The following seems to work, but I suspect there is a simpler way.
\begin{example}
\begin{juliablock}
some code
\end{juliablock}
\caption{example code}
\end{example}Then I copy the code in the juliablock by hand into a file called example_code.jl.
Then I do this:
\begin{juliaconsole}
include("example_code.jl"); nothing
... use code...
\end{juliaconsole}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels