我正在将这些包fdsymbol
与该microtype
包一起使用,并且在编译时出现许多警告,指出以下内容:
Package microtype Warning: Font `U/FdSymbolF/m/n/14.4' does not specify its
(microtype) \fontdimen 6 (width of an `em')! Therefore,
(microtype) tracking will not work with this font.
有没有办法修补fdsymbol
软件包(即设置\fontdimen 6
为某个值)来修复这个警告?
编辑
正如 egreg 所问,这里有一个例子(它以某种方式让我发现了问题的原因......但没有解决它)。
\documentclass{article}
\usepackage{fdsymbol}
\usepackage[tracking=all]{microtype}
\begin{document}
\ensuremath{\varheartsuit}
\end{document}
这似乎是由追踪引起的。
这是我的完整文档的完整警告日志。
Package microtype Warning: Font `U/FdSymbolE/m/n/40' does not specify its
(microtype) \fontdimen 6 (width of an `em')! Therefore,
(microtype) tracking will not work with this font.
Package microtype Warning: Font `U/FdSymbolE/m/n/27.99988' does not specify its
(microtype) \fontdimen 6 (width of an `em')! Therefore,
(microtype) tracking will not work with this font.
Package microtype Warning: Font `U/FdSymbolE/m/n/20' does not specify its
(microtype) \fontdimen 6 (width of an `em')! Therefore,
(microtype) tracking will not work with this font.
Package microtype Warning: Font `U/FdSymbolB/m/n/40' does not specify its
(microtype) \fontdimen 6 (width of an `em')! Therefore,
(microtype) tracking will not work with this font.
Package microtype Warning: Font `U/FdSymbolB/m/n/27.99988' does not specify its
(microtype) \fontdimen 6 (width of an `em')! Therefore,
(microtype) tracking will not work with this font.
Package microtype Warning: Font `U/FdSymbolB/m/n/20' does not specify its
(microtype) \fontdimen 6 (width of an `em')! Therefore,
(microtype) tracking will not work with this font.
Package microtype Warning: Font `U/FdSymbolC/m/n/40' does not specify its
(microtype) \fontdimen 6 (width of an `em')! Therefore,
(microtype) tracking will not work with this font.
Package microtype Warning: Font `U/FdSymbolC/m/n/27.99988' does not specify its
(microtype) \fontdimen 6 (width of an `em')! Therefore,
(microtype) tracking will not work with this font.
Package microtype Warning: Font `U/FdSymbolC/m/n/20' does not specify its
(microtype) \fontdimen 6 (width of an `em')! Therefore,
(microtype) tracking will not work with this font.
Package microtype Warning: Font `U/FdSymbolD/m/n/40' does not specify its
(microtype) \fontdimen 6 (width of an `em')! Therefore,
(microtype) tracking will not work with this font.
Package microtype Warning: Font `U/FdSymbolD/m/n/27.99988' does not specify its
(microtype) \fontdimen 6 (width of an `em')! Therefore,
(microtype) tracking will not work with this font.
Package microtype Warning: Font `U/FdSymbolD/m/n/20' does not specify its
(microtype) \fontdimen 6 (width of an `em')! Therefore,
(microtype) tracking will not work with this font.
Package microtype Warning: Font `U/FdSymbolF/m/n/40' does not specify its
(microtype) \fontdimen 6 (width of an `em')! Therefore,
(microtype) tracking will not work with this font.
Package microtype Warning: Font `U/FdSymbolF/m/n/27.99988' does not specify its
(microtype) \fontdimen 6 (width of an `em')! Therefore,
(microtype) tracking will not work with this font.
Package microtype Warning: Font `U/FdSymbolF/m/n/20' does not specify its
(microtype) \fontdimen 6 (width of an `em')! Therefore,
(microtype) tracking will not work with this font.
答案1
正如 egreg 在评论中提到的那样,将 microtype 包设置为tracking=alltext
足以从基本示例中删除所有警告。
但是,我的代码产生了更多的警告,我还没有在一个小的例子中重现它...事实上,我只使用了 fdsymbol 包中的几个符号,所以我找到了如下解决方法:
\DeclareFontFamily{U}{FdSymbolA}{}
\DeclareFontShape{U}{FdSymbolA}{m}{n}{<->FdSymbolA-Book}{}
\DeclareSymbolFont{extrasymbols}{U}{FdSymbolA}{m}{n}
\DeclareMathSymbol{\varheartsuit}{\mathord}{extrasymbols}{184}
\DeclareMathSymbol{\medblacksquare}{\mathord}{extrasymbols}{118}
\DeclareMathSymbol{\medblackbullet}{\mathord}{extrasymbols}{99}
但是,看起来 fdsymbols 的使用地方比我最初预期的要多得多。
所以,我不会说这个答案是正确的。这只是一种解决方法,我需要发现问题的根源是什么。