%20%E4%B8%8A%E7%9A%84%E8%AD%A6%E5%91%8A.png)
LaTeX warning: "xparse/redefine-command"
*
* Redefining document command \oldstylenums with arg. spec. 'm' on line 128.
LaTeX warning: "xparse/redefine-command"
*
* Redefining document command \textsubscript with arg. spec. 's' on line 25.
LaTeX warning: "xparse/redefine-command"
*
* Redefining document command \textsuperscript with arg. spec. 's' on line 28.
什麼做那是什麼意思?
答案1
我想你可能有
\usepackage{fontspec}
在你的序言中。這使用 fontspec-patches.sty 其中包括
\RenewDocumentCommand \oldstylenums {m}
{
{ \addfontfeature{Numbers=OldStyle} #1 }
}
基本上,這可以確保當使用 fontspec 提供的介面選擇字體時,設計用於標準 LaTeX 字體設定的命令繼續按預期運行。因此,當人們從 (pdf)LaTeX 切換到 Xe/LuaLaTeX 時,它可以阻止意外損壞。
我也猜你有
\usepackage{realscripts}
在您的序言中,或者您正在使用另一個本身稱為 realscripts 的套件。例如,
\usepackage{xltxtra}
具有請求真實腳本的效果,因為 xltxtra.sty 包含行
\RequirePackage{realscripts}
realscripts.sty 包含以下行
\RenewDocumentCommand \textsubscript {s} {
\IfBooleanTF #1 \fakesubscript \realsubscript
}
\RenewDocumentCommand \textsuperscript {s} {
\IfBooleanTF #1 \fakesuperscript \realsuperscript
}
同樣,這些定義使事情按預期工作。這次重新定義的重點是使用字體提供的真實上標/下標數字(當這些數字可用時),而不會破壞不具有這些功能的字體的功能。
這些警告只是為了告訴您這種情況正在發生。這意味著如果發生奇怪的事情,您知道哪些定義被哪些套件更改了,並且可以使用此資訊進行故障排除。
編輯以涵蓋載入真實腳本的可能性間接地。