SublimeText / LaTeXTools

LaTeX plugin for Sublime Text
https://latextools.readthedocs.io/
2.01k stars 364 forks source link

No bib files found using \addbibfile{bibliography.bib} #1415

Open nunocalaim opened 5 years ago

nunocalaim commented 5 years ago

I tried clearing the sublime cache, tried renaming the main file.

My chapters are inside a folder

I have the magic !Tex command in the first line

my bibliography is called like this: \addbibfile{bibliography.bib} %in the preamble \printbibliography % before end document

What can I do?

ig0774 commented 5 years ago

Where is the bibliography.bib file relative to your main tex file? Is the bib file stored in the same folder as the chapter?

On 2 Jul 2019, at 17:19, nunocalaim notifications@github.com wrote:

I tried clearing the sublime cache, tried renaming the main file.

My chapters are inside a folder

I have the magic !Tex command in the first line

my bibliography is called like this: \addbibfile{bibliography.bib} %in the preamble \printbibliography % before end document

What can I do?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

nunocalaim commented 5 years ago

The file is in the folder of the main tex file and not inside the chapters folder

ig0774 notifications@github.com escreveu em ter, 2/07/2019 às 22:47 :

Where is the bibliography.bib file relative to your main tex file? Is the bib file stored in the same folder as the chapter?

On 2 Jul 2019, at 17:19, nunocalaim notifications@github.com wrote:

I tried clearing the sublime cache, tried renaming the main file.

My chapters are inside a folder

I have the magic !Tex command in the first line

my bibliography is called like this: \addbibfile{bibliography.bib} %in the preamble \printbibliography % before end document

What can I do?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/SublimeText/LaTeXTools/issues/1415?email_source=notifications&email_token=ABRHBSWNQP5JGNS7H4N2VSDP5PEF5A5CNFSM4H45W42KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZCUQXI#issuecomment-507856989, or mute the thread https://github.com/notifications/unsubscribe-auth/ABRHBSXIUQGMBNP57NSEFITP5PEF5ANCNFSM4H45W42A .

ig0774 commented 5 years ago

How are the chapter files imported into your main file? Are you using \input{}, \include{} or something else?

nunocalaim commented 5 years ago

I'm using a template which inlcudes chapters as \chapterfile{filename.tex}

where in the template.cls we have \newcommand{\chapterfile}[1]{\listgadd{\novathesis@chapter@list}{#1}}

this is the template I'm using NOVAthesis

flaviomartins commented 5 years ago

You need to use \addbibresource{bibliography.bib} directly to get autocomplete.

\addbibfile is a macro in the template that is defined as \newcommand{\addbibfile}[1]{\addbibresource{#1}}