I am new to Latex and I am trying to write in an Elsevier template, following the instructions though placed on the template does not give me the desired outcome.
I am using a .bib (name of file is george.bib) library with my references which was produced by mendeley (give a BiBtex file), and placed the file in the folder i have the latex components.
%% If you have bibdatabase file and want bibtex to generate the
%% bibitems, please use
%% \bibliographystyle{elsarticle-harv}
%% \bibliography{<your bibdatabase>}
\bibliographystyle{elsarticle-harv}
\bibliography{george}
%% else use the following coding to input the bibitems directly in the
%% TeX file.
\begin{thebibliography}{00}
%% \bibitem[Author(year)]{label}
%% Text of bibliographic item
%\bibitem[ ()]{}
\bibitem[ ()]{}
\end{thebibliography}
I also did a small test with the \bibitem command and it was giving me the in text citation although I would like to use my .bib saved library instead of having to insert all citation manually.
So far when i use \citet{} and the citation's name i get a ? when i compile the document.
How can i insert the .bib and then use the key words with \citet to create citation within text and a bibliography at the end?
thank you
(pdf)latex->bibtex->(pdf)latex->(pdf)latex? Also, as the template states in its comments, since you are using a .bib database, use\bibliographystyle{<...>} \bibliography{<...>}and leave out thethebibliographyenvironment; you should not be using both. – Paul Gessler Jul 05 '14 at 18:25\begin{thebibliography}and\end{thebibliography}. This is not needed if you are using a .bib database file. – Paul Gessler Jul 05 '14 at 18:36bibtex, which is needed for citation data. Change the dropdown next to Quickbuild to 'BibTeX', run once, then back to 'Quickbuild' and run twice. All should be good then.:-)– Paul Gessler Jul 05 '14 at 18:49