BibTeX, biblatex and biberReferences in Text replaced by Question Mark

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
amiruw
Posts: 7
Joined: Wed Mar 17, 2010 8:59 pm

References in Text replaced by Question Mark

Post by amiruw »

Hello,

I have a bib file (References.bib) with elsarticle-harv style:

Code: Select all

\bibliographystyle{elsarticle-harv}
\bibliography{References}
With elsarticle document class, that is:

Code: Select all

\documentclass[authoryear,review,12pt]{elsarticle}
all the references in the body of my paper is nicely shown but with "report" document class, that is:

Code: Select all

\documentclass[12pt]{report}
I run into many problems. Thus, some of the references are shown properly but for some of them I just see "?". For example, the following reference is shown in the body of the document:

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},
}
(however, I don't get space between "T." and "M." or "A." and "P." in my reference list)

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},
 }
I noticed that the problem gets down to the author's name; for example, if I replace "FamilyName3, A. B." with only one letter "G", it will be shown in the body of the document but with a little bit more sophisticated name, I just get "?". I spent hours on this and tried tons of approaches but all ended with failure. I am just wondering if there is a way out of this problem. Your help is greatly appreciated. I also included the tex file I run.

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}
Last edited by cgnieder on Sun May 26, 2013 11:30 am, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
amiruw
Posts: 7
Joined: Wed Mar 17, 2010 8:59 pm

Re: References in Text replaced by Question Mark

Post by amiruw »

I just want to let those who may run into similar problem know that the problem gets fixed by replacing the bibliography style from "elsarticle-harv" to "elsarticle-num-names". The citations in the body of the document are the same; however, the format of the references in the end of the document is somewhat different. For example, based on "elsarticle-harv" we get:

Family Name, First Name, Year. Title Vol (Number), Pages.

While "elsarticle-num-names" results in:

First Name, Family Name, Title Vol (Number), (Year) Pages.

How to make documentclass "report" work with "elsarticle-harv" style is still an open question, and I appreciate those who find a solution share it here.

Thanks,

amiruw
Post Reply