Oscar Garcia Poblacion wrote:
>
> >       No. The ".bib" is in the same dir that "master.lyx". I exported
> >"master.lyx" to latex and then I compiled it with "latex master.lyx". If
I
> >remove the [gather] option it seems to work, but all chapters gets the
same
> >bibliography. Is'nt there any way to include a bibliography for each
> chapter
> >directly from lyx?

- open the master doc and run dvi-view, so that all sub-docs are
  loaded and than available through document-menu.
- input in _each_ sub-doc at the end
  insert->lists&tocs->bibtex reference with the bibfile
  and bibstyle (plain is default)
  (you can copy this inset and paste it in the other docs)
- run dvi-view on this subdoc
  the bibliography should be at the end
- at last the same for the main-doc

with the gather option you'll get a bib for each chapter
at the end of the main-doc. without gather at the end of
each chapter.

IMPORTANT: lyx creates for each subdoc a temp-dir, so latex
doesn't finds the chapterbibs. therefore you have to switch
off the use of a tempdir:
edit->preferences->input->path->tempdir

Herbert


        Hi Again.

        I have followed all these steps and It seems I am getting closer :) but I
am still having a few problems:

        1) Following these steps I get a bibliography on each chapter. OK! but it
includes al cites from the chapter and all the previous (it accumulates
references).

        2) If I add in the preamble \usepackage[sectionbib]{chapterbib} then all my
cites go [?] but bibliography gets generated correctly and only for that
chapter, that is what I want. The parameter [sectionbib] works fine. I have
tried many styles, but with the same result [?]. Any idea of how to solve
it?

        3) When all subdocuments contains "Bibtex generated references" and you
open the "Add cite" and you get the same entry duplicated as many times as
documents that contains that entry. Well, not a big deal anyway.

        1) My .bib file contains "@preamble {"\newcommand{\noopshort}[1]} ....". I
don't know what is this "preamble" for. I just copied it from .bib template
file included with bibtex distribution. If I dont remove this, when my
document have many "BibTex generated references" it complains because
\newcommand... is already defined. Well, if doesn't seem to be a problem if
I remove this preamble.


        Thanks a lot for your help.

                        Oscar




Reply via email to