The only temporary fix I find is using absolute paths for the bibliography file references everywhere. That seems to work.
Best, /PA On Thu, 14 May 2026 at 18:49, Pedro Andres Aranda Gutierrez < [email protected]> wrote: > Hi all, > > I have traced the collection process of the bibliography and other > variables for a simple file and see that > (org-collect-keywords (keywords &optional unique directory)) > receives directory=nil for the 'main' file and > directory=(BIBLIOGRAPHY) for the included file(s): > > org-collect-keywords = kwds: (BIBLIOGRAPHY) unique: nil directory: > (BIBLIOGRAPHY) > > I'm having a hard time to parse the docstring for (org-collect-keywords). > It mixes DIRECTORY and DIRECTORIES (where does that come from ???) and I'm > confused. > I was expecting directory to hold the dirname of the file being parsed or > something of the sorts. > > > Disown > > Sorry, /PA > > On Thu, 14 May 2026 at 16:58, Pedro Andres Aranda Gutierrez < > [email protected]> wrote: > >> Hi, >> >> Yes, you are right WRT completions :( >> >> From what I see including a couple of extra debugging messages: >> >> org-cite-list-bibliography-files = f: s13.bib d: /home/paag/tmp/org-tests/ >> org-cite-list-bibliography-files = f: ../s13.bib d: >> /home/paag/tmp/org-tests/ >> >> The problem is in oc.el... The file list doesn't take into account the >> directory of the file requesting the bibliography. >> >> I'll continue looking for the source of the wrong directory... >> >> Best, /PA >> >> On Thu, 14 May 2026 at 15:08, Antero Mejr <[email protected]> wrote: >> >>> 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]. >>> ``` >>> >> >> >> -- >> Fragen sind nicht da, um beantwortet zu werden, >> Fragen sind da um gestellt zu werden >> Georg Kreisler >> >> "Sagen's Paradeiser" (ORF: Als Radiohören gefährlich war) => write BE! >> Year 2 of the New Koprocracy >> >> > > -- > Fragen sind nicht da, um beantwortet zu werden, > Fragen sind da um gestellt zu werden > Georg Kreisler > > "Sagen's Paradeiser" (ORF: Als Radiohören gefährlich war) => write BE! > Year 2 of the New Koprocracy > > -- Fragen sind nicht da, um beantwortet zu werden, Fragen sind da um gestellt zu werden Georg Kreisler "Sagen's Paradeiser" (ORF: Als Radiohören gefährlich war) => write BE! Year 2 of the New Koprocracy
