如何打印 BibLaTeX
“27. évf. 1. sz. 第 5-23 页”
代替
“第 27 卷,第 1 期,第 5-23 页”
?
梅威瑟:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[magyar]{babel}
\usepackage{lmodern, filecontents}
\usepackage[style=ieee]{biblatex}
\begin{filecontents}{\jobname.bib}
@article{zarandy_art_temdesign,
author = {Zarándy, Ákos},
title = {The art of {CNN} template design},
journal = {International Journal of Circuit Theory and Applications},
volume = {27},
number = {1},
publisher = {John Wiley & Sons, Ltd.},
issn = {1097-007X},
url = {http://digitus.itk.ppke.hu/~lazar/cnn/SegedFileok/ZA_TemplTervArt.pdf},
urldate = {2014-04-22},
pages = {5--23},
year = {1999}
}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
\cite{zarandy_art_temdesign}
\printbibliography
\end{document}
我的magyar.lbx
包含以下内容:
\DeclareBibliographyStrings{
% ...
page = {{oldal}{p\adddot}},
pages = {{oldalak}{pp\adddot}},
volume = {{évfolyam}{évf\adddot}},
volumes = {{évfolyam}{évf\adddot}},
number = {{szám}{sz\adddot}},
}
因此字符串已经存在,但与数字的顺序不正确。
答案1
这biblatex-ieee
包裹最近更新支持匈牙利语,因此很快就不需要额外的代码来实现这一点。
答案2
在较新版本中,biblatex-ieee
您只需将字段格式重新定义为
\DeclareFieldFormat*{volume}{#1\adddot\addnbspace\bibstring{volume}}
\DeclareFieldFormat[article,periodical]{volume}{#1\adddot\addnbspace\bibstring{jourvol}}
\DeclareFieldFormat*{number}{#1\adddot\addnbspace\bibstring{number}}
但即使是较新的版本 (>= 1.3) 也将提供现成的匈牙利语支持(这可能只有在biblatex
匈牙利语支持发布后才真正有用,请参阅使用 LuaLaTex 和 biber 的匈牙利语)。
旧版本的解决方案可以在编辑历史中找到。
平均能量损失
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[british]{babel}
\usepackage{lmodern, filecontents}
\usepackage[style=ieee]{biblatex}
\begin{filecontents}{\jobname.bib}
@article{zarandy_art_temdesign,
author = {Zarándy, Ákos},
title = {The art of {CNN} template design},
journal = {International Journal of Circuit Theory and Applications},
volume = {27},
number = {1},
publisher = {John Wiley & Sons, Ltd.},
issn = {1097-007X},
url = {http://digitus.itk.ppke.hu/~lazar/cnn/SegedFileok/ZA_TemplTervArt.pdf},
urldate = {2014-04-22},
pages = {5--23},
year = {1999}
}
\end{filecontents}
\addbibresource{\jobname.bib}
\DeclareFieldFormat*{volume}{#1\adddot\addnbspace\bibstring{volume}}
\DeclareFieldFormat[article,periodical]{volume}{#1\adddot\addnbspace\bibstring{jourvol}}
\DeclareFieldFormat*{number}{#1\adddot\addnbspace\bibstring{number}}
\begin{document}
\cite{zarandy_art_temdesign}
\printbibliography
\end{document}