JunoLab / Weave.jl

Scientific reports/literate programming for Julia
http://weavejl.mpastell.com
MIT License
823 stars 94 forks source link

[BUG] `.jnw` file not rendered correctly #389

Open likanzhan opened 4 years ago

likanzhan commented 4 years ago

description

  1. Suppose I have I simple exp.jnw file with the following content:
    
    \documentclass{article}

\begin{document}

Hello, World.

\end{document}


2. When I run `weave("path/to/exp.jnw", doctype="textminted")`,  it is supposed to return a `tex` file with the same content as the `jnw` file. Using `Weave v0.10.3`, however, I got the following `.tex` file:

\documentclass[12pt,a4paper]{article}

\usepackage[a4paper,text={16.5cm,25.2cm},centering]{geometry} \usepackage{lmodern} \usepackage{amssymb,amsmath} \usepackage{bm} \usepackage{graphicx} \usepackage{microtype} \usepackage{hyperref} \usepackage{minted} \setlength{\parindent}{0pt} \setlength{\parskip}{1.2ex}

\hypersetup { pdfauthor = { }, pdftitle={ }, colorlinks=TRUE, linkcolor=black, citecolor=blue, urlcolor=blue }

\begin{document}

{\textbackslash}documentclass{article}

{\textbackslash}begin{document}

Hello, World.

{\textbackslash}end{document}

\end{document}


## versions

> `using InteractiveUtils; versioninfo()`:
<!-- please paste the the output of `using InteractiveUtils; versioninfo()` in the backticks below -->
```julia
Julia Version 1.5.0
Commit 96786e22cc (2020-08-01 23:44 UTC)
Platform Info:
  OS: macOS (x86_64-apple-darwin18.7.0)
  CPU: Intel(R) Core(TM) i7-4960HQ CPU @ 2.60GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-9.0.1 (ORCJIT, haswell)
Environment:
  JULIA_NUM_THREADS = 8
  JULIA_PKG_SERVER = https://mirrors.bfsu.edu.cn/julia/static
  JULIA_EDITOR = code

using Pkg; Pkg.status():

[1520ce14] AbstractTrees v0.3.3
[6e4b80f9] BenchmarkTools v0.5.0
[336ed68f] CSV v0.7.7 `https://github.com/JuliaData/CSV.jl.git#master`
[159f3aea] Cairo v1.0.5
[a93c6f00] DataFrames v0.21.6 `https://github.com/JuliaData/DataFrames.jl.git#master`
[1313f7d8] DataFramesMeta v0.5.1
[31a5f54b] Debugger v0.6.5
[31c24e10] Distributions v0.23.9
[e30172f5] Documenter v0.25.2
[cd674d7a] DocumenterLaTeX v0.2.0
[186bb1d3] Fontconfig v0.4.0
[da1fdf0e] FreqTables v0.4.0
[38e38edf] GLM v1.3.10 `https://github.com/JuliaStats/GLM.jl.git#master`
[c91e804a] Gadfly v1.3.0
[ff71e718] MixedModels v3.0.0-DEV `https://github.com/JuliaStats/MixedModels.jl.git#master`
[8314cec4] PGFPlotsX v1.2.9
[16eed3e5] PlotDocs v0.1.0 `https://github.com/JuliaPlots/PlotDocs.jl#master`
[ccf2f8ad] PlotThemes v2.0.0
[91a5bcdd] Plots v1.6.0
[d330b81b] PyPlot v2.9.0
[6f49c342] RCall v0.13.7
[df47a6cb] RData v0.7.2
[ce6b1742] RDatasets v0.6.10 `https://github.com/JuliaStats/RDatasets.jl.git#master`
[295af30f] Revise v2.7.3
[2913bbd2] StatsBase v0.33.0
[3eaba693] StatsModels v0.6.12
[fd094767] Suppressor v0.2.0
[24249f21] SymPy v1.0.27
[bd369af6] Tables v1.0.5
[44d3d7a6] Weave v0.10.3
likanzhan commented 3 years ago

Any update on this issue?

aviatesk commented 3 years ago

can you try on the latest version ?

likanzhan commented 3 years ago

@aviatesk The problem persists. Thanks