我正在用西班牙语写论文。但是,我希望使用 biblatex 以英文形式提供参考书目。我的文档如下:
\documentclass[onecolumn,11pt]{article}
\usepackage[spanish]{babel}
\usepackage[utf8]{inputenc}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%BIBLIOGRAPHY
\usepackage[style=numeric,url=false,issn=false,maxbibnames=99,backend=biber,sorting=none]{biblatex}%<- specify style
\renewbibmacro{in:}{}
\DefineBibliographyStrings{spanish}{%
andothers = {\textit{et al}\adddot}
}
\addbibresource{references.bib}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\printbibliography[title={Bibliografía}]
\end{document}
例如,一个 bibitem 是:
@ARTICLE{Scoup1,
author = "Dolan, Matthew J. and Englert, Christoph and Spannowsky,
Michael",
title = "{Higgs self-coupling measurements at the LHC}",
journal = "JHEP",
volume = "10",
year = "2012",
pages = "112",
doi = "10.1007/JHEP10(2012)112",
eprint = "1206.5001",
archivePrefix = "arXiv",
primaryClass = "hep-ph",
reportNumber = "IPPP-12-43, DCPT-12-86",
SLACcitation = "%%CITATION = ARXIV:1206.5001;%%"
}
在文档中它显示如下:
马修·J·多兰、克里斯托弗·恩格勒特是Michael Spannowsky。“LHC 上的希格斯自耦合测量”。JHEP10(2012 年),页。112. DOI:10.1007/JHEP10(2012)112. arXiv:1206.5001[hep-ph].
就像我说的,用西班牙语。我想要的是这个:
马修·J·多兰、克里斯托弗·恩格勒特和Michael Spannowsky。“LHC 上的希格斯自耦合测量”。JHEP10(2012 年),页112. DOI:10.1007/JHEP10(2012)112. arXiv:1206.5001[hep-ph].
总而言之,我想要西班牙语文档中的英文书目
答案1
您可以使用 直接指定语言作为 的选项。但您必须注意其他一些事项才能使其工作。您必须在 的语言列表中包含biblatex
(在之前,因为最后列出的语言是默认语言,并且您的文档是西班牙语)。并且您还必须指示将您的参考资料包含在环境中,这可以使用 来完成。language=english
english
babel
spanish
biblatex
otherlanguage
autolang=other
总结一下:
\documentclass[onecolumn,11pt]{article}
\usepackage[english,spanish]{babel}
\usepackage[utf8]{inputenc}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%BIBLIOGRAPHY
\usepackage[style=numeric,url=false,isbn=false,maxbibnames=99,backend=biber,sorting=none,language=english,autolang=other]{biblatex}%<- specify style
\renewbibmacro{in:}{}
\DefineBibliographyStrings{spanish}{%
andothers = {\textit{et al}\adddot}
}
\begin{filecontents}{\jobname.bib}
@ARTICLE{Scoup1,
author = "Dolan, Matthew J. and Englert, Christoph and Spannowsky,
Michael",
title = "{Higgs self-coupling measurements at the LHC}",
journal = "JHEP",
volume = "10",
year = "2012",
pages = "112",
doi = "10.1007/JHEP10(2012)112",
eprint = "1206.5001",
archivePrefix = "arXiv",
primaryClass = "hep-ph",
reportNumber = "IPPP-12-43, DCPT-12-86",
SLACcitation = "%%CITATION = ARXIV:1206.5001;%%"
}
\end{filecontents}
\addbibresource{\jobname.bib}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\nocite{*}
\printbibliography[title={Bibliografía}]
\end{document}
其渲染效果为: