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

jlreq テンプレート使用時のエラー #1718

Closed
usami-k opened this issue Jul 24, 2021 · 3 comments
Closed

jlreq テンプレート使用時のエラー #1718

usami-k opened this issue Jul 24, 2021 · 3 comments

Comments

@usami-k
Copy link

usami-k commented Jul 24, 2021

jlreq テンプレートを使った場合、pdf 生成時にエラーになるようですので報告します。

バージョン

  • Re:VIEW 5.2.0
  • jlreq 2021/07/22

手順

  • review-init -t review-jlreq でプロジェクトを作成
  • 作成したプロジェクトで rake pdf を実行

現象1

以下のエラーが発生して pdf が生成できない。

./review-base.sty:352: Undefined control sequence.
l.352   \ifthenelse
                   {\isundefined{\review@titlefile}}{%

手元では、review-base.sty のどこかに \RequirePackage{ifthen} を入れることで解消しました。

現象2

現象1を手元で解消したあと、以下のエラーが発生して pdf が生成できない。

./review-style.sty:30: Class jlreq Error: Invalid position: fore_edge.

See the jlreq class documentation for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.30 ...ge},running_head_position={top-fore_edge}}

手元では、review-style.sty 30行目の top-fore_edgetop-fore-edge に書き換える(アンダースコアをハイフンに変更)ことで解消しました。

@abenori
Copy link

abenori commented Jul 24, 2021

いずれもjlreqのアップデートに由来するものです.
前者はjlreqがifthenパッケージに非依存になったせいです.reviewのスタイルファイルの方で読み込むようにしてもらえればよいと思います.後者はjlreqのバグです.修正します.(マニュアルにはfore-edgeのみ書いてあるのでそういう意味ではバグではないかもしれませんが,いずれにせよ意図しない挙動でした.)

@abenori
Copy link

abenori commented Jul 24, 2021

修正と,ifthenパッケージの読み込みの復活を行いました.https://github.com/abenori/jlreq/tree/fix_20210722 のjlreq.clsでエラーが解消されるかと思います.(ifthenパッケージの読み込みは次回でまた消しますので,REVIEW側で読み込みをしてもらえると助かります.)

@kmuto
Copy link
Owner

kmuto commented Jul 24, 2021

ありがとうございます。Re:VIEW側はifthenパッケージを入れるようにします(review-jlreq.cls)。
こちらは10月にリリース予定です。

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

3 participants