Am Donnerstag, den 29.12.2016, 13:08 -0200 schrieb Rudi Gaelzer: > System: Fedora Linux 24 > LyX version: 2.2.2 > > So, I followed the instructions here: > https://wiki.lyx.org/BibTeX/Tips#secbib > in order to use chapterbib with LyX. > 1) The script bibtexall was downloaded, chmod'ed as executable, and > put in a > directory cited by PATH > 2) Went to Tools -> Preferences... -> Output -> LaTeX. In > Bibliography > Generation: Processor: Custom - Command: bibtexall > 3) Created a simple master-child structure (1 master + 2 children). > 4) In the master's preamble: \usepackage{chapterbib} > 5) Each child file has its own bibliography. > > When I process the master with pdflatex, the following BibTeX error > message > appears: > ============================================== > This is BibTeX, Version 0.99d (TeX Live 2016/dev) > Capacity: max_strings=35307, hash_size=35307, hash_prime=30011 > The top-level auxiliary file: main.aux > A level-1 auxiliary file: 2_home_rudi_temp_lyx_chapbib_c01.aux > The style file: plain.bst > A level-1 auxiliary file: 3_home_rudi_temp_lyx_chapbib_c02.aux > Illegal, another \bibstyle command---line 4 of file > 3_home_rudi_temp_lyx_chapbib_c02.aux > : \bibstyle > : {plain} > I'm skipping whatever remains of this command > Illegal, another \bibdata command---line 5 of file > 3_home_rudi_temp_lyx_chapbib_c02.aux
Yes, this is an error from bibtex's point of view: you are not supposed to enter more than one \bibliographystyle or \bibliography command, but this happens for each bibtex inset you insert. BibTeX errors were not caught in previous versions of LyX. On the command line, you get the error as well, although you probably haven't noticed it. Hitting the "Show output anyway" button should give you the PDF. Working around the error would require a proper chapterbib support in LyX. The better way would probably to switch to biblatex, which provides the same (and more) functionality. HTH Jürgen
signature.asc
Description: This is a digitally signed message part