我想使用參考書目風格引用網站連結作為參考apalike
。
我必須按照會議的要求使用apalike。
這是代碼:
\documentclass[times,10pt,twocolumn]{article}
\usepackage{PRADSConference}
\usepackage{times}
\usepackage{graphicx}
\usepackage{amssymb}
\usepackage[draft]{hyperref}
\usepackage{url}
\usepackage{authblk}
\pagestyle{empty}
\usepackage[round]{natbib}
\bibliographystyle{apalike}
\usepackage{amsmath}
\usepackage{cleveref}
\citep{lithium}
\bibliography{refs}
\end{document}
但是,輸出並未像其餘參考文獻一樣編號,如下所示
我在bib檔案中寫了參考,如下
@Misc{lithium,
Title = {Lithium-ion Specifications},
HowPublished = {\url{http://optimum-china.en.alibaba.com/product/437274726-212297973/rechargeable_HEV_EV_bus_battery_pack_of_lifepo4_600v_500ah.html}},
Note = {Accessed on: 10/02/2016}}
我也收到此錯誤:
package natbib error bibliography not compatible with author-year citations
當我從 .tex 檔案中刪除網站連結引用時,沒有錯誤,並且所有引用均以作者年份樣式顯示,應如圖所示
答案1
參考書目風格apalike
旨在創建作者年份風格的引文標註。然而lithium
條目既author
缺場又缺場year
。窮人natbib
——本質上是引文管理包——應該做什麼?
我建議您為條目創建合適的author
和year
字段lithium
,刪除所有 aux 文件,然後完全重新編譯您的文件(LaTeX、BibTeX 和 LaTeX 兩次以上。