Creating a Citation Style???
Is there anyway to create your own citation style within Zotero?
Cheers
Cheers
This is an old discussion that has not been active in a long time. Before commenting here, you should strongly consider starting a new discussion instead. If you think the content of this discussion is still relevant, you can link to it from your new discussion.
The advantage of creating a CSL through the more technical methods is that that style can be then shared with other Zotero users, and indeed can serve as a template for citation styles in any other software that recognizes CSLs as well.
Just a thought ...
Thanks, Peter
It might be a little learning curve to understand XML and using a validating editor like oXygen or emacs nxml mode, but it's a skill that's broadly useful and transferable. Beyond that, there's also some learning curve in CSL. I can't tell you if that will constitute a "time sink" or not.
I suppose a test is to see if you can adapt the APA style, using the csledit.xul previewer that has been mentioned elsewhere on the forums. If you feel you're making progress, follow through; if not, post the style you want on the forums and hopefully someone will get to it.
But then why does the documentation include the sentence "‘cslID’: a GUID to uniquely identify the CSL — you can use an online GUID generator to create one"?
While a GUID can be helpful to create the style URI, that per se is not enough. I'd suggest tweaking that to be more clear.
I was also wondering about custom output styles : not being a developer, i am quite unsure how to write my own output style - let alone adding it to the Zotero SQLite database.
Is anyone willing to help me out here - all i want is a really simple output style as such shown below.
(in text citations)
[1] or [2,3] or [4,5,6,7]
(bibliography)
[1]
Authornames; year; title; journal; volume; pages.
[2]
Authornames; year; title; journal; volume; pages.
Thanks
Andy
I have had a look at the CSL documentation, could someone post an example of a CSL document and a view of how the citation and bibliography looks in the article - to help me understand how the information in the CSL documentation relates to the actual CSL document i want to write and how this would relate to what the final view in after applying the output style...
that would be great thanks!
Andy
Regards
Andy
Thanks to that link I have managed to make myself an output style and successfully added it to the sqlite db.
I wanted to add the 'Extra' field that contains PMID numbers (for references taken from pubmed)
but I don't know what the name of this variable is
<bibliography>
<layout>
<text variable="citation-number" suffix=". "/>
<text variable="extra"/>
</layout>
</bibliography>
but this does not add the information, does the extra field have another name??
Thanks
Andy
Dan Wrote:
"The Extra field isn't actually accessible in CSLs, since it's not a standard field that would be defined in the CSL spec."
-----------
Gaaaaaa!!! That's really annoying!
Can anyone think of a work around to be able to output the info from the extra field (I really need to be able to output the PMIDs)
Thanks
Andy
REPLACE INTO csl VALUES('url', '2007-09-24 15:15:00', 'Clinical Infectious Diseases',
'<?xml version="1.0" encoding="UTF-8"?>
<?oxygen RNGSchema="../csl.rnc" type="compact"?>........</style>');
And inserted the new style. I changed the title and date - but what about the url for this local style? The file inserts into zotero.sqlite but no new style turns up in zotero.
Can you help me? Thanks - Chris
I got it working - I actually find the csledit.xul easier to work with than the style editor in e.g. ReferenceManager. I have, however, still one problem: the in-text citations appear as e.g. [1; 2; 3; 4] but preferably it should be [1-4]. More complex combinations also often arise: [1; 2; 3; 6] - should be: [1-3; 6].
Do you have some code for these conditional situations?
Chris
<citation>
<option name="collapse" value="citation-number"/>
<sort>
<key variable="citation-number"/>
</sort>
<layout>
(...)
</layout>
</citation>
If you upgrade to the development XPI, you'll also need the latest version of the Word integration extension/template for your OS and word processor.