On Tue, Jul 03, 2001 at 02:24:40AM +0200, Oscar Garcia Poblacion wrote:
>
> Do I need to use package chapterbib? What's the diference between \input
> and \include?
>
Chapterbib is not a good package.
You can use bibunits/bibtopic instead.
For example, put the following lines in the preamble of the master document
\usepackage[dot,sectcntreset]{bibtopic}
\let\oldinclude=\include
\renewcommand{\include}[1]{\begin{btUnit}
\oldinclude{#1}
\begin{btSect}{sbh}\section{\bibname}\btPrintCited\end{btSect}
\end{btUnit}}
You also need to either
- Remove the #if 0 / #endif (lines 355/364) in LaTeX.C (in lyx-1.1.6fix2)
and recompile lyx
or
- Save the following lines to ~/bin/bibtex, and make sure that
~/bin/ appears in your path before /usr/bin/
#!/bin/sh
/usr/bin/bibtex $1 # -- starts bibtex <file.aux>
NEXT=1
FILE=$1.$NEXT
while [ -a $FILE.aux ]; do
/usr/bin/bibtex $FILE # -- starts bibtex <fileNR.aux>
NEXT=$(($NEXT+1))
FILE=$1.$NEXT;
done
PS: With this method you don't need to disable the temp dir.