尝试使用 TexMaker 创建参考书目并在 LaTex apa7 中使用文本引用

问题描述 投票:0回答:0

我正在尝试用 LaTex 写一篇遵循 APA7 的研究文章。 .bib 文件存在一些问题,源代码出现问题。我尝试将我的文章精简到基础知识,然后我可以围绕它进行构建。我正在使用 TexMaker。

这是我的 .tex 文件: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\documentclass[12pt, donotrepeattitle, apacite]{apa7}
\usepackage[american]{babel}

% Title and author information
\title{Blahty, Blahty, Blah, Blah}
\date{} %do not delete this, it suppresses insertion of the date
\shorttitle{Blahty, Blah}
\author{
Blahington B. Blahblah
}
\affiliation{Blah Blah}
\abstract{Abstract here. Blahty, Blahty, Blah.}

\keywords{Blah, Blahhh, Blahty, Blahblah}

\begin{document}

\maketitle

\section{Introduction}
Reference something \cite{tinto2006research}.

\section{References}
\bibliographystyle{apacite}

\bibliography{./reffile.bib}

\end{document}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

这是我的 .bib 文件:

@article{tinto2006research,
  title={Research and practice of student retention: What next?},
  author={Tinto, Vincent},
  journal={Journal of College Student Retention: Research, Theory \& Practice},
  volume={8},
  number={1},
  pages={1--19},
  year={2006},
  publisher={SAGE Publications Sage CA: Los Angeles, CA}
}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

只需一篇简单的文章即可开始。发生的情况取决于很多因素,包括我的快速构建设置和我所引用的内容。

当我按原样编译时,出现未定义的控制序列错误。当我删除参考文献时,它可以完美编译,有时有参考书目有时没有。当我用假参考替换文本引用时,

latex biblatex texmaker
© www.soinside.com 2019 - 2024. All rights reserved.