我在碩士論文中引用的文章和書籍在頁碼之間缺少“-”號,因此 PDF 文件中的結果不是“20-22”,而是“20 22”。我使用 bibtex 資料庫來儲存我所有的參考文獻和apalike
參考書目風格。
我的專案是用 ShareLatex 寫的。
請看下面的例子。
\documentclass[11pt,letter]{article}
\usepackage{hyperref}
\usepackage[authoryear]{natbib}
\setcitestyle{square}
\usepackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@ARTICLE{Illy,
author = {E. Illy},
title = {{The Complexity of Coffee}},
journal = {Scientific American},
month = {June},
year = {2002},
pages = {86--91}}
\end{filecontents*}
\begin{document}
Some existing text \citep{Illy}
\bibliography{\jobname}
\bibliographystyle{apalike}
% In the reference list the article should be represented like this:
Illy, E. (2002). The Complexity of Coffee. Scientific American, pages 86–91
% BUT the result look like this:
Illy, E. (2002). The Complexity of Coffee. Scientific American, pages 86 91
\end{document}
有人可以幫忙嗎?
答案1
你的文件在我這裡運作正常,所以有兩種可能的解釋:
- 正如 @barbara beeton 所建議的,你有以下問題“短跑”unicode 字符,請參閱相關貼文。
- 您沒有正確編譯文檔。正如評論中提到的,運行:
pdf乳膠文件.tex
比布克斯文件.aux
pdf乳膠文件.tex
pdf乳膠文件.tex
輸出應該如下圖所示: