Ans. B1: Difference between revisions

From STMDocs
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 27: Line 27:
   \end{thebibliography}
   \end{thebibliography}
</geshi>
</geshi>
Do not forget to add the documentclass option <code>authoryear</code>.

Latest revision as of 18:24, 9 June 2009

<Back

If you have a bibdatabase file, please follow the coding which is given below: <geshi lang="latex">

 \bibliographystyle{elsarticle-harv}
 \bibliography{your bibdatabase file}

</geshi> For example, if you have a bibdatabase file called mybib.bib, your code will look like: <geshi lang="latex">

 \bibliographystyle{elsarticle-harv}
 \bibliography{mybib}

</geshi>

If you do not have a bibdatabase file and you are inputting the bibitems into the TeX file directly, the coding should look like: <geshi lang="latex">

 \begin{thebibliography}{00}
   \bibitem[Author(year)]{label} Author, A., .....
   ......
   ......
 \end{thebibliography}

</geshi> For example: <geshi lang="latex">

 \begin{thebibliography]{00}
   \bibitem[{Allen and Brooks(1991)}]{Allen1991}
   S.~W. Allen and L.~R. Brooks, Specializing the operation of an explicit rule, Journal of Experimental Psychology: General, 120 (1991) 3--19. 
 \end{thebibliography}

</geshi>

Do not forget to add the documentclass option authoryear.