Need help with coding

Hi,

I am trying to modify the CMoS style to work with the requirements from my school. My school does not encourage the use of ibid so I have tried to remove it from the style. The other thing I want to do is to show the full title when I cite a source for the first time. After trying out different modifications I am very close, but there is a problem when I try to cite legal cases and bills. The problem is that I get an extra comma between the title and the year.

Example:
XXX, , 2007.

I have tried to work it out but without any luck. So if anyone can give me some pointers that would be great. Here is the copy of the code that i have modified.


<choose>
<if position="ibid-with-locator">
<group delimiter=", ">
<text macro="title-short"/>
<text macro="point-locators-subsequent"/>
</group>
</if>
<else-if position="ibid">
<text macro="title-short"/>
</else-if>
<else>
<group delimiter=", ">
<text macro="contributors"/>
<text macro="title"/>
<text macro="issue"/>
<text macro="point-locators-subsequent"/>
</group>
</else>
</choose>
  • Can you post the full code at https://gist.github.com/ and post a link here?
  • Here, I hope this is correctly done

    https://gist.github.com/1844826
  • Just to make it clear the ideal solution would be for bills and legal cases to be displayed as with only the title (this also applies to the bibliography too) and books with "author, title, issue, place, year". Is this possible?
  • There are "no ibid" versions of both the "Note" and the "Full Note" version of CMoS on the repository. These don't work correctly? (why not?)
    Troubleshooting edits to CMoS is a lot of work, if possible I'd try to avoid that.
  • Ok Ill look into that. Is it possible to modify it to show the full title in the first citation?
  • Sure. Find the macro="title-short" and remove the two instances of form="short" from the lines starting with <text variable="title"
  • That does not work. The ideal solution would be that the full title is used the first time a source appears in the text and then the short title is used after that. Is this possible or should I manually enter the citation the first time?
  • btw the file from the repository worked, so the ibid "problem" is now sorted.
  • Yes it's possible, you'll have to play with <else-if="subsequent"
    Have a look at the full note style for a template.
  • That worked! I copied the whole "subsequent" section from the full note style and removed the -note from the macros so that it would work with the cmos "note" version.

    The only thing now that confuses me is then I have a book with two authors it shows up like this:

    "Rosén, Karl, og Dag Henden Torsteinsen, Eiendomsmegling - Rettslige spørsmål. 2. utg. Oslo, 2008, s. 375"

    On the first author his name is displayed as "last name, first name" but on the second its "first name last name" with no comma between.

    Shouldn't it be displayed as:

    "Karl Rosén og Dag Henden Torsteinsen, Eiendomsmegling - Rettslige spørsmål. 2. utg. Oslo, 2008, s. 375"

    or

    "Rosén, Karl og Torsteinsen, Dag Henden, Eiendomsmegling - Rettslige spørsmål. 2. utg. Oslo, 2008, s. 375"

    I also don't know why there is a comma after the first authors last name before the "og" (Norwegian for and)

    Is there a programming explanation for this, or is this just how the style is?
  • This is how bibliographies are supposed to look in CMoS - since they're sorted by last name, the first author is cited lastname, firstname, other authors aren't. For footnotes you should - in correct CMoS, have all authors as firstname lastname.
  • Okay.

    So why does it show "Lastname, Firstname and firstname lastname" in the footnotes then?

    I have used the CMoS style from the repository so it should be correct CMoS.
  • because you "removed the -note from the macros"

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.

Sign In or Register to comment.