Stix Two Math는 lualatex로 캐시를 계속 다시 작성합니다.

Stix Two Math는 lualatex로 캐시를 계속 다시 작성합니다.

텍스 라이브 버전:TeX 3.14159265 (TeX Live 2020)

이 MWE는 다음 전반에 걸쳐 사용됩니다.

\documentclass[a4paper]{article}

\usepackage{unicode-math}
\setmainfont{Tex Gyre Schola}[Scale=0.97]
\setmathfont{Tex Gyre Schola Math}[Scale=MatchLowercase]
\setmathfont[range={\int,\iint}]{Stix Two Math}
\setsansfont{TeX Gyre Heros}[Scale=MatchLowercase]
\setmonofont{inconsolatan}[Scale=MatchLowercase,StylisticSet={1,3}]

\begin{document}

\section*{The first section}
The quick brown fox jumps over the lazy dog's back.
\begin{equation}
  x=\alpha + \beta
\end{equation}
The quick brown fox jumps over the lazy dog's back.

\verb!The quick brown fox jumps \emph{emphasized} over the lazy dog's back.!

\end{document}

문제 없이 lualatex를 통과하고 예상대로 .pdf를 제공합니다.

내 문제는 글꼴 캐시와 관련이 있습니다 ...texmf-var/luatex-cache/generic-dev/fonts/otl. 다음은 MWE를 실행하기 전의 글꼴 캐시 목록입니다.

Created at 2020-08-31 16:30 with ls -ltr, i.e. latest file last.
    .
    .
    .
-rw-rw-r-- 1 leif leif  337751 2020-08-29 14:36 texgyreschola-regular.lua
-rw-rw-r-- 1 leif leif  204144 2020-08-29 14:36 texgyreschola-regular.luc
-rw-rw-r-- 1 leif leif  333538 2020-08-29 14:36 texgyreschola-bolditalic.lua
-rw-rw-r-- 1 leif leif  198037 2020-08-29 14:36 texgyreschola-bolditalic.luc
    .
    .
    .
-rw-rw-r-- 1 leif leif  722234 2020-08-30 12:47 stix2text-regular.lua
-rw-rw-r-- 1 leif leif  466687 2020-08-30 12:47 stix2text-regular.luc
    .
    .
-rw-rw-r-- 1 leif leif  764569 2020-08-30 12:47 stix2text-italic.lua
-rw-rw-r-- 1 leif leif  477285 2020-08-30 12:47 stix2text-italic.luc
-rw-rw-r-- 1 leif leif 1042702 2020-08-31 15:03 stix2math.lua
-rw-rw-r-- 1 leif leif  628077 2020-08-31 15:03 stix2math.luc

MWE를 실행한 후 캐시는 다음과 같습니다.

Created at 2020-08-31 16:44 with ls -ltr, i.e. latest file last.
    .
    .
    .
-rw-rw-r-- 1 leif leif  764569 2020-08-30 12:47 stix2text-italic.lua
-rw-rw-r-- 1 leif leif  477285 2020-08-30 12:47 stix2text-italic.luc
-rw-rw-r-- 1 leif leif 1042702 2020-08-31 16:44 stix2math.lua
-rw-rw-r-- 1 leif leif  628077 2020-08-31 16:44 stix2math.luc

보시다시피 다른 모든 항목은 그대로 유지되었지만 의 두 파일은 stix2math다시 작성되었습니다.

내가 왜 불평을 하느냐고 물으실 수도 있습니다. 결국 lualatex는 약 2MB만 다시 작성하는데, 이는 내 컴퓨터에서는 몇 초밖에 걸리지 않습니다. 그 이유는 내가 문서를 처리하는 데 사용 하고 또 다른 실행이 필요한지 결정할 latexmk때 캐시에 있는 파일을 고려하기 때문입니다 . latexmk캐시의 파일은 각 실행마다 변경되므로 latexmk작업이 완료된 것으로 간주되지 않지만 최대 실행 수에 도달할 때까지 계속됩니다.

그래서 내 질문은

  • lualatex캐시 파일을 다시 쓰지 않도록 하는 방법이 있습니까 ?

또는

  • latexmk추가 실행이 필요한지 결정할 때 글꼴 캐시 파일을 무시할 수 있는 방법이 있습니까 ?

편집하다두 번의 실행 사이에 stix2math.lua의 diff를 수행했는데 lualatex <file>다음과 같이 시작됩니다.

--- before.lua  2020-08-31 18:10:56.636561526 +0200
+++ after.lua   2020-08-31 18:11:29.024059824 +0200
@@ -658,9 +658,9 @@
    ["math"]={
     ["accent"]=440,
     ["kerns"]={
-     ["bottomleft"]=20,
-     ["bottomright"]=19,
-     ["topright"]=19,
+     ["bottomleft"]=19,
+     ["bottomright"]=20,
+     ["topright"]=20,
     },
    },
    ["name"]="M",
@@ -22748,7 +22748,7 @@
        ["kern"]=100,
       },
      },
-     ["topright"]=20,
+     ["topright"]=19,
     },
    },
    ["unicode"]=119813,

그런 다음 전체적으로 여러 항목에서 일반적으로 하나의 단위가 변경되면서 이와 같이 계속됩니다.

관련 정보