autocomplete-bibtex icon indicating copy to clipboard operation
autocomplete-bibtex copied to clipboard

Relative paths to bibliography

Open laughedelic opened this issue 10 years ago • 8 comments

It would be very useful to be able to put in the settings relative paths (relative to the edited markdown file or to the opened project), like ./refs.bib (I have separate bibliography for each paper). Now it works only if I put there an absolute path to the file.

laughedelic avatar Jun 30 '15 16:06 laughedelic

laughedelic,

I'll look into this and see if I can't come up with something soon.

If you (or anyone else) feels like doing it, feel free to submit a pull request!

Thanks, Andrew

apcshields avatar Jul 23 '15 01:07 apcshields

:+1:

aaronwolen avatar Jul 24 '15 12:07 aaronwolen

markdown-preview-plus supports relative bibliography files for pandoc. Maybe ac-bibtex could pick up the file setting that they are using?

vchuravy avatar Sep 30 '15 04:09 vchuravy

I was about to say exactly what @vchuravy said...

tpoisot avatar Oct 03 '15 00:10 tpoisot

Even better, it could also read the .bib name from metadata blocks.

alanpog avatar Dec 02 '15 19:12 alanpog

Really good idea -- better than #81

tpoisot avatar Nov 20 '17 14:11 tpoisot

has someone tried to come up with a pull request already? Is there any package with a similar functionality, i.e.:

  • extracting parameters from yaml meta data
  • changing config folders with respect to the path of the current file ?

rriemann avatar Jan 18 '18 12:01 rriemann

The npm https://github.com/jonschlinkert/gray-matter allows to extract JSON objects from the meta data block of md files.

https://github.com/shd101wyy/markdown-preview-enhanced uses this npm to extract config options from the edited md file.

rriemann avatar Jan 31 '18 12:01 rriemann