I would like to create a remotely accessible, centralized .bib bibliography on GitHub that I can use in my .Rnw and .tex files in various directories. It would also make it easier to collaborate and decrease files in constant transit amongst collaborators. As an aside, I am more familiar with working with a GUI IDE like RStudio rather than the command line.
I tried Googling and found a few leads that didn't end up working. In particular, I found a guide on using submodules, but couldn't get it to work. I already tried \bibliography{https://github.com/usernamehere/MyProjects.git/bibliography.bib}, but this also did not work. Can someone please provide me with some new leads to explore?
Update:
Still can't get it to work. Taking the suggestions of Guido and Alan Munn in the comments below, I have tried a variation of the following MWE pseudocode (pseudo, because I omit my Git user name for anonymity). Am I making a mistake somewhere that prevents the citations from showing up?
** Temporarily left my GitHub username in place for a MWE **
\documentclass{article}
\usepackage[backend=biber]{biblatex}
\addbibresource[location=remote]{https://raw.githubusercontent.com/aw236/myrefs/master/myrefs.bib}
% Variations attempted that don't work:
% \addbibresource[location=remote]{https://github.com/aw236/myrefs/myrefs.bib}
% \addbibresource[location=remote,type=file]{https://github.com/aw236/myrefs/myrefs.bib}
\begin{document}
asdf.
\nocite{*}
\printbibliography
\end{document}
\addbibresource[location=remote]{https:// etc.}The\bibliographycommand is deprecated inbiblatex. – Alan Munn Mar 12 '15 at 20:49\addbibresource[location=remote]{http:...}. Also, there is a trailing/beforehttps, and the manual specifies that onlyftpandhttpprotocols are supported. – Guido Mar 12 '15 at 20:50urlshould point to abibfile. There is a/at the end. – Guido Mar 13 '15 at 02:34biblatex2.9a, everything else up to date) even though I had to ait quite some time on the first Biber run. (Of course in your MWE no citations will show up at all - no matter if it worked or not, to check that add a\printbibliographyat the end.) How does the "does not work" manifest itself - do you get an error, a warning, nothing shows up an empty.bblfile etc.? Please show us the.blg(Biber log file). – moewe Mar 13 '15 at 06:45.blgfile say? Also try running Biber in debug mode (biber --debug file) and report your.blgfindings. – moewe Mar 16 '15 at 14:54.blgfile), have a look at the.bblfile (is it even created?). – moewe Mar 17 '15 at 12:00\addbibresource[location=remote]{https://raw.githubusercontent.com/aw236/myrefs/master/myrefs.bib}, while in your.Rnwfile you run\addbibresource[location=remote,type=file]{https://github.com/aw236/myrefs/myrefs.bib}(the right solution is there, but commented out). Anyway, did you even run Biber on the file (normally at least a.blgis created even if something went wrong)? What is Biber's output on a manual run via the command line? – moewe Mar 18 '15 at 06:42\addbibresource[location=remote]{https://raw.githubusercontent.com/aw236/myrefs/master/myrefs.bib}didn't work, so I commented it out and iteratively tried a few other possibilities. Consequently, my linked .Rnw differs from the MWE. I'm not sure if I even run Biber, since I rely on the RStudio IDE which normally handles such things. I won't be able to further investigate the answers to your helpful troubleshooting questions until Saturday (too much homework right now). Thanks. – user2205916 Mar 25 '15 at 20:56.texfile and compile it via the command line (pdflatex test,biber test,pdflatex test,pdflatex test, assuming that your MWE file is calledtest.tex). And check if that works, if it doesn't then the problem is with how RStudio invokes LaTeX/Biber etc. – moewe Mar 27 '15 at 13:25latexmkorarara. – moewe Mar 27 '15 at 13:28