Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Citing specific book pages with Manubot #362

Open
lubianat opened this issue Sep 11, 2020 · 1 comment
Open

Citing specific book pages with Manubot #362

lubianat opened this issue Sep 11, 2020 · 1 comment

Comments

@lubianat
Copy link
Contributor

Hello,

First of all, thank you very much! Manubot made my workflow of scientific writing much easier.

In my last manubot manuscript, I wanted to r_eference a specific page of a book,_ but did not find an easy way of doing it.

It always upset me to see references to whole books (how the hell I'm supposed to find that mention in a 400+ page book, right?).

Is something like that already implemented? If not, do you think something like that can be implemented?

@dhimmel
Copy link
Member

dhimmel commented Sep 11, 2020

Pandoc support citation locators, which sounds like your use case. From https://pandoc.org/MANUAL.html#citations

Citations go inside square brackets and are separated by semicolons. Each citation must have a key, composed of '@' + the citation identifier from the database, and may optionally have a prefix, a locator, and a suffix. The citation key must begin with a letter, digit, or _, and may contain alphanumerics, _, and internal punctuation characters (:.#$%&-+?<>~/). Here are some examples:

Blah blah [see @doe99, pp. 33-35; also @smith04, chap. 1].

Blah blah [@doe99, pp. 33-35, 38-39 and *passim*].

Blah blah [@smith04; @doe99].

pandoc-citeproc detects locator terms in the CSL locale files. Either abbreviated or unabbreviated forms are accepted. In the en-US locale, locator terms can be written in either singular or plural forms, as bookbk./bks.chapterchap./chaps.columncol./cols.figurefig./figs.foliofol./fols.numberno./nos.linel./ll.noten./nn.opusop./opp.pagep./pp.paragraphpara./paras.partpt./pts.sectionsec./secs.sub verbos.v./s.vv.versev./vv.volumevol./vols./¶¶§/§§. If no locator term is used, "page" is assumed.

pandoc-citeproc will use heuristics to distinguish the locator from the suffix. In complex cases, the locator can be enclosed in curly braces (using pandoc-citeproc 0.15 and higher only):

[@smith{ii, A, D-Z}, with a suffix]
[@smith, {pp. iv, vi-xi, (xv)-(xvii)} with suffix here]

The default manubot CSL doesn't actually show locators in the rendered numeric citations. But at least they'd be in the source. You might be able to find an alternative style that does show them or edit the manubot style to include them.

habi added a commit to habi/zmk-tooth-cohort-method-manuscript that referenced this issue Nov 3, 2020
It *does* support them, but they are not shown with the default CSL: manubot/rootstock#362 (comment)
habi added a commit to habi/zmk-tooth-cohort-method-manuscript that referenced this issue Nov 3, 2020
It *does* support them, but they are not shown with the default CSL: manubot/rootstock#362 (comment)
Also show other links a bit nicer.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants