natbib의 페이지 범위 사이에 대시가 없습니다.

natbib의 페이지 범위 사이에 대시가 없습니다.

석사 학위 논문에서 제가 참조하는 기사와 책에는 페이지 번호 사이에 "-" 기호가 없어서 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이 제안한 것처럼 문제가 있습니다."대시"유니코드 문자, 참조관련 게시물.
  • 문서를 올바르게 컴파일하지 않았습니다. 의견에서 언급했듯이 다음을 실행하십시오.

pdf라텍스파일.텍스

턱텍스파일.aux

pdf라텍스파일.텍스

pdf라텍스파일.텍스

그리고 출력은 다음과 같아야 합니다.

최종 출력

관련 정보