tufte-handout 中的参考书目,带有 plainnat

tufte-handout 中的参考书目,带有 plainnat

当我尝试使用以下内容生成参考书目时收到一条错误消息。

 \documentclass{tufte-handout}

%\geometry{showframe}% for debugging purposes -- displays the margins
\usepackage{tikz}
\usepackage{amsmath}


% Set up the images/graphics package
 \usepackage{graphicx}
 \setkeys{Gin}{width=\linewidth,totalheight=\textheight,keepaspectratio}
 \graphicspath{{graphics/}}

 \title{This is a title}
 \author[Author Name]{Author Name}
 \date{}  

 \usepackage{booktabs}


  \usepackage{units}


 \usepackage{fancyvrb}
  \fvset{fontsize=\normalsize}

 % Small sections of multiple columns
 \usepackage{multicol}

 % Provides paragraphs of dummy text
 \usepackage{lipsum}

   \newcommand{\doccmd}[1]{\texttt{\textbackslash#1}}% command name -- adds backslash automatically
  \newcommand{\docopt}[1]{\ensuremath{\langle}\textrm{\textit{#1}}\ensuremath{\rangle}}% optional command argument
  \newcommand{\docarg}[1]{\textrm{\textit{#1}}}% (required) command argument
  \newenvironment{docspec}{\begin{quote}\noindent}{\end{quote}}% command specification environment
  \newcommand{\docenv}[1]{\textsf{#1}}% environment name
  \newcommand{\docpkg}[1]{\texttt{#1}}% package name
  \newcommand{\doccls}[1]{\texttt{#1}}% document class name
  \newcommand{\docclsopt}[1]{\texttt{#1}}% document class option name


  \usepackage{amssymb}
  \usepackage{marvosym}
  \usepackage{stmaryrd}

  \begin{document}

   \maketitle% 

   Text\footnote{\citet{Author1}.}

   \bibliography{plainnat}
   \bibliographystyle{test.bib}



   \end{document}

test.bib 只有两项:

 @article{Author1, 
   Author ={Author First}, 
   Title = {TitleFirst}, 
   Journal = {Journal 1}, 
   Volume = {1}, 
   Pages = {1--100},
   Year = {1999} }  

 @incollection{Author2,
   Author = {Author Second},
   Booktitle = {Title Second},
   Editor = {Editor Editor},
   Pages = {1--100},
   Publisher = {University 1},
   Title = {Articl},
   Year = {2005}}

答案1

您的代码包含以下块:

\bibliography{plainnat}
\bibliographystyle{test.bib}

我有理由相信应该

\bibliographystyle{plainnat}
\bibliography{test} % don't include the ".bib" filename extension

您写道“我收到一条错误消息...”。错误消息没有提醒您指令混淆了吗?例如,错误消息不是说 BibTeX 找不到参考书目plainnat.bib文件或test.bib.bst参考书目样式文件吗?

另一个观察:加载natbib具有所需选项的引文管理包也会很有帮助。例如,如果您需要生成 authoryear 样式的引文标注,则可以指定包选项authoryear。相反,如果您需要生成数字样式的引文标注,则应指定选项numbers

相关内容