🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.text.tex
Article #201

Re: per-chapter bibliography

#201
From: Joerg Heitkoetter
Date: Tue, 03 Nov 1992 09:11
121 lines
4091 bytes
In article <1992Nov3.001811.7414@sserve.cc.adfa.oz.au>,
Christopher.Vance@adfa.oz.au (Christopher JS Vance) writes:
|> I have been asked to try to keep several different bibliographies
|> within my thesis draft, one bibliography per chapter, and a separate
|> overall one.  I'm using LaTeX, BiBTeX, and \include.
Hmm, switch to \input and it works (see below).

|> How easy is this to do?  If not easy, I can probably escape this.
Why running away? Help is at your fingertips ;-)

|> Otherwise I may have to separate the drafts into separate documents.
|> (I'm currently using one main file for the entire thing and would
|> prefer not to have to jiggle page numbers manually between chapters.)
You don't have to jiggle page numbers, even when using "distributed
documents" which are quite easy to handle, if you use a management tool,
like good ol' MAKE.

0. define your local stuff
LATEX		= latex
BIBTEX		= bibtex
MAKEINDEX	= makeindex

1. add the following implicit rules to your Makefile:
#
#       implicit rules:
#
.SUFFIXES:      .tex .dvi  .bib .bbl  .idx .ind
.tex.dvi:
                $(LATEX)        $*
.tex.aux:
                $(LATEX)        $*
.aux.bbl:
                touch           $*.bbl
#               $(BIBTEX)       $*
.bib.bbl:
                touch           $*.aux
                touch           $*.bbl
#               $(BIBTEX)       $*
.idx.ind:
                $(MAKEINDEX)    $*

2. and the following target:
thesis.dvi: $(PARTS)
	$(LATEX) thesis
with
PARTS	= thesis.tex \
	chapter-one.tex chapter-one.bib \
	chapter-two.tex chapter-two.bib \
	[..]

The idea is of course to have serveral files that build the whole
document, just like the following:

		|--- chapter-one.[tex|bib]
THESIS.TEX -----|--- chapter-two.[tex|bib]
		|--- ...

FILE `thesis.tex' ***

\documentstyle[]{}
\begin{document}

\bibliographysection{\subsection{References concerning...}}
\bibliographyfile{chapter-one}			% chapter-one.bbl
\input{chapter-one}				% chapter-one.tex

\bibliographysection{\subsection{References concerning...}}
\bibliographyfile{chapter-two}			% chapter-two.bbl
\input{chapter-two}				% chapter-two.tex

[etc.]
\end{document}
[EOF]


FILE `chapter-one.tex' ***

\documentstyle[]{}

\title{ Master's Thesis of <your name here>}
\author{ <your name here>}
\date{  \today  }

\begin{document}
        \maketitle

        \nocite{*}

        \bibliography{chapter-one}
        \bibliographystyle{delphi/styles/plain}

\end{document}
[EOF]
All other chapter files should look the same. Each of them has

FILE `chapter-one.bib' ***
<your reference of chapter one>
[EOF]

This structure enables you to print chapters of your work (e.g.
your Dissertation) without running TeX on the whole document ;-)

Please stay tuned for "The Dungeons of BiBTeX revisited", an article
I will post in the near future, that (hopefully) covers most of the
currently floating BiBTeX questions. But as Newton once said:
"If I've seen farther it was, because I was standing on the shoulders
of giants" I'd like to hear from BiBTeX giants to proof-read it
before posting to the net. (Send me your email address, and look what
happens ;-)

Happy TeXing!

	-joke

--
Joerg Heitkoetter
Systems Analysis Group
University of Dortmund, Germany
(joke@ls11.informatik.uni-dortmund.de).

*** "What's 'ey scream'?" "Hmmm... sounds like GUMS 'N' DOSES" ***
Technical Details
Message-ID: <1d5focINN56t@fbi-news.Informatik.Uni-Dortmund.DE>
Path: arc1-ca.pugleaf.net!sparky!uunet!europa.asd.contel.com!emory!sol.ctr.columbia.edu!spool.mu.edu!agate!doc.ic.ac.uk!uknet!mcsun!Germany.EU.net!Informatik.Uni-Dortmund.DE!lucky!heitkoet
References: <1992Nov3.001811.7414@sserve.cc.adfa.oz.au>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!europa.asd.contel.com!emory!sol.ctr.columbia.edu!spool.mu.edu!agate!doc.ic.ac.uk!uknet!mcsun!Germany.EU.net!Informatik.Uni-Dortmund.DE!lucky!heitkoet
From: heitkoet@lucky.informatik.uni-dortmund.de (Joerg Heitkoetter)
Newsgroups: comp.text.tex
Subject: Re: per-chapter bibliography
Keywords: LaTex BiBTeX
Message-ID: <1d5focINN56t@fbi-news.Informatik.Uni-Dortmund.DE>
Date: 3 Nov 92 09:11:40 GMT
References: <1992Nov3.001811.7414@sserve.cc.adfa.oz.au>
Sender: heitkoet@lucky (Joerg Heitkoetter)
Organization: CS Department, Dortmund University, Germany
Lines: 121
NNTP-Posting-Host: lucky