修士論文で参照している記事や書籍のページ番号の間に「-」記号がないため、PDF ファイルでは「20-22」ではなく「20 22」になります。私はすべての参考文献とapalike
参考文献スタイルに bibtex データベースを使用しています。
私のプロジェクトは 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
あなたのファイルは私の環境では正常に動作しているので、2 つの説明が考えられます:
- @barbara beetonが示唆したように、あなたは問題を抱えています"ダッシュ"ユニコード文字については、関連記事。
- ドキュメントを正しくコンパイルしていません。コメントに記載されているように、次を実行してください。
pdfラテックスファイル.tex
ビブテックスファイル.aux
pdfラテックスファイル.tex
pdfラテックスファイル.tex
出力は次のようになります。