Quoting and citing
Copying text#
In the text cursor (v), select with v, then use these keys.
| Key | Copies |
|---|---|
y | the text, as it is |
Y | the text as a quotation with its page, like “the snap-through instability” (p. 5) |
Quotations are made for pasting into your own writing, so they follow a few rules.
- line breaks and repeated spaces become single spaces, and words broken with a hyphen at the end of a line are joined again;
- the page is the one printed on it (its page label, such as
ivorS3, or215for page 215 of a journal volume), not the position in the file, whenever the PDF says so; - a selection over two pages gives
(pp. 5–6).
The format is cite_format in the configuration, with %t for the text and %p for the page(s). The default is “%t” (p. %p), and these are examples of other formats.
cite_format = "%t" [p. %p]
cite_format = > %t (p. %p)
BibTeX for the paper you are reading#
:bibtex copies the paper's BibTeX entry to the clipboard, ready to paste into your .bib file. It works in four steps.
- it finds the paper's DOI, in the PDF's metadata first and then in the text of its first two pages (a DOI printed as
doi:,DOI:ordoi.org/is preferred over one that is only mentioned); - without a DOI, it looks for an arXiv number (
arXiv:1602.03837); - it fetches the entry from
doi.org(orarxiv.org) in the background, so you keep reading meanwhile; - the message shows the citation key, as in "BibTeX copied: Abbott_2016".
It needs curl and an internet connection. When nothing is found it says so, for example "no DOI or arXiv number found on the first pages", "no connection", "timed out" or "not found".
Copying a figure#
To paste a figure into slides or a document as an image, see Images and regions.