%\documentclass[12pt]{article}
\documentclass{article}
\usepackage{graphicx}
\usepackage{color}
\usepackage{html}
\usepackage{natbib} % author-year citation style
\bibpunct{(}{)}{;}{a}{,}{,}%Selecting citation punctuation
\bibliographystyle{plainnat}
\textheight 9in \textwidth 6.5in \oddsidemargin 0pt
\evensidemargin 0pt \topmargin 0pt

\title{{\bf Latex}
%\thanks{Subsidized by}
}
\author{Guiyuan Lei\\guiyuan@ifm.liu.se}
\date{2004-May-16}

\begin{document}
\maketitle \abstract{In this page, I will describe how to use
\LaTeX{}.}

\section{Why use \LaTeX{}?}
\LaTeX{} \citep{Lamport_1994} is a powerful tool for creating
scientific papers, you can generate paper in pdf files and slides
from \LaTeX{}. You can also get html files from .tex file. This
page is created by latex2html tool. To start use \LaTeX{} , please
refer Tobias Oetiker {\it et al.} \htmladdnormallink{The Not So
Short Introduction to
\LaTeX{}2e}{http://people.ee.ethz.ch/~oetiker/lshort/lshort.pdf} ,
Andrew Roberts's \htmladdnormallink{Getting to grips with
\LaTeX{}}{http://www.comp.leeds.ac.uk/andyr/misc/latex/index.html}
and Tim Love's \htmladdnormallink{Text Processing using \LaTeX{}
}{http://www-h.eng.cam.ac.uk/help/tpl/textprocessing/LaTeX_intro.html}.
\section{Bibtex} It is time-consuming task to manage references,
especially when you use some common references in different papers
with different bibliography appearances. Bibtex is a good choice
to create your bibliography. For general information on Bibtex,
please see \htmladdnormallink{Getting to Grips with \LaTeX{} -
Bibliography
Management}{http://www.comp.leeds.ac.uk/andyr/misc/latex/latextutorial3.html}
and
\htmladdnormallink{Bibliographies with \LaTeX{}}{http://www-h.eng.cam.ac.uk/help/tpl/textprocessing/bibliographies.html}.\\

What I want to emphases here is that the authors in .bib file
should be connected by "and", not by comma. If you use comma
between authors, the order of authors will be wrong. For example,
use "Michel Goossens and Frank Mittelbach and Alexander Samarin"
in the field of author. If you use "Michel Goossens, Frank
Mittelbach and Alexander Samarin", the first author in the
biobliography is not Michel Goossens any
more. \\

Different journals demand difference reference styles. If the
journal has specific citation style, like author-year style, it is
good to use \htmladdnormallink{natbib
package}{http://www.cmis.csiro.au/Graham.Williams/TeX/docs/natbib.pdf
}. Sometimes you need to use \htmladdnormallink{CUSTOM-BIB
Package}{http://www.ctan.org/tex-archive/macros/latex/contrib/custom-bib/README.413}
to generate specific bibliography styles, i.e., your own .bst
files. \\

The following steps are for how to generate your own .bst for
natbib and use it in WinEdt.
\begin{enumerate}
\item Download package
\htmladdnormallink{custom-bib}{http://www.ctan.org/tex-archive/help/Catalogue/entries/custom-bib.html?preferredCTAN=ftp.tex.ac.uk&action=/tex-archive/macros/latex/contrib/supported/custom-bib/}
 and generate your own .bst file. For example, I generate
 jcbnat.bst for the Journal of Computational Biology. Put the file
 jcbnat.bst in the directory ..\verb|\|texmf\verb|\|bibtex\verb|\|bst\verb|\|netbib\verb|\|
 \item Your should update the MiKtex in WinEdt so that the compiler can find this
 file. Go to the menu of "Accessories", select "MiKTex options",
 then in the coming up dialog, select tag "Root" and select the path
 "..\verb|\|texmf" and click the button "Refresh FNDB", finally click
 "Apply" and "Ok" to finish the update.
\item Use the following sentence in the preamble of .tex file.\\
\verb|\|usepackage\{natbib\} \% author-year citation style\\
\verb|\|bibpunct\{(\}\{)\}\{;\}\{a\}\{,\}\{,\}\%Selecting
citation punctuation \\
\verb|\|bibliographystyle\{jcbnat\}
\item Use \verb|\|citep\{\}
when you cite reference.
\end{enumerate}

Now you will get the author-year citation style and the
corresponding bibliography style which is defined in file
jcbnat.bst.\\

Example: \htmladdnormallink{Latex.tex}{../../../doc/Latex.tex},
\htmladdnormallink{bibtex.bib}{../../../doc/bibtex.bib},
\htmladdnormallink{jcbnat.bst}{../../../doc/jcbnat.bst}.
\section{Latex2html}


%\section*{Acknowledgements}

\addcontentsline{toc}{chapter}{\numberline{}Bibliography}
\bibliography{bibtex}
\end{document}
