inspire.el is an Emacs interface for literature and references searching on the high energy article database inspirehep.
inspire.el provides two main entry functions for searching on inspirehep:
inspire-literature-search
for literature lookup, and inspire-author-search
for author lookup.
inspire.el will then pop-up a list of records where one can browse and examine detailed information for each record.
The SPIRES syntax is available for inspire-literature-search
function.
In the record list, use n
and p
to navigate through the list.
Other useful commands and their default bindings:
u (inspire-open-url)
: open the web page associated to the itemd (inspire-download-pdf)
: download PDF from a selected sourceb (inspire-export-bibtex-new-buffer)
: export the bibTeX entry to a temporary bufferB (inspire-export-bibtex-to-file)
: export the bibtex entry to a .bib filee (inspire-download-pdf-export-bibtex)
: download PDF and export bibTeX info to a filea (inspire-record-author-lookup)
: look up for a author profile in current recordr (inspire-reference-search)
: look up for references of the current recordc (inspire-citation-search)
: look up for citations of the current record[ (inspire-previous-search)
,] (inspire-next-search)
: navigate through the search historyq (inspire-exit)
: exit the record list
Some texts in the record or author information buffer are clickable and will preform corresponding action when clicked upon.
inspire.el is available on MELPA. After installing from package-install
, put the following code in your init file:
(require 'inspire)
Or if you use use-package
, you can simply put:
(use-package inspire
:ensure t)
and use-package
will automatically download the package for you.
Various options of inspire.el are located in the customize group named inspire
. You can also set the variables directly:
To make the display faces use monospace fonts:
(setq inspire-use-variable-pitch nil)
You can also set the relevant faces (faces start with inspire-
) directly.
To not pop up a new frame when initiating a new inspire query:
(setq inspire-pop-up-new-frame nil)
The new frame parameter is set by the variable inspire-frame-alist
.
To change the default download folder for papers:
(setq inspire-default-download-folder "/some/other/directory/")
To change the default bibTeX file that functions inspire-export-bibtex-to-file
and inspire-download-pdf-export-bibtex
point to:
(setq inspire-master-bibliography-file "/your/preferred_file.bib")
To use absolute paths for pdf links when exporting bibTeX entries:
(setq inspire-pdf-use-absolute-path t)
To change the default pdf viewing function, set the variable inspire-pdf-open-function
accordingly.
For example, to open in Preview.app in macOS:
(setq inspire-pdf-open-function (lambda (fpath) (call-process "open" nil 0 nil "-a" "/Applications/Preview.app" fpath)))
- check the existence of bib record in bib file and ask if wish to replace
- large experiment stutter issue (couldn’t really fix, author list too long for big experiments like LHC)
- reference list in record page