0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

luatexja-preset & luatexja-fontspecのWarningを緩和する

Last updated at Posted at 2025-04-28

問題

Package luatexja-preset Warning: Japanese fonts will be scaled by 0.924715.
Package luatexja-fontspec Warning: \addjfontfeature(s) ignored;

という警告が出て,Latexmkがmax-repeatまで回ってしまう.これを解消してビルドを高速化したい.

解決法

上記より,

\DeclareDocumentCommand \newjfontfamily { m O{} m O{} } {
  \cs_set_eq:NN \fontspec_set_family:Nnn \ltj_fontspec_set_family:Nnn
  \newfontfamily #1 [#2] {#3} [#4]
  \cs_set_eq:NN \fontspec_set_family:Nnn \__ltj_orig_fontspec_set_family:Nnn
}

をluatexja-preset読み込み後に追記することで,ビルド時1度しか当該警告がでなくなった.
その内容までは追ってないが,ビルド時間がおおはb短縮されたのでよしとする.

時間があるときに根本的な解決を試みる.

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?