
我在用匈牙利語工作時遇到了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
將回退到英語, with polyglossia
(對於其本地化來說,biblatex
一般來說有點不穩定)您將得到粗體標籤。