Windows 10에서 Latexmk는 경로에 중국어 문자가 포함된 파일을 어떻게 컴파일할 수 있나요?

Windows 10에서 Latexmk는 경로에 중국어 문자가 포함된 파일을 어떻게 컴파일할 수 있나요?

Windows에서 다음 명령을 문제 없이 사용할 수 있습니다.

latexmk -lualatex -shell-escape "xxx.tex"

그러나 파일 이름에 중국어 문자가 포함되어 있으면 실패합니다.

latexmk -lualatex -shell-escape "中文.tex"

기본 코드 페이지를 65001로 변경하려고 했지만 도움이 되지 않습니다. 유일한 차이점은 이제 모든 중국어 문자를 일부 이상한 문자 대신 블록으로 표시한다는 것입니다.

어떻게 작동하게 만들까요?

출력은 다음과 같습니다(이상한 문자 ����에 주목하세요).

Latexmk: This is Latexmk, John Collins, 17 March 2019, version: 4.63b.
Latexmk: In reading rule 'lualatex' in 'c:/Users/Jeff/thesis2.0/����NodeJs�ĵ��̴���ϵͳ�����ʵ��.fdb_latexmk',
  destination has different name than configured...
Rule 'lualatex': File changes, etc:
   Changed files, or newly in use since previous run(s):
      'chapter4/sku-lock-design.tex'
...
----------------------
C:\texlive\2019\bin\win32\runscript.tlu:907: command failed with exit code 12:
perl.exe c:\texlive\2019\texmf-dist\scripts\latexmk\latexmk.pl -lualatex -shell-escape -enable-write18 -synctex=1 -interaction=nonstopmode -outdir=c:/Users/Jeff/thesis2.0 -f ����NodeJs�ĵ��̴���ϵͳ�����ʵ��

답변1

2020년 5월 texlive 2020에 추가된 utf8 파일 이름에 대한 luatex에 대한 올바른 지원. 이전에는 작동하지 않았습니다.

현재 texlive 2020에서는 lualatex를 사용하여 중국어 파일 이름을 가진 파일을 문제 없이 실행할 수 있습니다.

This is LuaHBTeX, Version 1.12.0 (TeX Live 2020/W32TeX)  (format=lualatex 2020.9.14)  19 SEP 2020 21:18
 restricted system commands enabled.
**中文.tex
(./中文.tex

...

Output written on 中文.pdf (1 page, 2891 bytes).

그러나 latexmk실패합니다:

C:\Users\XXXX\Documents\tests>latexmk -lualatex 中文.tex
Rc files read:
  NONE
Latexmk: This is Latexmk, John Collins, 13 September 2020, version: 4.70a.
Latexmk: Filename '5%.tex' contains character not allowed for TeX file.
Latexmk: Stopping because of bad filename(s).

관련 정보