annProg / PanBook

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

Cannot compile demo #31

Closed coned closed 4 years ago

coned commented 4 years ago

I setup the environment on Manjaro with texlive-core 2019.52579-1 and pandoc 2.9.2 Here is the output:

$ 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
Latexmk: This is Latexmk, John Collins, 18 June 2019, version: 4.65.
Latexmk: applying rule 'xelatex'...
Rule 'xelatex': The following rules & subrules became out-of-date:
      'xelatex'
------------
Run number 1 of rule 'xelatex'
------------
------------
Running 'xelatex -no-pdf -interaction=batchmode -recorder -output-directory="/home/coned/Code/test_panbook/build"  "/home/coned/Code/test_panbook/build/test_panbook-book-ctexbook-pc.tex"'
------------
This is XeTeX, Version 3.14159265-2.6-0.999991 (TeX Live 2019/Arch Linux) (preloaded format=xelatex)
 restricted \write18 enabled.
entering extended mode
=== TeX engine is 'XeTeX'
Latexmk: Missing input file: 'ctexbook.cls' from line
  '! LaTeX Error: File `ctexbook.cls' not found.'
Latexmk: Log file says no output from latex
Latexmk: For rule 'xelatex', no output was made
Latexmk: Errors, so I did not complete making targets
Collected error summary (may duplicate other messages):
  xelatex: Command for 'xelatex' gave return code 1
      Refer to '/home/coned/Code/test_panbook/build/test_panbook-book-ctexbook-pc.log' for details
Latexmk: Use the -f option to force complete processing,
 unless error was exceeding maximum runs, or warnings treated as errors.
[ERRO] book Compile status is not 0. Please Check. you may add -d or --trace to see more output

And debug output:

$ panbook book -d
[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
[INFO] ext abstract ... [skip]
[INFO] ext column ... [done]
[INFO] ext copyright ... [done]
[INFO] ext coverletter ... [skip]
[INFO] ext device ... [done]
[INFO] ext fontawesome5 ... [skip]
[INFO] ext grade ... [skip]
[INFO] ext header ... [done]
[INFO] ext lineblock ... [done]
[INFO] ext listings ... [skip]
[INFO] ext longtable ... [done]
[INFO] ext plot ... [done]
[INFO] ext tabu ... [done]
[INFO] ext theorem ... [done]
[INFO] ext wrap ... [done]
[INFO] ext zh_en ... [done]
Latexmk: This is Latexmk, John Collins, 18 June 2019, version: 4.65.
Latexmk: applying rule 'xelatex'...
Rule 'xelatex': The following rules & subrules became out-of-date:
      'xelatex'
------------
Run number 1 of rule 'xelatex'
------------
------------
Running 'xelatex -no-pdf -interaction=nonstopmode -halt-on-error -recorder -output-directory="/home/coned/Code/test_panbook/build"  "/home/coned/Code/test_panbook/build/test_panbook-book-ctexbook-pc.tex"'
------------
This is XeTeX, Version 3.14159265-2.6-0.999991 (TeX Live 2019/Arch Linux) (preloaded format=xelatex)
 restricted \write18 enabled.
entering extended mode
(/home/coned/Code/test_panbook/build/test_panbook-book-ctexbook-pc.tex
LaTeX2e <2019-10-01> patch level 1

! LaTeX Error: File `ctexbook.cls' not found.

Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: cls)

Enter file name: 
! Emergency stop.
<read *> 

l.2 ^^M

No pages of output.
Transcript written on /home/coned/Code/test_panbook/build/test_panbook-book-cte
xbook-pc.log.
=== TeX engine is 'XeTeX'
Latexmk: Missing input file: 'ctexbook.cls' from line
  '! LaTeX Error: File `ctexbook.cls' not found.'
Latexmk: Log file says no output from latex
Latexmk: For rule 'xelatex', no output was made
Latexmk: Errors, so I did not complete making targets
Collected error summary (may duplicate other messages):
  xelatex: Command for 'xelatex' gave return code 1
      Refer to '/home/coned/Code/test_panbook/build/test_panbook-book-ctexbook-pc.log' for details
Latexmk: Use the -f option to force complete processing,
 unless error was exceeding maximum runs, or warnings treated as errors.
[INFO] book Compile status: 12
[WARN] Array _G:
[INFO] ext-lineblock:  true
[INFO] ext-wrap-use-tex:  true
[INFO] ext-tabu-tex:  /home/coned/PanBook/extensions/tabu/tabu.tex
[INFO] ext-theorem-color:  /home/coned/PanBook/extensions/theorem/color.tex
[INFO] imgdir:  /home/coned/Code/test_panbook/src/images
[INFO] heapsize:  
[INFO] ext-theorem-tex:  /home/coned/PanBook/extensions/theorem/tcolorbox-theorem.tex
[INFO] ext-theorem-style:  tcolorbox
[INFO] ext-longtable-sty:  /home/coned/PanBook/extensions/longtable/longtable.sty
[INFO] fontdir:  fonts
[INFO] ext-wrap-introduction:  /home/coned/PanBook/extensions/wrap/introduction.tex
[INFO] trace:  false
[INFO] tpldir:  templates
[INFO] ext-copyright-tex:  /home/coned/PanBook/extensions/copyright/add-copyright-page.tex
[INFO] styleslide:  styles/slide
[INFO] ext-coverletter:  false
[INFO] ext-wrap-texlang:  /home/coned/PanBook/extensions/wrap/zh.tex
[INFO] citeproc:  -F pandoc-citeproc
[INFO] ff:   --lua-filter /home/coned/PanBook/extensions/zh_en/zh_en.lua --lua-filter /home/coned/PanBook/extensions/column/fenced_divs_columns.lua --lua-filter /home/coned/PanBook/extensions/wrap/wrap.lua --lua-filter /home/coned/PanBook/extensions/lineblock/lineblock.lua --lua-filter /home/coned/PanBook/extensions/tabu/tabu.lua --lua-filter /home/coned/PanBook/extensions/theorem/theorem.lua --lua-filter /home/coned/PanBook/extensions/plot/plot.lua
[INFO] cwd:  /home/coned/Code/test_panbook
[INFO] convert:  convert
[INFO] ext-column-tex:  /home/coned/PanBook/extensions/column/column.tex
[INFO] src:  src
[INFO] ext-column:  true
[INFO] function:  book
[INFO] scriptdir:  /home/coned/PanBook
[INFO] part:  false
[INFO] ext-theorem-texlang:  /home/coned/PanBook/extensions/theorem/zh.tex
[INFO] ext-zh_en-tex:  /home/coned/PanBook/extensions/zh_en/zh_en.tex
[INFO] ext-abstract-tex:  /home/coned/PanBook/extensions/abstract/abstract.tex
[INFO] moduledir:  modules
[INFO] interaction:  -interaction=nonstopmode -halt-on-error
[INFO] build_id:  204412739512600
[INFO] ext-wrap-tex:  /home/coned/PanBook/extensions/wrap/tcolorbox-wrap.tex
[INFO] frontmatter:  frontmatter.md
[INFO] ext-device-tex:  /home/coned/PanBook/extensions/device/device.tex
[INFO] style:  ctexbook
[INFO] crs:  /home/coned/PanBook/crs/zh-CN.yaml
[INFO] ext-copyright:  true
[INFO] ofile:  /home/coned/Code/test_panbook/build/test_panbook-book-ctexbook-pc
[INFO] stylebook:  styles/book
[INFO] ext-grade-tex:  /home/coned/PanBook/extensions/grade/grade.tex
[INFO] ext-theorem:  true
[INFO] ext-coverletter-sty:  /home/coned/PanBook/extensions/coverletter/coverletter.sty
[INFO] f0:   --lua-filter /home/coned/PanBook/extensions/theorem/theorem.lua --lua-filter /home/coned/PanBook/extensions/plot/plot.lua
[INFO] ext-theorem-use-tex:  true
[INFO] ext-lineblock-tex:  /home/coned/PanBook/extensions/lineblock/lineblock.tex
[INFO] pandoc-param:  pandoc   --lua-filter /home/coned/PanBook/extensions/theorem/theorem.lua --lua-filter /home/coned/PanBook/extensions/plot/plot.lua -F pandoc-crossref -M crossrefYaml=/home/coned/PanBook/crs/zh-CN.yaml -F pandoc-citeproc  --lua-filter /home/coned/PanBook/extensions/zh_en/zh_en.lua --lua-filter /home/coned/PanBook/extensions/column/fenced_divs_columns.lua -M build_id=204412739512600 --lua-filter /home/coned/PanBook/extensions/header/add-header.lua --lua-filter /home/coned/PanBook/extensions/wrap/wrap.lua --lua-filter /home/coned/PanBook/extensions/lineblock/lineblock.lua --lua-filter /home/coned/PanBook/extensions/tabu/tabu.lua  --include-after-body=backmatter.tex --csl=/home/coned/PanBook/csl/chinese-gb7714-2005-numeric.csl --columns=20 --top-level-division=chapter --toc --number-sections --bibliography=/home/coned/Code/test_panbook/src/bibliography.bib --include-before-body=frontmatter.tex --template=ctexbook.tpl --pdf-engine=xelatex --metadata-file=/home/coned/Code/test_panbook/src/metadata.yaml  -V background:images/29.png -V lang:zh -V cover:29 -V copyright:true -V classoption:fancyhdr,bookmark -V pagestyle:fancy -V documentclass:ctexbook -V titlepage:true -V device:pc -V indent:true -V licence:ccnd  -M ext-zh-en:zh -M link-citations:true 100-body.md -o /home/coned/Code/test_panbook/build/test_panbook-book-ctexbook-pc.tex
[INFO] ext-zh_en-texlang:  /home/coned/PanBook/extensions/zh_en/zh.tex
[INFO] imgdirrelative:  ./images
[INFO] stylethesis:  styles/thesis
[INFO] header:  /home/coned/Code/test_panbook/build/add-headers-204412739512600.tex
[INFO] extdir:  extensions
[INFO] build:  /home/coned/Code/test_panbook/build
[INFO] modules:   art book cv slide thesis
[INFO] extensions:   abstract column copyright coverletter device fontawesome5 grade header lineblock listings longtable plot tabu theorem wrap zh_en
[INFO] ext-listings-style:  noframe
[INFO] ext-plot:  true
[INFO] ext-tabu:  true
[INFO] xelatex:  -interaction=nonstopmode -halt-on-error
[INFO] styleart:  styles/article
[INFO] ext-zh_en:  true
[INFO] ext-abstract:  false
[INFO] v:   -V background:images/29.png -V lang:zh -V cover:29 -V copyright:true -V classoption:fancyhdr,bookmark -V pagestyle:fancy -V documentclass:ctexbook -V titlepage:true -V device:pc -V indent:true -V licence:ccnd
[INFO] ext-fontawesome5:  false
[INFO] debug:  true
[INFO] t:  tex
[INFO] workdir:  /home/coned/Code/test_panbook/src
[INFO] body:  100-body.md
[INFO] styledir:  styles
[INFO] crossref:  -F pandoc-crossref
[INFO] ext-wrap-problemset:  /home/coned/PanBook/extensions/wrap/problemset.tex
[INFO] ext-wrap:  true
[INFO] ext-longtable:  true
[INFO] highlight:  
[INFO] p:   --include-after-body=backmatter.tex --csl=/home/coned/PanBook/csl/chinese-gb7714-2005-numeric.csl --columns=20 --top-level-division=chapter --toc --number-sections --bibliography=/home/coned/Code/test_panbook/src/bibliography.bib --include-before-body=frontmatter.tex --template=ctexbook.tpl --pdf-engine=xelatex --metadata-file=/home/coned/Code/test_panbook/src/metadata.yaml
[INFO] backmatter:  backmatter.md
[INFO] stylecv:  styles/cv
[INFO] m:   -M ext-zh-en:zh -M link-citations:true
[INFO] func-pre:  func
[INFO] ext-listings:  true
[INFO] ext-grade:  false
[INFO] ext-wrap-style:  tcolorbox
[INFO] ext-header:  true
[INFO] ext-device:  true
[INFO] f:   --lua-filter /home/coned/PanBook/extensions/zh_en/zh_en.lua --lua-filter /home/coned/PanBook/extensions/column/fenced_divs_columns.lua -M build_id=204412739512600 --lua-filter /home/coned/PanBook/extensions/header/add-header.lua --lua-filter /home/coned/PanBook/extensions/wrap/wrap.lua --lua-filter /home/coned/PanBook/extensions/lineblock/lineblock.lua --lua-filter /home/coned/PanBook/extensions/tabu/tabu.lua
[INFO] ext-zh_en-lang:  zh
[INFO] defaultbody:  100-body.md
[INFO] ext-wrap-color:  /home/coned/PanBook/extensions/wrap/color.tex
[INFO] ext-listings-lstset:  /home/coned/PanBook/extensions/listings/listings-set.tex
[WARN] Array _P:
[INFO] include-after-body:  backmatter.tex
[INFO] csl:  /home/coned/PanBook/csl/chinese-gb7714-2005-numeric.csl
[INFO] columns:  20
[INFO] top-level-division:  chapter
[INFO] toc:  
[INFO] number-sections:  
[INFO] bibliography:  /home/coned/Code/test_panbook/src/bibliography.bib
[INFO] include-before-body:  frontmatter.tex
[INFO] template:  ctexbook.tpl
[INFO] pdf-engine:  xelatex
[INFO] metadata-file:  /home/coned/Code/test_panbook/src/metadata.yaml
[WARN] Array _V:
[INFO] background:  images/29.png
[INFO] lang:  zh
[INFO] cover:  29
[INFO] copyright:  true
[INFO] classoption:  fancyhdr,bookmark
[INFO] pagestyle:  fancy
[INFO] documentclass:  ctexbook
[INFO] titlepage:  true
[INFO] device:  pc
[INFO] indent:  true
[INFO] licence:  ccnd
[WARN] Array _M:
[INFO] ext-zh-en:  zh
[INFO] link-citations:  true
[WARN] Array _F:
[INFO] zh_en:  --lua-filter /home/coned/PanBook/extensions/zh_en/zh_en.lua
[INFO] column:  --lua-filter /home/coned/PanBook/extensions/column/fenced_divs_columns.lua
[INFO] add-header:  -M build_id=204412739512600 --lua-filter /home/coned/PanBook/extensions/header/add-header.lua
[INFO] wrap:  --lua-filter /home/coned/PanBook/extensions/wrap/wrap.lua
[INFO] lineblock:  --lua-filter /home/coned/PanBook/extensions/lineblock/lineblock.lua
[INFO] tabu:  --lua-filter /home/coned/PanBook/extensions/tabu/tabu.lua
[WARN] Array _F0:
[INFO] theorem:  --lua-filter /home/coned/PanBook/extensions/theorem/theorem.lua
[INFO] plot:  --lua-filter /home/coned/PanBook/extensions/plot/plot.lua
[WARN] Array _MF:
[ERRO] book Compile status is not 0. Please Check. you may add -d or --trace to see more output

I think maybe the program doesn't copy( or generate ) the .cls file so that the LaTeX compiler doesn't work. By the way, I try to use the v1.4 release and the lastest git repo version. The same problem occurs.

annProg commented 4 years ago

Try to install texlive-full, or use tlmgr to add ctex

coned commented 4 years ago

It works. Thanks!