
我正在 Ubuntu 上使用 TL 2022 編譯舊的原始碼樹。
我注意到這個警告,我不知道它的來源在哪裡,以及如何糾正它
[INFO] htlatex: LaTeX call: dvilualatex --interaction=errorstopmode -jobname='index' --interaction=batchmode -shell-escape '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\AddToHook{class/before}{\RequirePackage[#1,html]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,html}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode nma_mathjax.cfg,mathjax,htm,fn-in,3,notoc*,p-width,charset=utf-8,charset=utf-8,html5.a.b.c.\input "\detokenize{index.tex}"'
This is LuaTeX, Version 1.15.0 (TeX Live 2022)
system commands enabled.
[INFO] mkutils: mathjax,htm,fn-in,3,notoc*,p-width,charset=utf-8,html5,
[INFO] mkutils: executing: tex4ht -cunihtf -utf8 "index.dvi"
--- warning --- Couldn't find font `mlmsy8.htf' (char codes: 0--173)
我搜尋了這個文件mlmsy8.htf
,但找不到。我什至不知道哪個乳膠文件導致此問題顯示在原始碼樹中以糾正它。
任何人都可以建議如何糾正這個問題?為什麼這個文件不見了?我在兩個 Linux Ubuntu 系統上嘗試了 TL 2022,並出現相同的警告。
抱歉,我沒有 MWE,因為我不知道這個警告從何而來,也不知道忽略它是否安全。它僅在使用 tex4ht 而不是 lualatex 時顯示。
答案1
此錯誤訊息表示該字體的字元對映表遺失,因此將使用預設表。由於預設表是基於 Computer Modern,因此您不應在檔案中遇到遺失字元的情況。但您可能會遇到格式缺失的情況,這也包含在映射檔案中。
無論如何,mlmodern
可以使用這些文件添加基本映射:
rm-mlm.htf
:
.rm-lm
htfcss: rm-mlmbo font-style: oblique;
htfcss: rm-mlmbx font-weight: bold;
htfcss: rm-mlmbxi font-style:italic; font-weight: bold;
htfcss: rm-mlmbxo font-style: oblique; font-weight: bold;
htfcss: rm-mlmri font-style:italic;
htfcss: rm-mlmro font-style: oblique;
htfcss: rm-mlmss font-family: sans-serif;
htfcss: rm-mlmssbo font-family: sans-serif; font-style: oblique; font-weight: bold;
htfcss: rm-mlmssbx font-family: sans-serif; font-weight: bold;
htfcss: rm-mlmssdc font-family: sans-serif;
htfcss: rm-mlmssdo font-family: sans-serif; font-style: oblique;
htfcss: rm-mlmsso font-family: sans-serif; font-style: oblique;
htfcss: rm-mlmssq font-family: sans-serif;
htfcss: rm-mlmssqbo font-family: sans-serif; font-style: oblique; font-weight: bold;
htfcss: rm-mlmssqbx font-family: sans-serif; font-weight: bold;
htfcss: rm-mlmssqo font-family: sans-serif; font-style: oblique;
htfcss: rm-mlmcsc font-variant: small-caps;
該.rm-lm
行意味著它應該使用來自 的字元映射rm-lm.htf
。我們可以做到這一點,因為它們具有相同的字元。
您還需要一些其他文件:
mlmex.htf
:
.cmex
mlmmi.htf
:
.cmmi
htfcss: mlmmib font_weight:bold;
mlmsy.htf
:
.plbsy
所有這些檔案都是拉丁現代映射檔案的副本,並引用包含實際字元映射的其他 HTF 檔案。