Closed xianwenchen closed 3 years ago
I'm not able to generate a markdown file that retains the header, using the doctype options of pandoc, pandoc2html, or pandoc2pdf.
using InteractiveUtils; versioninfo(): Julia Version 1.5.3 Platform Info: OS: Linux (x86_64-linux-gnu) CPU: Intel(R) Core(TM) i5-8350U CPU @ 1.70GHz WORD_SIZE: 64 LIBM: libopenlibm LLVM: libLLVM-10.0.1 (ORCJIT, skylake) using Pkg; Pkg.status(): Status `~/.julia/environments/v1.5/Project.toml` [c9ce4bd3] ArchGDAL v0.4.1 [6e4b80f9] BenchmarkTools v0.5.0 [336ed68f] CSV v0.7.1 [5ae59095] Colors v0.12.3 [717857b8] DSP v0.6.7 [a93c6f00] DataFrames v0.21.4 [b4f34e82] Distances v0.8.2 [713c75ef] Franklin v0.10.21 [add2ef01] GDAL v1.1.3 [2fb1d81b] GeoArrays v0.3.1 [61d90e0f] GeoJSON v0.5.1 [db073c08] GeoMakie v0.1.14-DEV `https://github.com/JuliaPlots/GeoMakie.jl#master` [6218d12a] ImageMagick v1.1.5 [86fae568] ImageView v0.10.8 [916415d5] Images v0.22.4 [23fbe1c1] Latexify v0.14.6 [98b081ad] Literate v2.7.0 [ee78f7c6] Makie v0.11.0 [961ee093] ModelingToolkit v3.20.1 [b8a86587] NearestNeighbors v0.4.4 [9b87118b] PackageCompiler v1.2.1 [b98c9c47] Pipe v1.3.0 [297584a0] PlotShapefiles v0.2.2 [91a5bcdd] Plots v1.5.3 [295af30f] Revise v2.7.3 [f3b207a7] StatsPlots v0.14.6 [44d3d7a6] Weave v0.10.2 [8bb1440f] DelimitedFiles
using InteractiveUtils; versioninfo():
using InteractiveUtils; versioninfo()
Julia Version 1.5.3 Platform Info: OS: Linux (x86_64-linux-gnu) CPU: Intel(R) Core(TM) i5-8350U CPU @ 1.70GHz WORD_SIZE: 64 LIBM: libopenlibm LLVM: libLLVM-10.0.1 (ORCJIT, skylake)
using Pkg; Pkg.status():
using Pkg; Pkg.status()
Status `~/.julia/environments/v1.5/Project.toml` [c9ce4bd3] ArchGDAL v0.4.1 [6e4b80f9] BenchmarkTools v0.5.0 [336ed68f] CSV v0.7.1 [5ae59095] Colors v0.12.3 [717857b8] DSP v0.6.7 [a93c6f00] DataFrames v0.21.4 [b4f34e82] Distances v0.8.2 [713c75ef] Franklin v0.10.21 [add2ef01] GDAL v1.1.3 [2fb1d81b] GeoArrays v0.3.1 [61d90e0f] GeoJSON v0.5.1 [db073c08] GeoMakie v0.1.14-DEV `https://github.com/JuliaPlots/GeoMakie.jl#master` [6218d12a] ImageMagick v1.1.5 [86fae568] ImageView v0.10.8 [916415d5] Images v0.22.4 [23fbe1c1] Latexify v0.14.6 [98b081ad] Literate v2.7.0 [ee78f7c6] Makie v0.11.0 [961ee093] ModelingToolkit v3.20.1 [b8a86587] NearestNeighbors v0.4.4 [9b87118b] PackageCompiler v1.2.1 [b98c9c47] Pipe v1.3.0 [297584a0] PlotShapefiles v0.2.2 [91a5bcdd] Plots v1.5.3 [295af30f] Revise v2.7.3 [f3b207a7] StatsPlots v0.14.6 [44d3d7a6] Weave v0.10.2 [8bb1440f] DelimitedFiles
Here is the reproducible jmd file:
--- title: test author: test date: December 26, 2020 bibliography: biblatex.bib --- [@test]
After I ran
weave("test.jmd", doctype = "pandoc")
The output, test.md, has only the following content:
[@test]
The header, including author, title, date, and bibliography info, was gone.
I realized that I was using an older version of Weave.jl. After upgrading to 0.10.6, I was able to correctly generate citation.
description
I'm not able to generate a markdown file that retains the header, using the doctype options of pandoc, pandoc2html, or pandoc2pdf.
versions
minimum reproducible steps
Here is the reproducible jmd file:
After I ran
The output, test.md, has only the following content:
The header, including author, title, date, and bibliography info, was gone.