On Thu, Feb 06, 2003 at 07:18:14PM -0500, Praedor Tempus Atrebates wrote: > > I have 4 chapters and need 4 independent reference lists for these chapters. > > I am using the chapterbib style and add the bibtex reference at the end of > each chapter. I enter the names of the independent bibtex references as > appropriate. When I preview the document, it APPEARS that my second chapter > is trying to use the bibliography file from the first chapter rather than its > own chapter. I get a lot of question marks with a few reference numbers here > and there with high numbers (like 180, 182) when I should be getting a reset > numbering system for each chapter. > > What is the trick here? I have lyx 1.2.0 (I cannot at this time upgrade) on > Mandrake 8.2. Can anyone help me out here?
Try using bibtopic: see the example file. Note that the bibtex inset must appear before the first \putbib.
#LyX 1.2 created this file. For more info see http://www.lyx.org/ \lyxformat 220 \textclass book \begin_preamble \usepackage[dot]{bibtopic} \newif\ifopenbib \openbibfalse \let\oldchapter=\chapter \renewcommand{\chapter}{% \ifopenbib\end{btUnit}\fi% \openbibtrue% \begin{btUnit}% \oldchapter} \AtEndDocument{\ifopenbib\end{btUnit}\fi} \newcommand{\putbib}{% \begin{btSect}{\thebibfiles} \section{\bibname} \btPrintCited \end{btSect}} \renewcommand{\bibliography}[1]{\def\thebibfiles{#1}} \end_preamble \language english \inputencoding auto \fontscheme default \graphics default \paperfontsize default \spacing single \papersize Default \paperpackage a4 \use_geometry 0 \use_amsmath 0 \use_natbib 0 \use_numerical_citations 0 \paperorientation portrait \secnumdepth 2 \tocdepth 2 \paragraph_separation indent \defskip medskip \quotes_language english \quotes_times 2 \papercolumns 1 \papersides 2 \paperpagestyle default \layout Standard \begin_inset LatexCommand \BibTeX[plain]{test} \end_inset \layout Chapter Test \layout Standard \begin_inset LatexCommand \cite{anon-67} \end_inset \layout Standard \begin_inset ERT status Collapsed \layout Standard \backslash putbib \end_inset \layout Chapter Test \layout Standard \begin_inset LatexCommand \cite{aslin-49} \end_inset \layout Standard \begin_inset ERT status Collapsed \layout Standard \backslash putbib \end_inset \the_end
