本地编译juliaZH文档错误


当我照着juliaZHREADME.md进行如下操作时:

利用docker编译

julia --project=doc/ doc/make.jl pdf texplatform=docker

结果发生了错误,错误信息如下:

[ Info: CheckDocument: running document checks.
[ Info: Populate: populating indices.
[ Info: RenderDocument: rendering document.
[ Info: LaTeXWriter: creating the LaTeX file.
[ Info: LaTeXWriter: using docker to compile tex.
┌ Error: LaTeXWriter: failed to compile tex with docker. Logs and partial output can be found in C:\Users\Qling\AppData\Local\Temp\jl_CFv7wI.
│   exception =
│    failed process: Process(`docker run -itd -u zeptodoctor --name latex-container -v 'C:\Users\Qling\AppData\Local\Temp\jl_aFtRyy\build:/mnt/' --rm tianjun2018/documenter-latex:latest`, ProcessExited(127)) [127]
│
└ @ Main C:\Users\Qling\Downloads\JuliaZH.jl-master\contrib\LaTeXWriter.jl:47
ERROR: LoadError: Compiling the .tex file failed. See logs for more information.
Stacktrace:
  [1] error(s::String)
    @ Base .\error.jl:33
  [2] (::Documenter.Writers.LaTeXWriter.var"#5#8"{Documenter.Documents.Document, Documenter.Writers.LaTeXWriter.LaTeX})()
    @ Documenter.Writers.LaTeXWriter ~\Downloads\JuliaZH.jl-master\doc\deps\packages\Documenter\6vUwN\src\Writers\LaTeXWriter.jl:157
  [3] cd(f::Documenter.Writers.LaTeXWriter.var"#5#8"{Documenter.Documents.Document, Documenter.Writers.LaTeXWriter.LaTeX}, dir::String)
    @ Base.Filesystem .\file.jl:95
  [4] (::Documenter.Writers.LaTeXWriter.var"#4#7"{Documenter.Documents.Document, Documenter.Writers.LaTeXWriter.LaTeX})(path::String)
    @ Documenter.Writers.LaTeXWriter ~\Downloads\JuliaZH.jl-master\doc\deps\packages\Documenter\6vUwN\src\Writers\LaTeXWriter.jl:102
  [5] mktempdir(fn::Documenter.Writers.LaTeXWriter.var"#4#7"{Documenter.Documents.Document, Documenter.Writers.LaTeXWriter.LaTeX}, parent::String; prefix::String)
    @ Base.Filesystem .\file.jl:729
    @ .\file.jl:727 [inlined]
  [7] render(doc::Documenter.Documents.Document, settings::Documenter.Writers.LaTeXWriter.LaTeX)
    @ Documenter.Writers.LaTeXWriter ~\Downloads\JuliaZH.jl-master\doc\deps\packages\Documenter\6vUwN\src\Writers\LaTeXWriter.jl:100
  [8] runner(#unused#::Type{Documenter.Writers.LaTeXFormat}, fmt::Documenter.Writers.LaTeXWriter.LaTeX, doc::Documenter.Documents.Document)
    @ Documenter.Writers ~\Downloads\JuliaZH.jl-master\doc\deps\packages\Documenter\6vUwN\src\Writers\Writers.jl:41
  [9] dispatch(::Type{Documenter.Writers.FormatSelector}, ::Documenter.Writers.LaTeXWriter.LaTeX, ::Vararg{Any, N} where N)
    @ Documenter.Utilities.Selectors ~\Downloads\JuliaZH.jl-master\doc\deps\packages\Documenter\6vUwN\src\Utilities\Selectors.jl:170
 [10] render(doc::Documenter.Documents.Document)
    @ Documenter.Writers ~\Downloads\JuliaZH.jl-master\doc\deps\packages\Documenter\6vUwN\src\Writers\Writers.jl:107
 [11] runner(#unused#::Type{Documenter.Builder.RenderDocument}, doc::Documenter.Documents.Document)
    @ Documenter.Builder ~\Downloads\JuliaZH.jl-master\doc\deps\packages\Documenter\6vUwN\src\Builder.jl:258
 [12] dispatch(#unused#::Type{Documenter.Builder.DocumentPipeline}, x::Documenter.Documents.Document)
    @ Documenter.Utilities.Selectors ~\Downloads\JuliaZH.jl-master\doc\deps\packages\Documenter\6vUwN\src\Utilities\Selectors.jl:170
 [13] #2
    @ ~\Downloads\JuliaZH.jl-master\doc\deps\packages\Documenter\6vUwN\src\Documenter.jl:247 [inlined]
 [14] cd(f::Documenter.var"#2#3"{Documenter.Documents.Document}, dir::String)
    @ Base.Filesystem .\file.jl:95
 [15] #makedocs#1
    @ ~\Downloads\JuliaZH.jl-master\doc\deps\packages\Documenter\6vUwN\src\Documenter.jl:246 [inlined]
 [16] top-level scope
    @ ~\Downloads\JuliaZH.jl-master\doc\make.jl:206
in expression starting at C:\Users\Qling\Downloads\JuliaZH.jl-master\doc\make.jl:206

利用本地latex编译

julia --project=doc doc/make.jl pdf

结果也是错误,错误信息如下:

[ Info: CheckDocument: running document checks.
[ Info: Populate: populating indices.
[ Info: RenderDocument: rendering document.
[ Info: LaTeXWriter: creating the LaTeX file.
[ Info: LaTeXWriter: using latexmk to compile tex.
ERROR: LoadError: failed process: Process(`latexmk -f -interaction=nonstopmode -view=none -xelatex -shell-escape Julia中文文档.tex`, ProcessExited(12)) [12]

Stacktrace:
  [1] pipeline_error
    @ .\process.jl:525 [inlined]
  [2] run(::Base.CmdRedirect; wait::Bool)
    @ Base .\process.jl:440
  [3] run(::Base.CmdRedirect)
    @ Base .\process.jl:438
  [4] piperun(cmd::Cmd)
    @ Documenter.Writers.LaTeXWriter ~\Downloads\JuliaZH.jl-master\doc\deps\packages\Documenter\6vUwN\src\Writers\LaTeXWriter.jl:208
  [5] compile_tex(doc::Documenter.Documents.Document, settings::Documenter.Writers.LaTeXWriter.LaTeX, texfile::String)
    @ Main ~\Downloads\JuliaZH.jl-master\contrib\LaTeXWriter.jl:18
  [6] (::Documenter.Writers.LaTeXWriter.var"#5#8"{Documenter.Documents.Document, Documenter.Writers.LaTeXWriter.LaTeX})()
    @ Documenter.Writers.LaTeXWriter ~\Downloads\JuliaZH.jl-master\doc\deps\packages\Documenter\6vUwN\src\Writers\LaTeXWriter.jl:140
  [7] cd(f::Documenter.Writers.LaTeXWriter.var"#5#8"{Documenter.Documents.Document, Documenter.Writers.LaTeXWriter.LaTeX}, dir::String)
    @ Base.Filesystem .\file.jl:95
  [8] (::Documenter.Writers.LaTeXWriter.var"#4#7"{Documenter.Documents.Document, Documenter.Writers.LaTeXWriter.LaTeX})(path::String)
    @ Documenter.Writers.LaTeXWriter ~\Downloads\JuliaZH.jl-master\doc\deps\packages\Documenter\6vUwN\src\Writers\LaTeXWriter.jl:102
  [9] mktempdir(fn::Documenter.Writers.LaTeXWriter.var"#4#7"{Documenter.Documents.Document, Documenter.Writers.LaTeXWriter.LaTeX}, parent::String; prefix::String)
    @ Base.Filesystem .\file.jl:729
 [10] mktempdir (repeats 2 times)
    @ .\file.jl:727 [inlined]
 [11] render(doc::Documenter.Documents.Document, settings::Documenter.Writers.LaTeXWriter.LaTeX)
    @ Documenter.Writers.LaTeXWriter ~\Downloads\JuliaZH.jl-master\doc\deps\packages\Documenter\6vUwN\src\Writers\LaTeXWriter.jl:100
 [12] runner(#unused#::Type{Documenter.Writers.LaTeXFormat}, fmt::Documenter.Writers.LaTeXWriter.LaTeX, doc::Documenter.Documents.Document)
    @ Documenter.Writers ~\Downloads\JuliaZH.jl-master\doc\deps\packages\Documenter\6vUwN\src\Writers\Writers.jl:41
 [13] dispatch(::Type{Documenter.Writers.FormatSelector}, ::Documenter.Writers.LaTeXWriter.LaTeX, ::Vararg{Any, N} where N)
    @ Documenter.Utilities.Selectors ~\Downloads\JuliaZH.jl-master\doc\deps\packages\Documenter\6vUwN\src\Utilities\Selectors.jl:170
 [14] render(doc::Documenter.Documents.Document)
    @ Documenter.Writers ~\Downloads\JuliaZH.jl-master\doc\deps\packages\Documenter\6vUwN\src\Writers\Writers.jl:107
 [15] runner(#unused#::Type{Documenter.Builder.RenderDocument}, doc::Documenter.Documents.Document)
    @ Documenter.Builder ~\Downloads\JuliaZH.jl-master\doc\deps\packages\Documenter\6vUwN\src\Builder.jl:258
 [16] dispatch(#unused#::Type{Documenter.Builder.DocumentPipeline}, x::Documenter.Documents.Document)
    @ Documenter.Utilities.Selectors ~\Downloads\JuliaZH.jl-master\doc\deps\packages\Documenter\6vUwN\src\Utilities\Selectors.jl:170
 [17] #2
    @ ~\Downloads\JuliaZH.jl-master\doc\deps\packages\Documenter\6vUwN\src\Documenter.jl:247 [inlined]
 [18] cd(f::Documenter.var"#2#3"{Documenter.Documents.Document}, dir::String)
    @ Base.Filesystem .\file.jl:95
 [19] #makedocs#1
    @ ~\Downloads\JuliaZH.jl-master\doc\deps\packages\Documenter\6vUwN\src\Documenter.jl:246 [inlined]
 [20] top-level scope
    @ ~\Downloads\JuliaZH.jl-master\doc\make.jl:206
in expression starting at C:\Users\Qling\Downloads\JuliaZH.jl-master\doc\make.jl:206

请问该怎么处理?我不知道哪里出了问题

备案号:京ICP备17009874号-2