Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
url as citekey/referencekey #308
Comments
|
It's a pandoc issue. And it's not a bug, it's documented
behavior. Pandoc doesn't accept arbitrary citation keys,
mostly because we have to consider the case where a
citation is followed by punctuation, e.g.
[@doe1999, p. 99]
(as seen in @doe1999)
MANUAL says:
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 (`:.#$%&-+?<>~/`).
An "internal" punctuation character is one followed by
an alphanumeric.
We could try make this fancier, e.g. by treating `=` as
a non-punctuation character. Perhaps a better approach
would be to use the existing uri parser and allow any
URI as a citation key.
+++ geniusupgrader [Nov 15 17 12:40 ]:
… I want to use this citekey:
***@***.***://ww3.cad.de/cgi-bin/ubb/forumdisplay.cgi?action=topics&number=
527]
from this bib file:
@misc{https://ww3.cad.de/cgi-bin/ubb/forumdisplay.cgi?action=topics&number=527,
timestamp = {2017-11-15T12:28:11Z},
title = {Foren Auf {{CAD}}.de, {{OpenFOAM}}},
urldate = {2017-11-15},
howpublished = {https://ww3.cad.de/cgi-bin/ubb/forumdisplay.cgi?action=topics\
&number=527},
file = {Foren auf CAD.de, OpenFOAM:/home/robin/Zotero/storage/ZZ7XAH64/forumdi
splay.html:text/html}
}
but I get this failure message:
pandoc-citeproc: reference
https://ww3.cad.de/cgi-bin/ubb/forumdisplay.cgi?action not found
Looks like the equal sign (=) is cutting off the remainder of the url.
But I don't know if this is a pandoc-citeproc issue, a bibtex issue, an
encoding problem or something else. Maybe someone can try it?
Additional Info:
pandoc version: 1.19.2.1
panodoc-crossref version: 2.6.0
Happens from markdown to html with --standalone, default template,
everything default.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, [1]view it on GitHub, or [2]mute the
thread.
References
1. #308
2. https://github.com/notifications/unsubscribe-auth/AAAL5Oke2_LEPKiv_1FlUaWe4WKyF1rtks5s2tvRgaJpZM4Qe3ZQ
|
|
Thank you for the explanation @jgm , I've overlooked the documentation for that. |
|
I have a proof of concept in the |
|
Another approach would be to allow curly braces for arbitrary cite keys:
|
|
Inside curly braces would be a good solution, I don't think adding more possible ambiguity is a great idea. Anyways, I would like this because it would make implicitly / automatic generating bibliographies directly from the URLs (see here) possible. |
|
+1 to a syntax that allows "arbitrary cite keys". Personally, I'm okay with not having spaces in citekeys, but perhaps this would be valuable for others. A more flexible character set for citekeys would help with citation by persistent identifiers, where users cite works directly by a persistent identifier. Currently Manubot supports various types of identifiers including DOIs, PubMed IDs, ISBNs, URLs, and Wikidata IDs. However, DOIs and URLs often include forbidden characters for citekeys, so Manubot parses these prior to pandoc rather than using a pandoc filter. |
|
@dhimmel you might open an issue on the pandoc bug tracker, since this would require a change in pandoc rather than here. |
Got it. Opened jgm/pandoc#6026 |
I want to use this citekey:
[@https://ww3.cad.de/cgi-bin/ubb/forumdisplay.cgi?action=topics&number=527]from this bib file:
but I get this failure message:
pandoc-citeproc: reference https://ww3.cad.de/cgi-bin/ubb/forumdisplay.cgi?action not foundLooks like the equal sign (
=) is cutting off the remainder of the url.But I don't know if this is a pandoc-citeproc issue, a bibtex issue, an encoding problem or something else. Maybe someone can try it?
Additional Info:
pandoc version: 1.19.2.1
panodoc-crossref version: 2.6.0
Happens from markdown to html with --standalone, default template, everything default.