%20%E7%B7%A8%E8%AD%AF%E5%BE%8C%E4%B8%8D%E5%8F%AF%E8%A6%8B%EF%BC%9F.png)
我有一個 BibTeX 項目,如下所示。
@inproceedings{Orsdemir2008,
Author = {Orsdemir, A. and Altun, H. and Sharma, G. and Bocko, M.},
Booktitle = {Proc. IEEE MILCOM’ 08},
Month = {Nov},
Pages = {1-7},
Title = {On the security and robustness of encryption via compressed sensing},
Year = {2008}}
我在下面\documentclass[conference]{IEEEtran}
並調用參考部分
{\footnotesize
\bibliographystyle{IEEEtran}
\bibliography{myBibFile}}
然後我得到這個結果。
[10] A. Orsdemir、H. Altun、G. Sharma 和 M. Bocko,“論通過壓縮感知進行加密的安全性和魯棒性”,Proc。 IEEE MILCOM 08,2008 年 11 月,第 1-7 頁。
正如您可能已經發現的,'
緊隨其後的內容MILCOM
丟失了。我該如何解決這個問題?
答案1
程式碼中的「撇號」字元是不是一個ASCII 單引號( '
),即十六進位ASCII碼27的字符,但是Unicode“右單引號”( ’
),即碼點 U+2019 的 Unicode 字元。一旦你注意到這一點,問題就應該變得清楚了,因為BibTeX 不支援 Unicode 字符(抱歉,這是我能找到的最好的連結)。
我猜您可能從互聯網上的某個地方複製了該 BibTeX 條目,然後將其粘貼到您的bib
文件中,並且ASCII 單引號在此過程中丟失了......如果它曾經存在於原始BibTeX條目中!
只需用 ASCII 單引號替換有問題的 Unicode 字元即可。運行pdflatex
, bibtex
, 然後運行pdflatex
兩次後,您應該得到:
\documentclass[]{IEEEtran}
\begin{filecontents}{\jobname.bib}
@inproceedings{Orsdemir2008,
Author = {Orsdemir, A. and Altun, H. and Sharma, G. and Bocko, M.},
Booktitle = {Proc. IEEE MILCOM '08},
Month = {Nov},
Pages = {1-7},
Title = {On the security and robustness of encryption via compressed sensing},
Year = {2008}}
\end{filecontents}
\begin{document}
Text \cite{Orsdemir2008}.
{\footnotesize
\bibliographystyle{IEEEtran}
\bibliography{\jobname}}
\end{document}