Compiling child document with bibliography

Jürgen Spitzmüller spitz at lyx.org
Mon Feb 14 06:06:44 UTC 2022


Am Sonntag, dem 13.02.2022 um 15:24 +0000 schrieb tush via lyx-users:
> I am writing a book where each chapter is typed in a child document.
> The book contains citation from a bib file.
> 
> I am following the instructions here
> (https://wiki.lyx.org/FAQ/Multidoc#multipart-bib) and am pretty sure
> I created my branch correctly.
> 
> I created a master file, inserted the bib database into it, created a
> branch, created a child document, activated the branch in this child
> doc, and also deativated the branch in the master doc.
> 
> However, I now compile the first chapter and it seems that no
> information regarding the bib database is included in it. When I
> export this child document to a tex file, nothing related to biblatex
> is in the preamble.
> 
> How can I print the cited work when compiling only this chapter?

I think you misunderstood the advice. You should put the bibliography
inset into the branch, not the citation reference. Also, if the child
is supposed to be compiled standalone, it needs to have the proper
bibliography settings as well (biblatex in your case). See attached
example.

Note that an alternative approach is to use Document > Settings > Child
Documents (from the master) and to include only the desired child for
the output (this also prints the master's content, though).

HTH,
Jürgen

-------------- next part --------------
A non-text attachment was scrubbed...
Name: chapter01.lyx
Type: application/x-lyx
Size: 2599 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-users/attachments/20220214/4834915e/attachment-0001.lyx>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: This is a digitally signed message part
URL: <http://lists.lyx.org/pipermail/lyx-users/attachments/20220214/4834915e/attachment-0001.asc>


More information about the lyx-users mailing list