Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I edited the authoryear.bbx for biblatex the following way:

\DeclareNameAlias{author}{sortname}    
%\DeclareNameAlias{editor}{sortname} this I commented out
%\DeclareNameAlias{translator}{sortname} this I commented out

It works perfect for sorting the authors in "Lastname, Name and Name Lastname" etc. but now the books with no authors and only editors are still sorted in the "Name Lastname", but I want them to be formated in the same way as the authors. But only for books with no authors, not for incollection nor for inproceedings etc.

I try to do this, but obviously it doesn't work:

\DeclareNameAlias{author}{sortname}    
\DeclareNameAlias{collection}{editor}{sortname}
%\DeclareNameAlias{translator}{sortname} 

This is wanted and shall be kept:

Kahn, Douglas 2007: Between a Bach and a Bard Place: Productive Constraint in Early Computer Arts, in Oliver Grau (Ed.): MediaArtHistories, Cambridge, MA: MIT Press, S. 423–451.

But this not:

Carolyn Birdsall/Anthony Enns (Ed.) 2008: Sonic Mediations: Body Sound Technology, Newcastle upon Tyne: Cambridge Scholars Publishing.

This should be change into:

Birdsall, Carolyn/Anthony Enns (Ed.) 2008: Sonic Mediations: Body Sound Technology, Newcastle upon Tyne: Cambridge Scholars Publishing.

If I uncomment the \DeclareNameAlias{editor}{sortname}, this will happen:

Kahn, Douglas 2007: Between a Bach and a Bard Place: Productive Constraint in Early Computer Arts, in Grau, Oliver (Ed.): MediaArtHistories, Cambridge, MA: MIT Press, S. 423–451.

which is unwanted..

Here is the complete code for spread in three .bbx files.. sorry very chaotic.. I am a new into this. Thanks to all the authors of these codes. Since I don't know how to past correctly longer code scripts without manually indenting the code by 4 spaces.. I will link the two other files.

http://algorhythmics.com/latexstuff/sm-002.bbx http://algorhythmics.com/latexstuff/philosophy-standard.bbx

And here is the part of authoryear I changed:

\DeclareNameAlias{author}{sortname}
\DeclareNameAlias{editor}{sortname} 
\DeclareNameAlias{default}{first-last}
\DeclareNameAlias{byeditor}{default}
%\DeclareNameAlias{translator}{sortname}

Please help me. Thanks!

share|improve this question
1  
In your last example authoryear would print editor using the byeditor format, which is just an alias for first-last. So your problem is a result of other changes you've made to the style. –  Audrey Apr 9 '12 at 19:46
    
ah right. Thanks for that comment, so how can I change the \DeclareNameAlias{byeditor}{sortname} options? –  algomachine Apr 9 '12 at 21:25
    
By default, \DeclareNameAlias{byeditor}{default} and \DeclareNameAlias{default}{first-last}. Whatever bibliography macro you're using in place of byeditor+others needs to apply the first-last format. If you need help with this, edit your question to reflect all of the relevant style changes you've made. –  Audrey Apr 9 '12 at 22:52
    
Doesn't work in my case. I edited my post and added all the code of.bbx files I am using... –  algomachine Apr 10 '12 at 8:56

1 Answer 1

up vote 3 down vote accepted

In sm-002.bbx, the incollection and inproceedings bibliography drivers replace the byeditor+others macro with a new macro called editorincoll, defined as follows.

\newbibmacro*{editorincoll}{%
  \ifthenelse{\ifuseeditor\AND\NOT\ifnameundef{editor}}
    {\ifthenelse{\iffieldequals{author}{editor}\AND
                 \NOT\iffirstonpage}
       {\bibnamedash}
       {\printnames[upshape]{editor}\addspace
        \savefield{namehash}{\bbx@lasthash}}%
     \usebibmacro{editorstrg}%
     \clearname{editor}}
    {\global\undef\bbx@lasthash}}

If you replace the upshape with first-last, you'll get the desired order in the name list.

share|improve this answer
    
great, now it worked! –  algomachine Apr 10 '12 at 14:19

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.