Citation style allowing to define my own citation labels?
Hello!
For internal documents I want to use a citation style, where the citation labels are user-defined.
For LaTeX I did this by using BetterBibTex to create the citation keys, customize and pin them where needed, and using "latex makebst" to create a custom style, that used cite keys as the citation labels.
For Word processor support, the closest I can find is the DIN 1502-2 style, which uses the "citation-label" variable and is similar to the "abbrev" BibTeX style.
Is there any such option available?
For internal documents I want to use a citation style, where the citation labels are user-defined.
For LaTeX I did this by using BetterBibTex to create the citation keys, customize and pin them where needed, and using "latex makebst" to create a custom style, that used cite keys as the citation labels.
For Word processor support, the closest I can find is the DIN 1502-2 style, which uses the "citation-label" variable and is similar to the "abbrev" BibTeX style.
Is there any such option available?
Though the CSL file linked in the BBT manual does not work, so I created my own. Looks like I did something wrong. It worked now.
However, I noticed that when exporting to "CSL Json", the cite key is already included as "id" field (see example below), yet when trying to use the "id" in a CSL format, it becomes a numeric ID.
Any idea, where that discrepancy comes from?
For reference, I am not citing Wikipedia in a publication, but in an internal literature- document.
Regarding the example style, upon accepting installation directly through the in-browser popup, it worked. So, it seems like I did something wrong before.
Your style only didn't work, because I did something wrong when installing and got an error message. Just installing directly from the in-browser prompt of the extension worked.
A separate issue is that apparently punctuation in the cite key can break something, as in the screenshot. In that case, if I use
<text macro="citation-key"/>
instead of<text variable="note"/>
withit "works", but with the unwanted fall-back label only. I.e. it looks like the
:
in the cite key somehow messes up the export into the "note" field.:
being in the note field.CSL 1.0.2, launching officially on Jan 1, has citation-key and citation-label variables, so embedding the key in Extra with citation-key would be good
I can just add the new format as an variant of the existing behavior. Any idea on when Zotero would upgrade to 1.0.2?
If a key is stored as
Citation key: Key:withColon
I think it should work
citation-key
variable, today? The citeproc in Zotero already supports this?citation-label
is distinct fromcitation-key
. The use of citation keys as labels is useful for internal documents and drafts, but it probably should not interfere with how the label looks in other citation styles. (Though currently only one style in the repository actually uses citation-label as the label).citation-key
now.citation-key
would make the colon issue irrelevant, unless it also shows up there. It is anyway strange, that the colon makes problems when stored in the "Note" field for encoding the key, but not when e.g. part of a title. I can only guess, that the colon is somehow escaped when stored in the.title
, but not when assigned to.note
in better-bibtex.ts:108.Key: Value
citeproc-js does not restrict this extraction to only valid CSL variables, so if you have a key like
Citation: Key
Then, that is going to get extracted as the `Citation` variable, not left in `note`
Or maybe for backwards compatibility if citeprocNoteKey is enabled,
Citation key: key:with-colon
Would also work
The note field contains
Citation-key: SOMEKEY
now in that test build, but it does not translate into an accessible<text variable="citation-key"/>
.Which makes it even stranger, that having
:
in the citation key breaks the "note" field in the release version of BBT with "citeprocNoteKey=True".Citation Key: something
set in extra does not seem to lead to thecitation-key
variable being available to the style.