Pedro Andres Aranda Gutierrez <[email protected]> writes:
> If I understand you correctly, you are importing the bibliography
> twice.
>
> You dont need to do that.
If I don't import the bibliography in the org file in a subdirectory,
then org-cite-insert completions don't work, so I can't add citations
to the org file in the subdirectory.
> When #+include: is used, the header in the main file will be the
> anchor for producing the LaTeX.
Yes, but the org files that are not the main file need to be aware of
the location of the bibliography file for tab-completion purposes when
using org-cite-insert. But only the main file's #+bibliography: should
be used during export.
MWE:
File main.org:
```
#+include: "subdir/part.org"
#+bibliography: ref.bib
#+print_bibliography:
```
File ref.bib:
```
@article{some-identifier,
title = {Foo}
}
```
File subdir/part.org:
```
# Need this to tab-complete some-identifier when using org-cite-insert!
#+bibliography: ../ref.bib
See foo[cite:@some-identifier].
```