annProg / PanBook

Pandoc LaTeX,Epub模板,用于生成书籍,幻灯片(beamer),简历,论文等(cv, thesis, ebook,beamer)
BSD 3-Clause "New" or "Revised" License
263 stars 28 forks source link

示例创建错误 #40

Closed cnlinxi closed 2 years ago

cnlinxi commented 2 years ago

执行示例:

panbook book

报错如下:

Error running filter D:/Book/PanBook/extensions/column/fenced_divs_columns.lua:
D:/Book/PanBook/extensions/column/fenced_divs_columns.lua:51: attempt to call a nil value (field 'Doc')
stack traceback:
File frontmatter.tex not found in resource path
sed: can't read /d/Book/mybook/build/mybook-book-ctexbook-pc.tex: No such file or directory
sed: can't read /d/Book/mybook/build/mybook-book-ctexbook-pc.tex: No such file or directory
/d/Book/PanBook/modules/book/book.sh: line 63: latexmk: command not found

找不到frontmatter.tex,请问这是什么原因?

annProg commented 2 years ago

你的 pandoc 是什么版本

ZXW2600 commented 2 years ago

相同报错内容,运行环境 WSL ubuntu20.04

执行示例: panbook book 报错如下:

[~/workspace/DocWorkspace/panbook_demo]$ panbook book
[NOTE] Welcome to PanBook!
[NOTE] use -V device:(pc|mobile|kindle) to produce different size of pdf
[NOTE] use -V cover:(1-60|R|N|filepath) select cover background.R=random,N=no cover,filepath=custom cover file
[NOTE] use -V pagestyle:style to set pagestyle
Error running filter /home/zxw2600/workspace/DocWorkspace/PanBook/extensions/column/fenced_divs_columns.lua:
...kspace/PanBook/extensions/column/fenced_divs_columns.lua:51: attempt to call a nil value (field 'Doc')
stack traceback:
Error running filter /home/zxw2600/workspace/DocWorkspace/PanBook/extensions/column/fenced_divs_columns.lua:
...kspace/PanBook/extensions/column/fenced_divs_columns.lua:51: attempt to call a nil value (field 'Doc')
stack traceback:
File frontmatter.tex not found in resource path
sed: can't read /home/zxw2600/workspace/DocWorkspace/panbook_demo/build/panbook_demo-book-ctexbook-pc.tex: No such file or directory
sed: can't read /home/zxw2600/workspace/DocWorkspace/panbook_demo/build/panbook_demo-book-ctexbook-pc.tex: No such file or directory
Latexmk: This is Latexmk, John Collins, 26 Dec. 2019, version: 4.67.

------------
Latexmk: Could not find file '/home/zxw2600/workspace/DocWorkspace/panbook_demo/build/panbook_demo-book-ctexbook-pc.tex'.
-- Use the -f option to force complete processing.
[ERRO] book Compile status is not 0. Please Check. you may add -d or --trace to see more output
[~/workspace/DocWorkspace/panbook_demo]$ pandoc -v
pandoc 2.17.1.1
Compiled with pandoc-types 1.22.1, texmath 0.12.4, skylighting 0.12.2,
citeproc 0.6.0.1, ipynb 0.2
User data directory: /home/zxw2600/.local/share/pandoc
Copyright (C) 2006-2022 John MacFarlane. Web:  https://pandoc.org
This is free software; see the source for copying conditions. There is no
warranty, not even for merchantability or fitness for a particular purpose.
[~/workspace/DocWorkspace/panbook_demo]$ pandoc-crossref -v
pandoc-crossref v0.3.12.2 git commit UNKNOWN (UNKNOWN) built with Pandoc v2.17.0.1, pandoc-types v1.22.1 and GHC 8.10.7
annProg commented 2 years ago

经过测试支持的最新版本是 2.14.2,2.15及以上版本还需要一些时间调查。

cnlinxi commented 2 years ago

pandoc是2.17.0.1,我现在尝试下2.14.2

经过测试支持的最新版本是 2.14.2,2.15及以上版本还需要一些时间调查。

annProg commented 2 years ago

已支持 pandoc 2.17.1.1