% !TEX TS-program = pdflatex
% !TEX encoding = UTF-8 Unicode
% This is a simple template for a LaTeX document using the "article" class.
% See "book", "report", "letter" for other types of document.
\documentclass[11pt]{article} % use larger type; default would be 10pt
\usepackage{setspace}
\usepackage{apacite}
\usepackage[utf8]{inputenc} % set input encoding (not needed with XeLaTeX)
\usepackage{amsmath}% Added by Palm for writing Math symbols
\usepackage{graphicx}
\graphicspath{ {./images/} }
\usepackage{multirow}
\usepackage{array}
%%% Examples of Article customizations
% These packages are optional, depending whether you want the features they provide.
% See the LaTeX Companion or other references for full information.
%%% PAGE DIMENSIONS
\usepackage{geometry} % to change the page dimensions
\geometry{a4paper} % or letterpaper (US) or a5paper or....
% \geometry{margin=2in} % for example, change the margins to 2 inches all round
% \geometry{landscape} % set up the page for landscape
% read geometry.pdf for detailed page layout information
\usepackage{graphicx} % support the \includegraphics command and options
% \usepackage[parfill]{parskip} % Activate to begin paragraphs with an empty line rather than an indent
%%% PACKAGES
\usepackage{booktabs} % for much better looking tables
\usepackage{array} % for better arrays (eg matrices) in maths
\usepackage{paralist} % very flexible & customisable lists (eg. enumerate/itemize, etc.)
\usepackage{verbatim} % adds environment for commenting out blocks of text & for better verbatim
\usepackage{subfig} % make it possible to include more than one captioned figure/table in a single float
% These packages are all incorporated in the memoir class to one degree or another...
%%% HEADERS & FOOTERS
\usepackage{fancyhdr} % This should be set AFTER setting up the page geometry
\pagestyle{fancy} % options: empty , plain , fancy
\renewcommand{\headrulewidth}{0pt} % customise the layout...
\lhead{}\chead{}\rhead{}
\lfoot{}\cfoot{\thepage}\rfoot{}
%%% SECTION TITLE APPEARANCE
\usepackage{sectsty}
\allsectionsfont{\sffamily\mdseries\upshape} % (See the fntguide.pdf for font help)
% (This matches ConTeXt defaults)
%%% ToC (table of contents) APPEARANCE
\usepackage[numbers,sort&compress]{natbib}
\usepackage{filecontents}
\usepackage[nottoc,notlof,notlot]{tocbibind} % Put the bibliography in the ToC
\usepackage[titles,subfigure]{tocloft} % Alter the style of the Table of Contents
\renewcommand{\cftsecfont}{\rmfamily\mdseries\upshape}
\renewcommand{\cftsecpagefont}{\rmfamily\mdseries\upshape} % No bold!
\providecommand{\keywords}[1]
{
\small
\textbf{\textit{Keywords:}} #1
}
\usepackage{authblk}
\usepackage{hyperref}
%%% END Article customizations
%%% The "real" document content comes below...
\title{...
\bibliographystyle{unsrt}
\bibliography{References}
\end{document}
答案1
您同时加载了apacite
和natbib
包(然后使用了一种在编写时并未考虑到这两个包的样式)。这两个包是不兼容的(至少在它们被使用时,如您的序言中所述)——必须删除其中一个。
如果你想要 APA 第 6 版引用,
- 任何一个仅加载
\usepackage{apacite}
、删除\usepackage[numbers,sort&compress]{natbib}
、替换\bibliographystyle{unsrt}
为\bibliographystyle{apacite}
以及全部替换\citep
为\cite
和替换\citet
为\citeA
- 或者加载
\usepackage[natbibapa]{apacite}
以获得natbib
模式,删除\usepackage[numbers,sort&compress]{natbib}
并替换\bibliographystyle{unsrt}
为\bibliographystyle{apacite}
。
- 任何一个仅加载
如果您不想要 APA 第 6 版引用而更喜欢数字引用,请删除并考虑用其对应部分
\usepackage{apacite}
替换。\bibliographystyle{unsrt}
natbib
\bibliographystyle{unsrtnat}