You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just tried to use weave,jl to create HTML with a table of contents (--toc); however, I found an issue when I ran the code.
Could someone give a hand with this issue?
versions
using InteractiveUtils; versioninfo():
Julia Version 1.10.2
Commit bd47eca2c8 (2024-03-0110:14 UTC)
Build Info:
Official https://julialang.org/ release
Platform Info:
OS: Windows (x86_64-w64-mingw32)
CPU:16× AMD Ryzen 95900HX with Radeon Graphics
WORD_SIZE:64
LIBM: libopenlibm
LLVM: libLLVM-15.0.7 (ORCJIT, znver3)
Threads:1 default, 0 interactive, 1 GC (on 16 virtual cores)
using Pkg; Pkg.status():
Status `C:\Users\bsamu\.julia\environments\v1.10\Project.toml`
⌃ [336ed68f] CSV v0.10.13
[717857b8] DSP v0.7.9
[a93c6f00] DataFrames v1.6.1
[c9a035f4] JWAS v1.2.1
[0987c9cc] MonteCarloMeasurements v1.1.6
[f853b5e0] Pandoc v0.4.4
[91a5bcdd] Plots v1.40.3
[92933f4c] ProgressMeter v1.10.0
[44d3d7a6] Weave v0.10.12
[fdbf4ff8] XLSX v0.10.1
Info Packages marked with ⌃ have new versions available and may be upgradable.
minimum reproducible steps
julia> weave("./FIR_design.jmd", doctype="pandoc2html", pandoc_options = ["--toc", "--toc-depth= 3", "--number-sections", "--self-contained"])
┌ Info: Weaving chunk 1 from line 26
└ progress = 0.0
┌ Info: Weaving chunk 2 from line 49
└ progress = 0.16666666666666666
┌ Info: Weaving chunk 3 from line 78
└ progress = 0.3333333333333333
┌ Info: Weaving chunk 4 from line 90
└ progress = 0.5
┌ Info: Weaving chunk 5 from line 95
└ progress = 0.6666666666666666
┌ Info: Weaving chunk 6 from line 102
└ progress = 0.8333333333333334
┌ Info: Weaved all chunks
└ progress = 1
ERROR: IOError: could not spawn `pandoc -f markdown+raw_html -s --mathjax= --toc '--toc-depth= 3' --number-sections --self-contained --template 'C:\Users\bsamu.julia\packages\Weave\f7Ly3\templates\pandoc2html.html' -H 'C:\Users\bsamu.julia\packages\Weave\f7Ly3\stylesheets\pandoc2html_skeleton.css' --self-contained -V 'highlight_stylesheet=
description
Hi everyone.
I just tried to use weave,jl to create HTML with a table of contents (--toc); however, I found an issue when I ran the code.
Could someone give a hand with this issue?
versions
minimum reproducible steps
julia> weave("./FIR_design.jmd", doctype="pandoc2html", pandoc_options = ["--toc", "--toc-depth= 3", "--number-sections", "--self-contained"])
<style> pre.hljl { border: 1px solid #ccc; margin: 5px; padding: 5px; overflow-x: auto; color: rgb(68,68,68); background-color: rgb(251,251,251); } ' -V weave_version=v0.10.12 -V weave_date=2024-04-11 -V weave_source=FIR_design.jmd -V headerscript= -o FIR_design.html`: no such file or directory (ENOENT) Stacktrace: [1] _spawn_primitive(file::String, cmd::Cmd, stdio::Vector{Union{RawFD, Base.Libc.WindowsRawSocket, IO}}) @ Base .\process.jl:128 [2] #784 @ .\process.jl:139 [inlined] [3] setup_stdios(f::Base.var"#784#785"{Cmd}, stdios::Vector{Union{RawFD, Base.Libc.WindowsRawSocket, IO}}) @ Base .\process.jl:223 [4] _spawn @ .\process.jl:138 [inlined] [5] open(cmds::Cmd, stdio::Base.DevNull; write::Bool, read::Bool) @ Base .\process.jl:388 [6] open @ .\process.jl:383 [inlined] [7] open @ .\process.jl:362 [inlined] [8] open @ .\process.jl:361 [inlined] [9] write_doc(docformat::Weave.Pandoc2HTML, doc::Weave.WeaveDoc, rendered::String, out_path::String) @ Weave C:\Users\bsamu\.julia\packages\Weave\f7Ly3\src\writer\pandoc.jl:34 [10] write_doc(doc::Weave.WeaveDoc, rendered::String, out_path::String) @ Weave C:\Users\bsamu\.julia\packages\Weave\f7Ly3\src\writer\writer.jl:2 [11] weave(source::String; doctype::String, informat::Nothing, out_path::Symbol, args::Dict{…}, mod::Nothing, fig_path::Nothing, fig_ext::Nothing, cache_path::String, cache::Symbol, template::Nothing, css::Nothing, highlight_theme::Nothing, pandoc_options::Vector{…}, latex_cmd::Vector{…}, keep_unicode::Bool) @ Weave C:\Users\bsamu\.julia\packages\Weave\f7Ly3\src\Weave.jl:226 [12] top-level scope @ REPL[14]:1┌ Info: Weaving chunk 1 from line 26
└ progress = 0.0
┌ Info: Weaving chunk 2 from line 49
└ progress = 0.16666666666666666
┌ Info: Weaving chunk 3 from line 78
└ progress = 0.3333333333333333
┌ Info: Weaving chunk 4 from line 90
└ progress = 0.5
┌ Info: Weaving chunk 5 from line 95
└ progress = 0.6666666666666666
┌ Info: Weaving chunk 6 from line 102
└ progress = 0.8333333333333334
┌ Info: Weaved all chunks
└ progress = 1
ERROR: IOError: could not spawn `pandoc -f markdown+raw_html -s --mathjax= --toc '--toc-depth= 3' --number-sections --self-contained --template 'C:\Users\bsamu.julia\packages\Weave\f7Ly3\templates\pandoc2html.html' -H 'C:\Users\bsamu.julia\packages\Weave\f7Ly3\stylesheets\pandoc2html_skeleton.css' --self-contained -V 'highlight_stylesheet=
The text was updated successfully, but these errors were encountered: