Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

epub/pdf向け共通設定の一部をconfig.yml上で定義すると、review-pdfmakerでエラーが発生する #1859

Open
kazken3 opened this issue Sep 11, 2022 · 0 comments

Comments

@kazken3
Copy link
Contributor

kazken3 commented Sep 11, 2022

Summary

epub/pdf向け共通設定の一部をconfig.yml上で定義すると、review-pdfmakerでエラーが発生する

Version

review 5.3.0以降

Detail

review initで出力されるconfig.ymlに対して、epub/pdf向け共通設定の一部を定義するとreview-pdfmakerでエラーが発生します。(PDFMaker向けにはLaTeXソース断片、EPUBMaker向けにはHTMLファイル)となっている箇所の一部が対象になります。

  • エラーになる
    • originaltitlefile
    • creditfile
    • backcover
    • profile
    • advfile
  • エラーにならない
    • cover
    • titlefile

review-epubmakerではエラーは出ません。

Reproduction

サンプルコード:
https://github.com/kazken3/review-backcover

  • config-err.yml : エラーが出る設定( backcover をコメントを外してそのまま定義)
  • config.yml : エラーがでない設定( backcover をepubmakerセクション配下に定義)
  • config-default.yml : review init で出力した状態のconfig.yml
エラーログ

$ review-pdfmaker config-err.yml
⚠ WARN File backcover.tex is not found.
ℹ INFO compiling review-backcover.tex
ℹ INFO uplatex -interaction=nonstopmode -file-line-error -halt-on-error REVIEW_BOOK.tex
⨯ ERROR failed to run command: uplatex -interaction=nonstopmode -file-line-error -halt-on-error REVIEW_BOOK.tex

Error log:
This is e-upTeX, Version 3.141592653-p3.9.1-u1.27-210218-2.6 (utf8.uptex) (TeX Live 2022/dev/Debian) (preloaded format=uplatex)
restricted \write18 enabled.
entering extended mode
(./REVIEW_BOOK.tex
pLaTeX2e <2021-11-15u04> (based on LaTeX2e <2021-11-15> patch level 1)
L3 programming layer <2022-01-21> (./review-jsbook.cls
(/usr/share/texlive/texmf-dist/tex/latex/plautopatch/plautopatch.sty)
Document Class: review-jsbook 2021/08/23 v5.3 Re:VIEW pLaTeX class modified for
jsbook.cls
(/usr/share/texlive/texmf-dist/tex/latex/base/fix-cm.sty
(/usr/share/texlive/texmf-dist/tex/latex/base/ts1enc.def))
(/usr/share/texlive/texmf-dist/tex/latex/xkeyval/xkeyval.sty
(/usr/share/texlive/texmf-dist/tex/generic/xkeyval/xkeyval.tex
(/usr/share/texlive/texmf-dist/tex/generic/xkeyval/xkvutils.tex
(/usr/share/texlive/texmf-dist/tex/generic/xkeyval/keyval.tex))))
(/usr/share/texlive/texmf-dist/tex/latex/everypage/everypage-1x.sty)
(./jsbook.cls
Document Class: jsbook 2020/10/09 jsclasses (okumura, texjporg)
(/usr/share/texlive/texmf-dist/tex/platex/jsclasses/jslogo.sty))
(/usr/share/texlive/texmf-dist/tex/latex/hyperref/hyperref.sty
(/usr/share/texlive/texmf-dist/tex/generic/ltxcmds/ltxcmds.sty)
(/usr/share/texlive/texmf-dist/tex/generic/iftex/iftex.sty)
(/usr/share/texlive/texmf-dist/tex/generic/pdftexcmds/pdftexcmds.sty
(/usr/share/texlive/texmf-dist/tex/generic/infwarerr/infwarerr.sty))
(/usr/share/texlive/texmf-dist/tex/generic/kvsetkeys/kvsetkeys.sty)
(/usr/share/texlive/texmf-dist/tex/generic/kvdefinekeys/kvdefinekeys.sty)
(/usr/share/texlive/texmf-dist/tex/generic/pdfescape/pdfescape.sty)
(/usr/share/texlive/texmf-dist/tex/latex/hycolor/hycolor.sty)
(/usr/share/texlive/texmf-dist/tex/latex/letltxmacro/letltxmacro.sty)
(/usr/share/texlive/texmf-dist/tex/latex/auxhook/auxhook.sty)
(/usr/share/texlive/texmf-dist/tex/latex/kvoptions/kvoptions.sty)
(/usr/share/texlive/texmf-dist/tex/latex/hyperref/pd1enc.def)
(/usr/share/texlive/texmf-dist/tex/latex/hyperref/hyperref-langpatches.def)
(/usr/share/texlive/texmf-dist/tex/generic/intcalc/intcalc.sty)
(/usr/share/texlive/texmf-dist/tex/generic/etexcmds/etexcmds.sty)
(/usr/share/texlive/texmf-dist/tex/latex/hyperref/puenc.def)
(/usr/share/texlive/texmf-dist/tex/latex/url/url.sty)
(/usr/share/texlive/texmf-dist/tex/generic/bitset/bitset.sty
(/usr/share/texlive/texmf-dist/tex/generic/bigintcalc/bigintcalc.sty))
(/usr/share/texlive/texmf-dist/tex/latex/base/atbegshi-ltx.sty))
(/usr/share/texlive/texmf-dist/tex/latex/hyperref/hdvipdfm.def
(/usr/share/texlive/texmf-dist/tex/latex/rerunfilecheck/rerunfilecheck.sty
(/usr/share/texlive/texmf-dist/tex/latex/base/atveryend-ltx.sty)
(/usr/share/texlive/texmf-dist/tex/generic/uniquecounter/uniquecounter.sty)))
(/usr/share/texlive/texmf-dist/tex/platex/pxjahyper/pxjahyper.sty
(/usr/share/texlive/texmf-dist/tex/latex/etoolbox/etoolbox.sty)
(/usr/share/texlive/texmf-dist/tex/platex/pxjahyper/pxjahyper-enc.sty)

LaTeX hooks Warning: Generic hook 'package/after/otf' is deprecated.
(hooks) Use hook 'package/otf/after' instead.

(/usr/share/texlive/texmf-dist/tex/latex/bxjatoucs/bxjatoucs.sty)

LaTeX hooks Warning: Generic hook 'package/after/ajmacros' is deprecated.
(hooks) Use hook 'package/ajmacros/after' instead.

(/usr/share/texlive/texmf-dist/tex/platex/pxjahyper/pxjahyper-uni.def)))
(./gentombow.sty
***** Package gentombow detected a5paper. *****
***** Now the output size is automatically set to b5. *****
)
./REVIEW_BOOK.tex:44: Illegal parameter number in definition of \reviewback
covercont.

<
l.44 \def\reviewbackcovercont{#<
ReVIEW::TTYLogger:0x000055a3c1358828>}
No pages of output.
Transcript written on REVIEW_BOOK.log.

workaround

reproduction に書いたとおり epubmaker: セクション配下にエラーとなる設定を記載するとエラーを回避することができます。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant