![无法在文中引用 APA 样式参考文献](https://linux22.com/image/298064/%E6%97%A0%E6%B3%95%E5%9C%A8%E6%96%87%E4%B8%AD%E5%BC%95%E7%94%A8%20APA%20%E6%A0%B7%E5%BC%8F%E5%8F%82%E8%80%83%E6%96%87%E7%8C%AE%20.png)
我无法以 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 文件的几个有用参考;
- BibTeX 字段输入指南(哪些类型需要/支持哪些条目)
- BibTeX 条目的大小写保留(对于改变大小写的 APA 样式来说是必要的,而且无论如何都是很好的做法)。