LuaLaTex
我在使用biber
匈牙利语时遇到了麻烦。我已texlive-full
在 Ubuntu 16.04 上安装,而之前的安装没有这个问题。下面我提供了 mwe、lualatex 给出的输出和警告。我该如何解决这个问题?
妈妈:
\documentclass{article}
\usepackage{polyglossia}
\usepackage{csquotes}
\setmainlanguage{magyar}
\usepackage[defernumbers=true,sorting=none,backend=biber,maxnames=10,style=ieee]{biblatex}
\addbibresource{text.bib}
\begin{document}
Próba \cite{graphtheory,barabasi2016network,king2002home,linklater2000adaptive,moehlman1998feral,moehlman2002equids}
\printbibliography
\end{document}
文件bib
:
@book{graphtheory,
title={Graph theory},
author={Bondy, John Adrian and Murty, Uppaluri Siva Ramachandra},
year={2008},
publisher={Springer}
}
@article{king2002home,
title={Home range and habitat use of free-ranging Przewalski horses at Hustai National Park, Mongolia},
author={King, SRB},
journal={Applied Animal Behaviour Science},
volume={78},
number={2},
pages={103--113},
year={2002},
publisher={Elsevier}
}
输出:
错误:
Package csquotes Warning: No style for language 'magyar'.
(csquotes) Using fallback style on input line 9.
Package biblatex Warning: Language 'magyar' not supported.
(biblatex) Using fallback language 'english' on input line 9.
(/usr/share/texlive/texmf-dist/tex/latex/biblatex/lbx/english.lbx)
(./mwe_magyar.aux
Language magyar not found in language.dat.lua)
Language magyar not found in language.dat.lua (./mwe_magyar.bbl)(load luc: /hom
e/fbence/.texlive2017/texmf-var/luatex-cache/generic/fonts/otl/lmroman12-regula
r.luc)(load luc: /home/fbence/.texlive2017/texmf-var/luatex-cache/generic/fonts
/otl/lmroman12-bold.luc)
Package biblatex Warning: Bibliography string 'and' undefined
(biblatex) at entry 'graphtheory' on input line 13.
Package biblatex Warning: Bibliography string 'jourvol' undefined
(biblatex) at entry 'king2002home' on input line 13.
Package biblatex Warning: Bibliography string 'number' undefined
(biblatex) at entry 'king2002home' on input line 13.
Package biblatex Warning: Bibliography string 'pages' undefined
(biblatex) at entry 'king2002home' on input line 13.
答案1
编辑:关注这个问题匈牙利语支持已在 3.12 版中实现
biblatex
(https://github.com/plk/biblatex/issues/717,https://github.com/plk/biblatex/pull/780)。因此,如果您今天需要匈牙利语支持,这应该很简单,只需确保您拥有最新版本的 即可biblatex
。请注意,匈牙利语本地化模块有点特殊,因为
.lbx
文件无法处理非德语语言的某些功能。因此,请仔细检查输出并阅读文档和文件中的警告.log
。当然,一般来说,
bibatex
只有在有精通该语言的人出现并提供帮助时才能实现该语言的本地化,就像这里的情况一样。下面的答案是为了历史目的而留下的。
目前biblatex
不支持匈牙利语。以下是biblatex
试图告诉你的
Package biblatex Warning: Language 'magyar' not supported.
如果您使用babel
而不是polyglossia
,biblatex
将会恢复为英语,而使用polyglossia
(其本地化biblatex
通常有点不稳定)您将获得粗体标签。