Add a prefix to BetterBibTex citation
Hi,
I export PDFs to Obsidian from Zotero on occasion and would like to include the prefix (Z) to the citation. This will identify the file in Obsidian as coming from Zotero so I can use the search function to find all articles prefixed with (Z).
My searching suggested using the syntax of (Z)[auth.etal][year] but I am getting a message that it is the wrong syntax.
Any help would be appreciated.
Cheers,
I export PDFs to Obsidian from Zotero on occasion and would like to include the prefix (Z) to the citation. This will identify the file in Obsidian as coming from Zotero so I can use the search function to find all articles prefixed with (Z).
My searching suggested using the syntax of (Z)[auth.etal][year] but I am getting a message that it is the wrong syntax.
Any help would be appreciated.
Cheers,
[
as the first character to detect legacy mode. I see now the error message explaining this (and what the equivalent new syntax is) is not shown; I'll fix that, but in the mean time, adding[]
at the front will work.[(Z)][auth.etal][year]
[Z][auth.etal][year]
["Z"][auth.etal][year]
and
[(Z)]authEtal2 + year
[Z]authEtal2 + year
["Z"]authEtal2 + year
Still getting error messages I'm afraid. Obviously the syntax is still wrong.
Cheers,
[](Z)[auth.etal][year]
or"(Z)" + authEtal2 + year
"(Z_)" + authEtal2.fold + year
The Z_ should create an adequate search parameter in Obsidian to identify all sources from Zotero.
Cheers,
[](Z)[auth.etal][year] did work and didn't turn orange.
You suggested [](Z)[auth.etal][year] or "(Z)" + authEtal2 + year
If you look at either of those, the intent is to try to get (Z) as a prefix to any citation key so that when it goes to Obsidian via my workflow, I know where it's come from. It seems BetterBibTex doesn't like the brackets because "(Z_)" + authEtal2.fold + year worked with a underscore after the Z but still no brackets.
()
, I know those as parentheses. Parentheses are not legal in citation keys, so BBT removes them before export.