Skip to content

Commit 0bd3096

Browse files
committed
Update documentation
1 parent 3cb420e commit 0bd3096

File tree

1 file changed

+50
-10
lines changed

1 file changed

+50
-10
lines changed

README.md

Lines changed: 50 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ RefMan - A Simple python-based reference manager
55
`RefMan` capitalises on [Sci-hub](https://sci-hub.se/) and [crossref](https://crossref.org) to
66
provide a very simple Python-based reference manager.
77

8+
The goal of `RefMan` is to prioritise getting bibliographic data and PDFs, wihtout having to worry about databases or manually downloading and maintaining references yourself.
9+
810
`RefMan` maintains:
911
1. a BibTeX bibliography file `ref.bib`, and
1012
2. a directory of `pdf`'s in a `REFMAN_DATA`.
@@ -14,22 +16,60 @@ path listed under the `REFMAN_DATA` environment variable.
1416

1517
## How to use `RefMan`
1618

17-
Adding new papers to `refman_data` can be achieved in two ways:
18-
1. With a string-separated list of DOIs using `-d, --doi`, or
19-
2. With a BibTeX string using `-b, --bibtex`, alongside an optional PDF (url or local-path) using `-p, --pdf`.
19+
Adding new papers to `refman_data` can be achieved in three ways:
20+
1. With a DOI, using `-d, --doi`, or
21+
2. With an `arxiv` reference using `-a, --arxiv`, or
22+
3. As a last-resort, with a BibTeX string using `-b, --bibtex`, alongside an optional PDF (url or local-path) using `-p, --pdf`.
23+
24+
## Installing
25+
26+
```bash
27+
git clone https://https://github.com/adriancaruana/refman
28+
cd refman
29+
./install
30+
```
31+
32+
## Getting Started
33+
34+
```bash
35+
# Make a directory to store references
36+
mkdir ~/refman_data
37+
38+
# Set the REFMAN_DATA environment variable. Add this to your `.bashrc` for persistence.
39+
export REFMAN_DATA=$HOME/refman_data
40+
41+
# Add a paper using a DOI:
42+
refman -d 10.1103/PHYSREVLETT.116.061102
43+
44+
# Add a paper using an `arxiv` reference
45+
refman -a 2103.16574
46+
47+
# Add a paper using a bibtex string & pdf.
48+
refman -b "@inproceedings{devlin2018bert,
49+
title="BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding",
50+
author="Jacob {Devlin} and Ming-Wei {Chang} and Kenton {Lee} and Kristina N. {Toutanova}",
51+
booktitle="Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers)",
52+
pages="4171--4186",
53+
year="2018"
54+
}" -p "https://www.aclweb.org/anthology/N19-1423.pdf"
55+
```
56+
57+
## Usage
2058

2159
```
22-
usage: refman [-h] [-d DOI [DOI ...]] [-b BIBTEX] [-p PDF]
60+
usage: refman [-h] [-d DOI] [-a ARXIV] [-b BIBTEX] [-p PDF] [-k KEY]
2361
2462
RefMan - A Simple python-based reference manager.
2563
2664
optional arguments:
2765
-h, --help show this help message and exit
28-
-d DOI [DOI ...], --doi DOI [DOI ...]
29-
Tries to find and download the paper using the DOI. Append multiple papers using a space-separated list
66+
-d DOI, --doi DOI Tries to find and download the paper using the DOI.
67+
-a ARXIV, --arxiv ARXIV
68+
Gets the paper from an Arxiv reference string.
3069
-b BIBTEX, --bibtex BIBTEX
31-
Adds an entry to the database from a bibtex-string. Optionally, provide -p, --pdf to associate this entry with a
32-
PDF.
33-
-p PDF, --pdf PDF Adds an entry to the database from a bibtex-string. Optionally, provide -p, --pdf to associate this entry with a
34-
PDF.
70+
Adds an entry to the database from a bibtex-string. Optionally, provide -p,
71+
--pdf to associate this entry with a PDF.
72+
-p PDF, --pdf PDF Adds an entry to the database from a bibtex-string. Optionally, provide -p,
73+
--pdf to associate this entry with a PDF.
74+
-k KEY, --key KEY Explicitly define the key to use (without hash) for the paper.
3575
```

0 commit comments

Comments
 (0)