在一个目的完全不同的测试文件中,我发现自己面前出现了一条我不知道如何解释的通知。我查看了 polyglossia 文档(其中朗塔格不存在),在网上我只找到这个链接(最后一篇文章) 光泽乳胶警告 这似乎已经解决了 使用 lcscript 进行拉丁语检查 代码如下:
\begin{filecontents*}{\jobname.bib}
@Article{acerbi,
author = {D'Acer'bi, Fabio},
title = {La concezione archimedea degli oggetti matematici},
journal = {La Matematica nella Società e nella Cultura},
journaltitle = {Rivista dell'Unione Matematica Italiana},
year = {2013},
series = {I},
volume = {VI},
pages = {227 - 252},
url = {www.academia.edu},
}
\end{filecontents*}
\documentclass[12pt,a4paper]{article}
\usepackage{fontspec}
\usepackage{polyglossia}
\setdefaultlanguage[babelshorthands=true]{italian}
\PolyglossiaSetup{italian}{indentfirst=false}
\usepackage[autostyle=true]{csquotes}
\setmainfont[Ligatures=TeX,Numbers={Proportional,OldStyle},RawFeature=+supkern,RawFeature=+calt,SmallCapsFeatures={RawFeature=+apo-nosc}]{EB Garamond}
\usepackage[backend=biber,style=philosophy-verbose,scauthors=all,%
giveninits,classical=true,volnumformat=strings,%
volumeformat=romansc,sorting=nyt,commacit=true,citepages=omit,%
editionformat=superscript,indexing]%
{biblatex}
\DeclareFieldFormat[article,inbook,incollection,inproceedings]{title}{\mkbibemph{#1}}
\DeclareFieldFormat[article,inbook,incollection,inproceedings]{citetitle}{\mkbibemph{#1}}
\DeclareFieldFormat{journaltitle}{\mkbibquote{#1}}
\directlua{
fonts.handlers.otf.addfeature{
name = "apo-nosc",
type = "chainsubstitution",
lookups = {
{
type = "substitution",
data = {
["quoteright.sc"] = "quoteright.fr",
},
},
},
data = {
rules = {
{
before = { { "A", "B", "C", "D"} },
current = { { "quoteright.sc" } },
lookups = { 1 },
},
},
},
}
}
\addbibresource{\jobname.bib}
\begin{document}
abc abc\footcite[239]{acerbi} abc
\nocite{*}
\printbibliography
\end{document}
但是,我收到:
Package polyglossia Warning: Asking to add empty feature to latin font (Languag
e="Italian" to langtag "") on input line 11.
)
Package polyglossia Warning: Asking to add empty feature to latin font (Languag
e="Italian" to langtag "") on input line 73.
我的代码有什么错误或缺失吗?是多语问题吗?请注意,我有 Texlive2019,始终更新。谢谢
答案1
问题在于你使用了\PolyglossiaSetup
。此命令会重新初始化语言,因此你会丢失在 gloss-ldf 中完成的所有设置。添加或更改键的正确命令是\SetLanguageKeys
。一个直观的例子是 frenchspacing 设置,你也会使用 丢失它\PolyglossiaSetup
:
\documentclass{article}
\usepackage{polyglossia}
\setdefaultlanguage{italian}
%\PolyglossiaSetup{italian}{indentfirst=false} %wrong
\SetLanguageKeys{italian}{indentfirst=false}
\begin{document}
abc. Abc
\nonfrenchspacing
abc. Abc
\end{document}