Skip to content

Latest commit

 

History

History
44 lines (32 loc) · 771 Bytes

File metadata and controls

44 lines (32 loc) · 771 Bytes

cites

Scans a plain text file for citations, such as (Foo 2020), and prints each one found.

Usage

usage: cites [-n] [file]
  file  Paper in plain text. Read from stdin if absent
  -n    Print line where cite starts

Example:
pandoc -t plain Paper.docx | cites -n

Install / Uninstall

By default it compiles and copy into /usr/local/bin, so it requires sudo.

Change the Makefile if want to put somewhere else

# install
sudo make install

# uninstall
sudo make remove

Examples

Scan a text file:

cites paper.txt

Convert a Word document with pandoc and scan the result, showing line numbers:

pandoc -t plain paper.docx | cites -n

Converts from pdf with Poppler utils:

pdftotext paper.pdf - | cites