微类型:使用 LuaLatex 的 classicthesis 中 Palatino 的“未知字符槽号”

微类型:使用 LuaLatex 的 classicthesis 中 Palatino 的“未知字符槽号”

我正在尝试将我的文档转换为使用classicthesis。默认情况下,它使用字体palatino,但在使用 LuaLatex 编译时会导致以下错误:

File: mt-Palatino.cfg 2012/03/10 v1.0 microtype config. file: Palatino and simi
lar fonts (LBD)
)

Package microtype Warning: Unknown slot number of character
(microtype)                `Ḃ (= \.B)'
(microtype)                in font encoding `TU' in inheritance list
(microtype)                `mt-Palatino.cfg/109(protrusion)'.


Package microtype Warning: Unknown slot number of character
(microtype)                `Ḡ (= \=G)'
(microtype)                in font encoding `TU' in inheritance list
(microtype)                `mt-Palatino.cfg/109(protrusion)'.


Package microtype Warning: Unknown slot number of character
(microtype)                `Ǩ (= \v K)'
(microtype)                in font encoding `TU' in inheritance list
(microtype)                `mt-Palatino.cfg/109(protrusion)'.


Package microtype Warning: Unknown slot number of character
(microtype)                `Ȳ (= \=Y)'
(microtype)                in font encoding `TU' in inheritance list
(microtype)                `mt-Palatino.cfg/109(protrusion)'.


Package microtype Warning: Unknown slot number of character
(microtype)                `ḃ (= \.b)'
(microtype)                in font encoding `TU' in inheritance list
(microtype)                `mt-Palatino.cfg/109(protrusion)'.


Package microtype Warning: Unknown slot number of character
(microtype)                `ff (= ff)'
(microtype)                in font encoding `TU'.
(microtype)                Make sure it's a single character
(microtype)                (or a number) in inheritance list
(microtype)                `mt-Palatino.cfg/109(protrusion)'.


Package microtype Warning: Unknown slot number of character
(microtype)                `ḡ (= \=g)'
(microtype)                in font encoding `TU' in inheritance list
(microtype)                `mt-Palatino.cfg/109(protrusion)'.


Package microtype Warning: Unknown slot number of character
(microtype)                `ǩ (= \v k)'
(microtype)                in font encoding `TU' in inheritance list
(microtype)                `mt-Palatino.cfg/109(protrusion)'.


Package microtype Warning: Unknown slot number of character
(microtype)                `ȳ (= \=y)'
(microtype)                in font encoding `TU' in inheritance list
(microtype)                `mt-Palatino.cfg/109(protrusion)'.


Package microtype Warning: Unknown slot number of character
(microtype)                `st (= st)'
(microtype)                in font encoding `TU'.
(microtype)                Make sure it's a single character
(microtype)                (or a number) in protrusion list
(microtype)                `palatino-default'.


Package microtype Warning: Unknown slot number of character
(microtype)                `ſt (= st)'
(microtype)                in font encoding `TU'.
(microtype)                Make sure it's a single character
(microtype)                (or a number) in protrusion list
(microtype)                `palatino-default'.

Package microtype Info: Character `‥' is missing
(microtype)             in font `TU/TeXGyrePagella(0)/m/n/10.95'.
(microtype)             Ignoring protrusion settings for this character.
Package microtype Info: Character `‼' is missing
(microtype)             in font `TU/TeXGyrePagella(0)/m/n/10.95'.
(microtype)             Ignoring protrusion settings for this character.
Package microtype Info: Character `⁰' is missing
(microtype)             in font `TU/TeXGyrePagella(0)/m/n/10.95'.
(microtype)             Ignoring protrusion settings for this character.
! Undefined control sequence.
¹...ain_tl {1}\cs_set_eq:NN \__um_sub_or_super:n 
                                                  \sp \tl_set:Nn \l__um_tmpa...
l.27 \begin{document}
                   
? X


Here is how much of LuaTeX's memory you used:
 68440 strings out of 478531
 100000,3417909 words of node,token memory allocated 1379 words of node memory still in use:
   22 hlist, 1 vlist, 10 rule, 1 dir, 3 glue, 4 kern, 1 glyph, 62 attribute, 116
 glue_spec, 58 attribute_list, 5 if_stack, 3 write, 16 pdf_literal, 1 pdf_dest, 
17 pdf_colorstack nodes
   avail lists: 1:1,2:15,3:1,4:7,5:6,6:3,7:33,8:4,9:4,11:3
 86004 multiletter control sequences out of 65536+600000
 73 fonts using 24591727 bytes
 111i,1n,134p,10600b,2237s stack positions out of 5000i,500n,10000p,200000b,80000s

warning  (pdf backend): no pages of output.
! error:  (pdf backend): already written content discarded, no output file produ
ced.
!  ==> Fatal error occurred, no output PDF file produced!

这似乎与之前的帖子有关,例如。但是,我安装了最新的 MacTex(即microtype> 2.7),并仔细检查了警告的字符是否确实在继承列表中定义mt-Palatino.cfg,正如第二篇文章所建议的那样。

编辑:编译错误的原因似乎是与microtype不兼容。unicode-mathluainputenc

MWE(或者说不工作):

\documentclass{article}

\usepackage[utf8]{luainputenc}

\usepackage{microtype} 
\microtypesetup{protrusion=true}

\usepackage{unicode-math}

\begin{document}
MWE
\end{document}

protrusion=false仅当我设置了,或者禁用unicode-math或 时,此代码才会编译luainputenc

相关内容