Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

how to use BibTex and MakeIndex in TeXnicCenter?

861 views
Skip to first unread message

lwan

unread,
Jul 8, 2004, 1:15:07 AM7/8/04
to
Hi

In TeXnicCenter, the project has two additional options: BibTex and
MakeIndex. I don't know whether BibTex has relation with *.bib database
file. Could someone tell me their roles, and how to do them?

Thanks!

Nadine


Charles B. Cameron

unread,
Jul 8, 2004, 10:16:30 AM7/8/04
to
lwan wrote:

Under Project, Properties you place a check mark for the options you want.

At the end of this posting is a sample LaTeX source file illustrating
(briefly) how to get a bibliography and an index. Note that the sample
file specifies the location of the bibliographic database and the style
of bibliography to produce:

\bibliography{/cameron/cameron}
\bibliographystyle{ieeetran}

The bibliographic database is in the file "\cameron\cameron.bib" and
I've picked a bibliographic style used in IEEE publications.
TeXnicCenter is not itself aware of the location of the database: LaTeX
and Makeindex handle this.

On the first run through TeXnicCenter using Build Output, neither the
bibliography nor the index appears. LaTeX issues two warnings stating
that the citation is undefined and that there remain unresolved references.

On the second run, the References and Index both appear, along with
warnings that the citation is still undefined, some labels are still
undefined, and another run may be necessary to resolve the
cross-references. The reference number does not yet appear correctly
where the reference is cited, a question mark appearing in its place.

On the third run, the reference is fully resolved, which means the
reference number appears in the text where the reference is cited.

I hope this helps.

Charles B. Cameron

************************************************************

\documentclass[12pt]{article}
\usepackage{makeidx}
\title{Sample Title}
\author{Charles B. Cameron}
\date{}
\makeindex
\begin{document}
\maketitle

If this were a paragraph on fish\index{fish} and on sharks\index{shark}
in particular, then a reference to it would appear in the index. Here
is a reference to a document by Welford\cite{Welford86}.
\newpage
Here is another page with a reference to a fish\index{fish} as well as
to a type of shark, the mako\index{shark!mako}.

\bibliography{/cameron/cameron}
%\bibliographystyle{plain}
\bibliographystyle{ieeetran}

\printindex
\end{document}


************************************************************

0 new messages