This page was generated from a Jupyter notebook, automatically converted to markdown with Literate.jl. The conversion happens automatically when the menu is constructed.
PNG with path relative to site, i.e. /assets/images/julia-logo-dots-small.png
, but this only works in the Franklin-rendered site:
GIF with path relative to (processed) file but within _assets/
, i.e. ../../_assets/images/juliaspeeder32x32.gif
and postprocessed accordingly, so it works both in Franklin and in Jupyter, but keep in mind that the notebook is processed by Weave from the directory of the processed file, which is setup to be at the same level of the notebook file to avoid further and special processing:
Inline, as in $e^{i\pi} = -1$, or in a block: $$ \exp(i\pi) + 1 = 0 $$
Here is a julia chunk:
x = 1
and another
println("hello world!")
Keep in mind that Weave renders this from the file dir, which is different from the way Literate handles it (c.f. Section literatejl.jl):
pwd()
With that settled, we can use the proper path:
open("../../assets/data/wow.txt") do io
read(io, String)
end
"Wow, this seems like a cool template!"
using Plots
x = 0.0:0.01:2π
y = sin.(2x) + sin.(5x)
plot(x, y, title = "A nice wave", titlefont=12, label = false)