我曾经为我的研究论文使用过 bib 样式“Vancouver”,它编译得非常好。但对于期刊,我必须在文本中包含名称和年份。我将样式更改为类似:\bibliographystyle{model2-names.bst}\biboptions{authoryear}。然后出现了“未定义引用”错误。请帮我找出问题所在,或者提示一下其他样式,这样文本中就会包含名称和年份(而不是参考编号)。提前谢谢您。文本开头的代码如下:
\documentclass[review]{elsarticle}
\usepackage{lineno,hyperref}
\modulolinenumbers[5]
\usepackage{linguex}
\usepackage{times,graphicx,verbatim}
\usepackage[table]{xcolor}
\usepackage{mathptmx}
\usepackage{multirow}
\usepackage{makeidx} % allows index generation
\usepackage{graphicx} % standard LaTeX graphics tool
% when including figure files
\usepackage{multicol} % used for the two-column index
\usepackage[bottom]{footmisc}% places footnotes at page bottom
% etc.
% see the list of further useful packages
% in the Reference Guide, Sects. 2.3, 3.1-3.3
%\usepackage{polski}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
%\usepackage[round]{natbib}
%\usepackage{graphicx}
%\usepackage{verbatim} % comment !!!!
%\usepackage[cp1250]{inputenc} % kodowanie windows
%\usepackage{amsmath,amsfonts}
%\usepackage{latexsym,amssymb}
%\usepackage{amsmath,amsfonts}
%\usepackage{multirow}
%\usepackage{multicolumn}
%\usepackage[table,xcdraw]{xcolor}
\usepackage{MnSymbol}
\usepackage{tikz}
\usepackage{geometry}
\usepackage{latexsym}
\usepackage{mathtools}
\usepackage{linguex}
\definecolor{light-gray}{gray}{0.90}
\usepackage[framemethod=TikZ]{mdframed}
\mdfdefinestyle{ex}{roundcorner=6pt,linecolor=light-gray,innermargin=1cm,outermargin=1cm,backgroundcolor=light-gray}
\mdfdefinestyle{mp}{roundcorner=4pt,linecolor=light-gray,linewidth=1.5pt}
\newcommand{\margnote}[1]{\hbadness=11111\marginpar{\begin{scriptsize}\textit{#1}\end{scriptsize}}} % margin notes -- zeby widziec notatki
%\newcommand{\margnote}[1]{\marginpar{\begin{scriptsize}\textit{}\end{scriptsize}}} % margin notes -- zeby nie bylo widac notatek
\newcommand{\N}{\mathbb{N}} % the set of all natural numbers
\newcommand{\CA}{\vdash\hspace{-0.4em}\raisebox{-0.01ex}{$\circ$}}
\makeindex % used for the subject index
% please use the style svind.ist with
% your makeindex program
\bibliographystyle{model2-names.bst}\biboptions{authoryear}
\begin{document}