Spaces between "and" expressions

Hi!

Working on a .csl file i have the following problem:
when having selected

and="text"

in a macro, it should show up "/" instead of "and" oder "&". I have done this by setting the following terms:

<terms>
<locale xml:lang="en">
<term name="and">/</term>
</locale>
</terms>

Now, when citing, i see

"Author1 / Author2"

but i want it

"Author1/Author2"

so i want to get rid of the spaces before and after the "/".
Can someone help me with this issue?

- peter -
  • a) Which style are you using? If it is a custom style, please upload it to http://gist.github.com/ and post the link here so I can take a look.

    b) Just curious, what should your style look like for three authors? If it should be "Author1/Author2/Author3", you'd be better off setting the delimiter instead of using the and-term.
  • Hi Rintze,
    thanks for your reply!

    a) i have the citation style of a german university (lueneburg) in print.
    i am now trying to create a suitable zotero style.

    Right now i'm working with chicago-author-date (http://www.zotero.org/styles/chicago-author-date) because the two styles seem to be quite similar.

    i changed only very few things, but uploaded anyway:
    http://gist.github.com/159660

    b) if there are more than two authors zotero should use the "et al." way of citing.
    so i changed "et-al-min" value in "citation" section. that works.

    c) i gave up on the "and" terms. i deleted the "and="text" " part in line 116
    (macro: contributers short). now citation looks

    "Author1 Author2"

    and i dont see which delimiter to change to have it looking

    "Author1/Author2"

    changing the delimiter ", " in line 116 has no effect.

    d) by the way: is there a way to change the symbol used when
    having set "and="symbol""? default symbol is "&".
    (http://www.zotero.org/support/dev/csl_syntax_summary#authors)

    thanks a lot,

    - peter-
  • c) By default CSL doesn't include a delimiter between the last and second-last author names (which actually makes sense, e.g. for "Doe, Smith and Johnson", where you wouldn't want the comma to appear between Smith and Johnson). To force the appearance of the delimiter in this case, you have to use 'delimiter-precedes-last="always"' (see also the second example at http://www.zotero.org/support/dev/csl_syntax_summary#authors).

    d) I don't think so. "&" doesn't seem to be in the locales-file, so you probably can't define it as a custom term. But you can of course use 'and="text"' and change the "and"-term to some symbol.
  • Thanks for your answer Rintze!
    It works!!!
    ...
    I have another question:
    The bibliography looks like:

    lastname_author1, firstname_author1 and firstname_author2 lastname_author2
    Baggins, Frodo and Peregrin Took
    .........

    So for the first author the last name comes first but for all other authors the first name comes first.
    The desired behaviour is that the last name always precedes:

    lastname_author1, firstname_author1 and lastname_author2, firstname_author2
    Baggins, Frodo and Took, Peregrin
    .........

    i have no clue at which line i could tweak to solve this..

    thanks,

    -peter-
  • peter,

    I haven't looked at the style, but somewhere in there (maybe in several places) you should find an attribute sayingname-as-sort-order="first"
    Change the offending items to:
    name-as-sort-order="all"
  • hey fbennett,

    thanks for your answer! it works!
    i didnt guess that from the description
    "name-as-sort-order - first sorts by the first author, all doesn't."
    ( http://www.zotero.org/support/dev/csl_syntax_summary#authors )
    maybe one could add this point to the syntax summary page....
    thx,

    - peter -
  • yeah - this looks wrong right now it reads
    name-as-sort-order - first sorts by the first author, all doesn't.
    I think it should be:

    "name-as-sort-order - determines the order of last name and first name(initials). No entry has all authors as first name-last name, "first" displays only the first author as last name - first name, "all" displays all authors as "last name - first name"."

    Is that right? Someone has a better idea for phrasing? I know this sounds awkward...
  • i checked this and it works as you described. to me your description sounds good.
    even if one would not understand it completly, one would get a clue what the "name-as-sort-order" -option does.

    - peter -
  • OK - I put it in - thanks for pointing out the mistake.
Sign In or Register to comment.