这是期刊文章的标题:µCRL 和 PVS 中的滑动窗口协议验证。
这是相同的 bibtex 文件:
@article{journals/fac/BadbanFGPP05,
added-at = {2005-11-15T00:00:00.000+0100},
author = {Badban, Bahareh and Fokkink, Wan and Groote, Jan Friso and Pang, Jun and van de Pol, Jaco},
biburl = {http://www.bibsonomy.org/bibtex/2788fbd81863c8e397b18da96324b4860/dblp},
date = {2005-11-15},
description = {dblp},
ee = {http://dx.doi.org/10.1007/s00165-005-0070-0},
interhash = {2d68692f33c41a23a91f6237b2a0e572},
intrahash = {788fbd81863c8e397b18da96324b4860},
journal = {Formal Asp. Comput.},
keywords = {dblp},
number = 3,
pages = {342-388},
timestamp = {2005-11-15T00:00:00.000+0100},
title = {Verification of a sliding window protocol in µCRL and PVS.},
url = {http://dblp.uni-trier.de/db/journals/fac/fac17.html#BadbanFGPP05},
volume = 17,
year = 2005
}
但在 PDF 中,缺少 µ 符号。
这是输出:
在 dblp,我获得了以下来源:
@article{DBLP:journals/fac/BadbanFGPP05,
author = {Bahareh Badban and
Wan Fokkink and
Jan Friso Groote and
Jun Pang and
Jaco van de Pol},
title = {Verification of a sliding window protocol in \^{\i}\^{\i}\^{\i}\^{\i}\^{\i}\^{\i}\^{\i}\^{\i}\^{\i}\^{\i}\^{\i}\^{\i}\^{\i}\^{\i}},
journal = {Formal Asp. Comput.},
volume = {17},
number = {3},
year = {2005},
pages = {342-388},
ee = {http://dx.doi.org/10.1007/s00165-005-0070-0},
bibsource = {DBLP, http://dblp.uni-trier.de}
}
这也不管用。我该怎么办?
答案1
如果您需要坚持pdflatex
使用 UTF-8 编码文件,则可执行以下操作:
% -*- coding: utf-8 -*-
\begin{filecontents*}{\jobname.bib}
@article{journals/fac/BadbanFGPP05,
added-at = {2005-11-15T00:00:00.000+0100},
author = {Badban, Bahareh and Fokkink, Wan and Groote, Jan Friso and Pang, Jun and van de Pol, Jaco},
biburl = {http://www.bibsonomy.org/bibtex/2788fbd81863c8e397b18da96324b4860/dblp},
date = {2005-11-15},
description = {dblp},
ee = {http://dx.doi.org/10.1007/s00165-005-0070-0},
interhash = {2d68692f33c41a23a91f6237b2a0e572},
intrahash = {788fbd81863c8e397b18da96324b4860},
journal = {Formal Asp. Comput.},
keywords = {dblp},
number = 3,
pages = {342-388},
timestamp = {2005-11-15T00:00:00.000+0100},
title = {Verification of a sliding window protocol in {µCRL} and {PVS}.},
url = {http://dblp.uni-trier.de/db/journals/fac/fac17.html#BadbanFGPP05},
volume = 17,
year = 2005
}
\end{filecontents*}
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{natbib}
\usepackage{newunicodechar,textgreek}
\usepackage{hyperref}
\newunicodechar{µ}{\textmu}
\begin{document}
\cite{journals/fac/BadbanFGPP05}
\bibliographystyle{plainnat}
\bibliography{\jobname}
\end{document}
通常的pdflatex file
,bibtex file
,pdflatex file
都会pdflatex file
以此结束。
我对您用于生成参考书目的内容(此处natbib
和plainnat
样式)做了一些假设。filecontents*
环境只是为了有一个独立的示例。
答案2
xelatex
最简单的方法是使用而不是 来运行文档pdflatex
。序言中的代码更改很简单。以下是xelatex
使用 bib 条目的示例:
\RequirePackage{filecontents}
\begin{filecontents*}{testbib.bib}
@article{journals/fac/BadbanFGPP05,
added-at = {2005-11-15T00:00:00.000+0100},
author = {Badban, Bahareh and Fokkink, Wan and Groote, Jan Friso and Pang, Jun and van de Pol, Jaco},
biburl = {http://www.bibsonomy.org/bibtex/2788fbd81863c8e397b18da96324b4860/dblp},
date = {2005-11-15},
description = {dblp},
ee = {http://dx.doi.org/10.1007/s00165-005-0070-0},
interhash = {2d68692f33c41a23a91f6237b2a0e572},
intrahash = {788fbd81863c8e397b18da96324b4860},
journal = {Formal Asp. Comput.},
keywords = {dblp},
number = 3,
pages = {342-388},
timestamp = {2005-11-15T00:00:00.000+0100},
title = {Verification of a sliding window protocol in µCRL and PVS.},
url = {http://dblp.uni-trier.de/db/journals/fac/fac17.html#BadbanFGPP05},
volume = 17,
year = 2005
}
@article{DBLP:journals/fac/BadbanFGPP05,
author = {Bahareh Badban and
Wan Fokkink and
Jan Friso Groote and
Jun Pang and
Jaco van de Pol},
title = {Verification of a sliding window protocol in \^{\i}\^{\i}\^{\i}\^{\i}\^{\i}\^{\i}\^{\i}\^{\i}\^{\i}\^{\i}\^{\i}\^{\i}\^{\i}\^{\i}},
journal = {Formal Asp. Comput.},
volume = {17},
number = {3},
year = {2005},
pages = {342-388},
ee = {http://dx.doi.org/10.1007/s00165-005-0070-0},
bibsource = {DBLP, http://dblp.uni-trier.de}
}
\end{filecontents*}
\documentclass{article}
%\usepackage[utf8]{inputenc}
\usepackage{fontspec}
\begin{document}
foo~\cite{DBLP:journals/fac/BadbanFGPP05,journals/fac/BadbanFGPP05}
\bibliographystyle{alpha}
\bibliography{testbib}
\end{document}
运行xelatex -> bibtex -> xelatex
产生输出:
答案3
您可以使用
\usepackage{textgreek}