I have a bib file (
References.bib
) with elsarticle-harv
style:Code: Select all
\bibliographystyle{elsarticle-harv}
\bibliography{References}
elsarticle
document class, that is:Code: Select all
\documentclass[authoryear,review,12pt]{elsarticle}
report
" document class, that is:Code: Select all
\documentclass[12pt]{report}
Code: Select all
@BOOK{lable1,
title = {book name A},
publisher = {AAA},
year = {1991},
author = {FamilyName1, T. M. and FamilyName2, A. P. and FamilyName3, D. S. and others},
}
but the following is just cited with "?":
Code: Select all
@article{label2,
title={Paper name},
author={FamilyName3, A. B.},
journal={Journal name B},
volume={23},
number={12},
pages={76--79},
year={1990},
}
Many thanks in advance.
Code: Select all
\documentclass[12pt]{report}
\listfiles
\usepackage[dvips]{graphicx}
\usepackage{graphics}
\usepackage{epsfig}
\usepackage{subfigure}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amsfonts}
\usepackage{amsbsy}
\usepackage{natbib}
\usepackage[dvips=true,bookmarks=true,breaklinks=true]{hyperref}
\usepackage{cite}
\usepackage{multirow}
\usepackage{setspace} \doublespacing
\usepackage{latexsym}
\usepackage{xtab}
\usepackage[ansinew]{inputenc}
\usepackage{srcltx}
\usepackage{fancyhdr}
\usepackage[hang,small,bf]{caption} \setlength{\captionmargin}{30pt}
\usepackage{longtable}
\usepackage{color}
\usepackage{makeidx}
\usepackage{array}
\usepackage{url}
\usepackage{breakurl}
\allowdisplaybreaks[1]
\usepackage[T1]{wasysym}
\makeindex
% Margins and text width
.
.
.
\setlength{\parskip}{\medskipamount}
\renewcommand{\baselinestretch}{1.3}
\pagestyle{fancy}
\fancyhead{}
\fancyhead[L]{\textsc \leftmark}
\fancyhead[R]{\thepage}
\fancyfoot{}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
\renewcommand{\chaptermark}[1]{%
\markboth{\chaptername\ \thechapter.\ #1}{}}
\newtheorem{theorem}{Theorem}[section]
\newtheorem{lemma}[theorem]{Lemma}
\newtheorem{proposition}[theorem]{Proposition}
\newtheorem{corollary}[theorem]{Corollary}
\newenvironment{proof}[1][Proof]{\begin{trivlist}
\item[\hskip \labelsep {\bfseries #1}]}{\end{trivlist}}
\newenvironment{definition}[1][Definition]{\begin{trivlist}
\item[\hskip \labelsep {\bfseries #1}]}{\end{trivlist}}
\newenvironment{example}[1][Example]{\begin{trivlist}
\item[\hskip \labelsep {\bfseries #1}]}{\end{trivlist}}
\newenvironment{remark}[1][Remark]{\begin{trivlist}
\item[\hskip \labelsep {\bfseries #1}]}{\end{trivlist}}
\newcommand{\qed}{\nobreak \ifvmode \relax \else
\ifdim\lastskip<1.5em \hskip-\lastskip
\hskip1.5em plus0em minus0.5em \fi \nobreak
\vrule height0.75em width0.5em depth0.25em\fi}
\\renewcommand{\topfraction}{0.9}
\renewcommand{\bottomfraction}{0.8}
\setcounter{topnumber}{2}
\setcounter{bottomnumber}{2}
\setcounter{totalnumber}{2}
\setcounter{dbltopnumber}{2}
\setcounter{secnumdepth}{5}
\renewcommand{\dbltopfraction}{0.9}
\renewcommand{\textfraction}{0.07}
\renewcommand{\floatpagefraction}{0.7}
\renewcommand{\dblfloatpagefraction}{0.7}
% I also added the following based on a suggested solution I found on the web but it didn't fix the problem:
\newcommand\bibsection{%
\section*{\bibname\markright{\MakeUppercase{\bibname}}}}
\usepackage{rotating}
\begin{document}
\include{Chap1}
\include{Chap2}
\include{Chap3}
\appendix
\renewcommand{\chaptermark}[1]{%
\markboth{Appendix\ \thechapter.%
\ #1}{}}
\bibliographystyle{elsarticle-harv}
\bibliography{References}
\end{document}