如何使用 APA 格式引用网站

如何使用 APA 格式引用网站

我有这个 tex 文件,我想在 apastyle 中引用,

 \documentclass[a4paper,10pt]{article}
 \usepackage[utf8]{inputenc}
\usepackage{apacite}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{dcolumn} %% tables cols aligned at decimal point
\usepackage{setspace}
\usepackage{array}
\usepackage{graphicx}
\setstretch{1.2}
\renewcommand{\arraystretch}{1.2}
\usepackage{booktabs}
\usepackage{gensymb}
\usepackage{multirow}
\usepackage{psfrag}
%\usepackage{natbib}
%\usepackage{url}
%\bibliographystyle{apalike}
%\nocite{*} 
%opening
\title{Drug Business}
\author{Andre Resius}

\begin{document}

\maketitle



\section{Introduction}


by drugs abuse\cite{dandm}. 



\section{Conclusions}


\bibliographystyle{apacite}
\bibliography{mybib.bib}

\end{document}

我想引用一个网站,但遇到了同样的错误:

This is BibTeX, Version 0.99d (TeX Live 2015/Debian)
The top-level auxiliary file: paper.aux
I couldn't open style file apacite.bst
---line 3 of file paper.aux
: \bibstyle{apacite
:                  }
I'm skipping whatever remains of this command
I found no style file---while reading file paper.aux
(There were 2 error messages)

这也是 bib 文件参考

@Misc{dandm,
title = {Deaths and Mortality},
howpublished =  {\url{https://www.cdc.gov/nchs/data/nvsr/nvsr65/nvsr65\_04.pdf}},
note = {Accessed: 2014-06-30}
}

我手动安装了 apacite 包,但仍然无法工作。希望有人能帮我解决这个问题。

谢谢

答案1

使用方法如下biblatex

 \documentclass[a4paper,10pt]{article}

 \usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}

\usepackage{setspace}
\setstretch{1.2}
\renewcommand{\arraystretch}{1.2}
\usepackage{url}
\title{Drug Business}
\author{Andre Resius}
\date{}
\usepackage[style=apa, backend=biber]{biblatex}

\DeclareLanguageMapping{english}{english-apa}

\addbibresource{apabib.bib}

\begin{document}

\maketitle

\section{Introduction}

by drugs abuse \cite{dandm}.

\section{Conclusions}

\printbibliography

\end{document} 

注意我将URL 引用的类型更改为@online,并带有专用字段titleurlurldate

% Encoding: UTF-8
@Online{dandm,
  title  = {Deaths and Mortality},
  url    = {https://www.cdc.gov/nchs/data/nvsr/nvsr65/nvsr65\_04.pdf},
  urldate  = {2014-06-30}
}

在此处输入图片描述

相关内容