New way to setup bibliography
65XP3JMP6I4YXA3JU2GLUAQQERECIWCJ3VWG5MCJGCOZERHVAXUQC
#+title: Bibliography Management
* Sync pdf with git-annex
** Requirements
- git-annex
- git-lfs
- git-lfs
- rclone
** Setup
*** Google drive
- Create a rclone google drive remote
- Copy the executable git-annex-remote-rclone here into $PATH
https://github.com/DanielDent/git-annex-remote-rclone
- Add a remote
#+begin_src
git annex initremote gdrive type=external externaltype=rclone target=gdrive encryption=shared
#+end_src
*** Git LFS
- Create a git repo and set it up for git-lfs (apraga/papers)
https://git-lfs.github.com/
- Add a remote
#+begin_src
git annex initremote lfstest type=git-lfs url=git@github.com:apraga/papers.git encryption=none
#+end_src
** Usage
*** Clone the repo and get the data
#+begin_src sh
git-annex init
git-annex enableremote lfs
git-annex enableremote gdrive
git-annex sync --content
#+end_src
*** Management
Show where files are
#+begin_src sh
git annex list
#+end_src
Synchronize content across remotes
#+begin_src
git annex sync --content
#+end_src
Copy data from or to a special remote
#+begin_src sh
git annex get . --from gdrive
git annex copy . --to lfs
#+end_src
* Annotated bibliography
Instead of using citar and have notes scatter across multiple files, we try a single org-file like [[http://www.cachestocaches.com/2020/3/org-mode-annotated-bibliography/][this setup]]
The bib file is then generated with org-tangle