Issue with a citation style created with the Simple Style creator
Hi,
I have created a Style with Simple Style Creator.Tthe bibliography works fine when I click on Insert a Bibliography but footnotes appear blank. I also have noticed that the IEEE style which already was installed on the Zotero beta 2 I downloaded a few weeks ago. A similar bug has been reported earlier :
Labmonkey Sep 19th 2007
The Nature citation style doesn't seem to be working with Word (for me, at least). Footnotes are left blank. Though it will produce a bibliography, I am left with footnote numbers at the bottom of each page without citations next to them.
I however do not know if there is a link between these problems.
I am using NeoOffice 3 and Zotero beta 2.
Furthemore, it would be great if the simple style generated could be set to export dates in the format d/mm/year instead of just year/mm/d.
I have created a Style with Simple Style Creator.Tthe bibliography works fine when I click on Insert a Bibliography but footnotes appear blank. I also have noticed that the IEEE style which already was installed on the Zotero beta 2 I downloaded a few weeks ago. A similar bug has been reported earlier :
Labmonkey Sep 19th 2007
The Nature citation style doesn't seem to be working with Word (for me, at least). Footnotes are left blank. Though it will produce a bibliography, I am left with footnote numbers at the bottom of each page without citations next to them.
I however do not know if there is a link between these problems.
I am using NeoOffice 3 and Zotero beta 2.
Furthemore, it would be great if the simple style generated could be set to export dates in the format d/mm/year instead of just year/mm/d.
first, the simple style generator isn't all that great and I'm under the impression the lemaxx has stopped development on it.
Then, nature and similar styles (including IEEE) don't have footnotes. You should just get numbers in the text when inserting citations, nothing else. Do you actually get empty footnotes at the bottom of your page? That would be both strange and wrong.
For your date issue, you can manually change that in the style.
Look at
http://www.zotero.org/support/csl_simple_edits
for a quick intro to modifying csls
You want to look for
something that looks like
<date variable="issued">
<date-part name="year"/>
<date-part name="month"/>
<date-part name="day"/>
</date>
and just change the order of the date-parts.
Thanks very much for your help and your quick reply. Actually, I have nothing at the bottom of the page, not even the number of the citation. Thanks also for your help with the date format.
If you do want footnotes, you have to use a style that has class="note" in the header (in the line that starts with <style )
and you need to define what's in that note in the <citation> part of the bibliography.
I don't know if the simple generator can do that.
But if that's not a concern, you can
put the edition in a separate term,
something along the lines of
<text term="edition" form="short" suffix="."/>
If you can't figure it out it would help to let us know exactly what you want things to look like - is it: 5th ed.?
If you do not exactly understand what I want th to look like, please compare the position of the 2 and the m in the square metre symbol or like the representation of an exponent in maths.
The th of 5th edition also should be slightly higher than 5 and edition.
I am using the line of code adamsmith suggested elsewsere in my code but it clearly does not reproduce the difference
<number variable="edition" form="numeric"/>
<text value="th" suffix=" " vertical-align="sup"/>
<text term="edition" form="short" suffix="." />
Note that it doesn't show up correctly in the test panel.
But this will always give you the th as noted.
Look at the Chicago Style to see how to get real ordinal numbers (1st, 2nd, 3rd), albeit without the superscripting.
You can just post code without registration over at
gist.github.com
just paste it in the window and click "Create Public gist" at the bottom
I would like to set assign the same style all the items that have the same word in the publication field.
I therefore use the following code :
<macro name="title">
<choose>
<if type="chapter">
<choose>
<if variable="container-title" match="word">
<text variable="title" preffix="V° " suffix=", "/>
…
Could you please let me know if it is correct ?
Please note that the word is not the complete publication title but only a word all the items have in common in their zotero publication field.
The syntax seems correct but the prefix is not applied.
match=" " can only be any or none.
i.e. if you use
if variable="containter-title"
the only if you can trigger is if there is something in the container title field or not (i.e. any or none).
Frank who is one of the people who has thought most about this, explains some of the reasons for that here:
http://forums.zotero.org/discussion/9141/display-only-the-first-author-in-a-homemade-citation-style/#Item_9
Furthemore, it seems that "entry-encyclopedia" is treated as "chapter", is this due the code or a mistake I made ?
The encyclopedia = chapter is coded that way - though it's labeled as a fallback.
You can find the mapping here
chrome://zotero/content/xpcom/csl.js
<if type="book">
...
</if>
<else-if type="chapter>
...
</else-if>
<else-if type="article-journal>
...
</else-if>
<else>
...
</else>
As per above you can't treat encyclopedia entries separately.
Also, for "report" to work, you need to test for it _before_ "book" - otherwise reports just get treated as books. (i.e. <if type="report">...<else-if type="book"> works; <if type="book">... <else-if type="report>... doesn't work.
Is there a chance the mapping evolves so that it would be possible to use entry-encyclopedia as well as chapter ?
Btw. as Bruce says, I strongly recommend against using the simple style creator or basing your style on its output. It's a much better idea to start from a high quality existing style such as APA or CMOS
Edited: Yes, indeed recommend against!
This is not a reproach since I know the SSG is a tool designed to cope with the most obvious needs. It is just one of the reasons why I sticked to the SSG.
Furthermore, Zotero really is an attractive tool especially if one likes to use open source apps, not only because of their price for the independence they offer. Zotero however is limited by another factor, it was conceived by anglo-saxon people that were not aware of different ways of mananging sources in diffrent countries which is absolutely understandable since one cannot know everything. I am not even sure that commercial solutions are doing a better job from that point of view since I have not tested them.
A good example of that is encyclopaedia-entry and chapter which are based on a totally different layout, i.e., different prefix, diffrent content and diffrent font style. If I understand you well I cannot achieve completly diffrent outputs using the actuel version of the code.
Considering this, one can undertand the other reason which explains why I sticked to the SSG-made style even if I also looked at Chicago Full with bibliography: it was the closest to what I wanted to achieve.
Despite this period of blind searching, Zotero certainly will be really useful. Thank you also for your helpfulness.
Actually, something like different requirements for Encyclopedia's isn't generally a big issue (and I don't think it is tied to int'l limitations - there are other things - such as how CSL deals with quotation marks, that would be better examples of that) and it might actually be possible to do this in a different way - why don't you give us examples of what you want to achieve instead of keeping it abstract.
Remember also that Zotero is very young in software terms, just in it's third year, less time since going out of beta. So a lot of things are still being learned and added - including a lot of features for wider int'l compatibility.
Also - as I said, if you post mapping for encyclopedia as a feature request with good documentation there's a good chance it can be implemented.
In my style chapters are set like this :
Author, Italicised title in Publication, Publisher, Date
Encyclopedia :
Publication, V° Entry
An other encyclopedia format :
Publication, V° Entry, Fasc. collection-number
As you can imagine when I learned when I learned that I could not test a condition with a qpecfic foeld content I siet a condition if collection-number match="any" to distinguish through the encyclopedia type. All these items are still treated like chapter even if the condition : if type entry-encl. is tested before else if article journal and if else chapter, else
In CSL there is no type entry-encyclopedia so you can't test for it. Not all types in Zotero have corresponding types in CSL.
I still need specific quotations to see how this looks to be able to think about a solution.
n° refers to the §
Chapter output (used for collective works) :
A. Martin, Rich text citations in A history of Zotero development, Publisher, 2009, p. or n°
Encyclopedia
The CSL encylopedia, Publisher, V° Zotero, n°
Another Encyclopedia, Fasc. n° 1234, V° Zotero, n°
(The number corresponds to the collection number)
Other works (not periodicals)
A. Martin, My book, Collection, 5th ed., Publisher, 2009, p, or n°
The th is supscripted not subscripted
In the bibliography, I do not mention pages or n°
I hope this helps.