无法在文中引用 APA 样式参考文献

无法在文中引用 APA 样式参考文献

我无法以 APA 格式引用参考文献。以下是代码。有人能告诉我如何正确引用参考文献吗?在输出 pdf 中,我得到的The Authors in (?,?)不是正确The Authors in (Kumar & Zhang, 2007)

References
Kumar, A., & Zhang, D. (15–20 April 2007). Biometric Recognition
using Entropy-Based Discretization. Acoustics, Speech
and Signal Processing, 2007. ICASSP 2007. IEEE International
Conference on. 2, pp. 125–128

这是 latex 代码。请帮忙。谢谢

\documentclass[jou]{apa}
%\documentclass[man]{apa}
%\documentclass[doc]{apa}
\usepackage{amsfonts}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{graphicx}%
\usepackage{apacite}
%\usepackage{biblatex-apa}
%these next packages extend the apa class to allow for including statistical and graphic commands
\usepackage{url}   %this allows us to cite URLs in the text
\usepackage{graphicx}  %allows for graphic to float when doing jou or doc style
\usepackage{amssymb}  %use formatting tools  for math symbols
% type setting of functions, packages, and R follows a particular style
\let\proglang=\textsf
\newcommand{\R}{\proglang{R}}
\newcommand{\pkg}[1]{{\normalfont\fontseries{b}\selectfont #1}}
\newcommand{\Rfunction}[1]{{\texttt{#1}}}
\newcommand{\fun}[1]{{\texttt{#1}}}
\newcommand{\Robject}[1]{{\texttt{#1}}}
%
%
%Here is where we start the important APA stuff

\title{How to write in APA style}
\author{Latex writer}
\affiliation{Department of Psychology \\ Northwestern University}
%taken from AP's user notes
% John Vokey uses something like this

\ifapamodeman{%

\note{\begin{flushleft}

  William Revelle\\

    Department of Psychology\\

  Northwestern University\\

 Evanston, Illinois\\

    60201\\

    e-mail: [email protected]\\



   \end{flushleft}}}

{%else, i.e., in jou and doc mode

%\note{Draft of \today}
}

\abstract{Template to write in APA format
}
\rightheader{Odd-Numbered Page Header}
\leftheader{Even-Numbered Page Header}
\begin{document}
\maketitle
\section{Advantage}

 The Authors in \cite{Kumar:07}, 

\bibliographystyle{apacite}
\begin{thebibliography}{4}

\bibitem[1]{Kumar:07} Kumar, A., \& Zhang, D. (15--20 April 2007). Biometric Recognition using Entropy-Based Discretization. Acoustics, Speech and Signal Processing, 2007. ICASSP 2007. IEEE International Conference on. 2, pp. 125--128
\end{thebibliography}

\end{document}

答案1

apacite无法处理文件中包含的简单参考书目,它需要一个bib包含bibtex格式的参考文献的外部文件。原因是它需要这种条目的结构来提取作者和年份等数据。bib您的文章的条目可能看起来像

@InProceedings{Kumar:07,
  author =   {Kumar, A. and Zhang, D.},
  title =    {Biometric Recognition using Entropy-Based
                  Discretization},
  booktitle =    {Acoustics, Speech and Signal Processing,
                  2007. ICASSP 2007.  (15--20 April 2007)},
  year =     2007,
  number =   2,
  series =   {IEEE Internation Conference},
  pages =    {125--128}
}

您可以看到这些字段被清楚地标记。如果您输入这些内容,mybib.bib那么您将获得以下输出

示例输出

\documentclass[jou]{apa}
%\documentclass[man]{apa}
%\documentclass[doc]{apa}
\usepackage{amsfonts}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{graphicx}%
\usepackage{apacite}
%\usepackage{biblatex-apa}
%these next packages extend the apa class to allow for including statistical and graphic commands
\usepackage{url}   %this allows us to cite URLs in the text
\usepackage{graphicx}  %allows for graphic to float when doing jou or doc style
\usepackage{amssymb}  %use formatting tools  for math symbols
% type setting of functions, packages, and R follows a particular style
\let\proglang=\textsf
\newcommand{\R}{\proglang{R}}
\newcommand{\pkg}[1]{{\normalfont\fontseries{b}\selectfont #1}}
\newcommand{\Rfunction}[1]{{\texttt{#1}}}
\newcommand{\fun}[1]{{\texttt{#1}}}
\newcommand{\Robject}[1]{{\texttt{#1}}}
%
%
%Here is where we start the important APA stuff

\title{How to write in APA style}
\author{Latex writer}
\affiliation{Department of Psychology \\ Northwestern University}
%taken from AP's user notes
% John Vokey uses something like this

\ifapamodeman{%

\note{\begin{flushleft}

  William Revelle\\

    Department of Psychology\\

  Northwestern University\\

 Evanston, Illinois\\

    60201\\

    e-mail: [email protected]\\



   \end{flushleft}}}

{%else, i.e., in jou and doc mode

%\note{Draft of \today}
}

\abstract{Template to write in APA format
}
\rightheader{Odd-Numbered Page Header}
\leftheader{Even-Numbered Page Header}
\begin{document}
\maketitle
\section{Advantage of Symbolic Time series}

 The Authors in \cite{Kumar:07}, 

\bibliography{mybib}

\end{document}

\bibliographystyle请注意,与其他包相比,该文件的设置方式不需要命令。

对于上面的例子,生成的.bbl文件是:

\begin{thebibliography}{}

\bibitem [\protect \citeauthoryear {%
Kumar%
\ \BBA {} Zhang%
}{%
Kumar%
\ \BBA {} Zhang%
}{%
{\protect \APACyear {2007}}%
}]{%
Kumar:07}
\APACinsertmetastar {%
Kumar:07}%
\begin{APACrefauthors}%
Kumar, A.%
\BCBT {}\ \BBA {} Zhang, D.%
\end{APACrefauthors}%
\unskip\
\newblock
\APACrefYearMonthDay{2007}{}{}.
\newblock
{\BBOQ}\APACrefatitle {Biometric Recognition using Entropy-Based
  Discretization} {Biometric recognition using entropy-based
  discretization}.{\BBCQ}
\newblock
\BIn{} \APACrefbtitle {Acoustics, Speech and Signal Processing, 2007. ICASSP
  2007. (15--20 April 2007)} {Acoustics, speech and signal processing, 2007.
  icassp 2007. (15--20 april 2007)}\ (\BPGS\ 125--128).
\PrintBackRefs{\CurrentBib}

\end{thebibliography}

apacite它显示了其参考书目所期望的复杂结构以及为什么使用bibtex是推荐的根。

答案2

正如所指出的,参考文献需要采用 BibTeX 格式。对于以 APA 风格写作,您可能还会对该apa6软件包感兴趣,对于引用,需要迁移到较新的版本biblatex-apa(和 biber)。这允许完整的 APA6 引用(支持 UTF-8,减少了 .bib 中对 LaTeX 代码的需求),并且的文档biblatex-apa非常出色。文档清楚地显示了如何引用 APA 手册第 6 版(第 6 章和第 7 章)中的所有示例。以下是构建 BibTeX 文件的几个有用参考;

相关内容