apcshields / autocomplete-bibtex

Adds Pandoc-style BibTeX citation key autocompletion to autocomplete+ for Atom.
MIT License
44 stars 17 forks source link

Autocomplete-Bibtex isn't working #69

Open ElHong opened 7 years ago

ElHong commented 7 years ago

Hey guys, so I was able to install the package after agreeing to Xcode licensing using terminal command. I also edited config.cson and added: "autocomplete-bibtex": bibtex: [ "/PathToFolder/Library.bib" ] The bibtex library contains one test entry: @book{menezes1996handbook, title={Handbook of applied cryptography}, author={Menezes, Alfred J and Van Oorschot, Paul C and Vanstone, Scott A}, year={1996}, publisher={CRC press} } According to the guide here on github I should be able to use autocomplete by typing @(Name of author), but it seems like it doesn't work properly. According to my packages pane, bibtex is enabled and running. Does anyone have an idea how I can fix this issue? It's very important since I have to write an essay and include citations. I would be very grateful if anyone could help me out with this one. :)

Thanks in advance!

mangecoeur commented 7 years ago

Can you see if your entry is listed under the bibliography-search command?

ElHong commented 7 years ago

Hey, thanks for reply @mangecoeur ! Yes it looks like the entry is listed. I was able to include citations via \cite{citation} but not using @Author. So problem remains. Btw: Atom 1.11.2 Autocomplete-Bibtex 0.7.0

Cheers!

bapfeld commented 7 years ago

Hi- I had the same problem as @ElShlong. I finally solved it by changing the settings for autocomplete-plus to disable the Built-In Provider. You can do this directly settings or by editing the config.cson file.

FHeilmann commented 7 years ago

@bapfeld can you elaborate on your solution?

bapfeld commented 7 years ago

@FHeilmann - there are two ways to disable the built-in provider for autocomplete-plus. The first option is to open settings --> packages --> autocomplete-plus, then scroll down and uncheck the box next to "Enable Build-In Provider." The second option is to add this to your config.cson file (see here if you're not familiar with customizing your config file):

"autocomplete-plus":
    enableBuiltinProvider: false

I'm not entirely sure why the build-in provider seems to be interfering here, but because I don't normally use it, turning it off doesn't have other negative consequences for my setup.

tatecarson commented 7 years ago

I'm also having a similar problem, autocomplete isn't working. Bibtex path in settings is /Users/tatecarson/documents/library.bib . I did the above instructions with no result. Also, what is the bibliography-search command? I'll check that I just don't know what it is.

thanks.

tatecarson commented 7 years ago

That actually worked, thanks. But, how do you get a full citation from the bibtex and not just the inline?

apcshields commented 7 years ago

Tate,

That isn't the purpose of this package. It's meant to make it easy to add the correct key inline that something like Pandoc can turn into a citation when you're finished.

Andrew

Sent from my iPad

On Dec 15, 2016, at 7:26 PM, tatecarson notifications@github.com wrote:

That actually worked, thanks. But, how do you get a full citation from the bibtex and not just the inline?

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

iamaziz commented 7 years ago

Same thing here. Does not work at all :/ I tried all suggested solutions above, and everywhere else I could think of.

gwylanscheeren commented 7 years ago

For me it's also only working when I disable the built-in provider!

Swoy commented 7 years ago

Hello, try:

"autocomplete-bibtex": bibtex: [ "X:/path/to/your.bib" ] in Atoms config.cson file. Notice the difference (references: vs bibtex:).

NoxMortem commented 6 years ago

@apcshields isn't the section "Custom citation formatting" listing exactly the possiblity to get the full citation style?

The autocomplete feature works for me but I am always left with the pandoc style @author instead of \shortcite{key}

Update: I simply can't get it to work properly. It only works for some of the keys but not for most of them. I already tried disabling the provider. At least for those I now get the custom citation style provided in the settings.

"autocomplete-bibtex":
bibtex: [
  "<path to my bibfile ...>\\mybib.bib"
]
resultTemplate: "\\citep{[key]}"
scope: ".source.gfm,.text.mdm,.tex"
"autocomplete-plus":
   enableBuiltinProvider: false

Update 2: if the author is missing it can't find it and sometimes the plugin simply stops working and only continues to work when I restart atom. That is really sad, as it would be extremly helpful.

koppanm commented 4 years ago

I'm also having a similar problem, autocomplete isn't working. Bibtex path in settings is /Users/tatecarson/documents/library.bib . I did the above instructions with no result. Also, what is the bibliography-search command? I'll check that I just don't know what it is.

thanks. Could you get it solved! I am having the same issue. Thank you