I'm preparing my CV in latex using a slightly modified template with respect to the one found here. I like it very much, in particular the fact that the bibliography can be splitted into several types of contribution. I've have also applied the trick described here by Andrzej. The problem is that the first author in the bibliography is formatted differently from the others, as Surname, Initial, SecondAuthorInitial Surname. So the trick that applies to underline my name does not apply to all the entries where I'm the first author. I would like to change the way the first author appears in order to be compliant with the other. So in this way I think that the trick for the underlining should work.

As asked I post the code relating to the bibliography setting

%  \usebibmacro{in:}%

% Remove dot between volume and number in journal articles.

 %added a trick to underline my surname
\ifthenelse{\equal{#1}{Vianello}}% matches last name against YourLastName
  \uline{% wrapped with \uline
{% original

   author = {Vianello, Nicola and Naulin, V and Schrittwieser, R and M uller, H. W. and    Zuin, M and Ionita, C and Rasmussen, J J and Mehlmann, F and Rohde, V and Cavazzana, R and Maraschek, M},
   title = {{Direct Observation of Current in Type-I Edge-Localized-Mode Filaments on the     ASDEX Upgrade Tokamak}},
   journal = {Physical Review Letters},
   year = {2011},
   volume = {106},
   number = {12},
   pages = {125002},
   month = mar


Now I think the example should work once one provides a biblio.bib file (any bibliographic file you have should work. The only trick is the surname you chose, mine being Vianello) I apologize for the problems in the example provided.

  • Please give us a minimal working example so that we may see what's going on.
    – qubyte
    Commented Nov 8, 2011 at 14:51
  • The problem is that your question requires us to follow links and hunt around to see what you mean. If you can place some minimal code that compiles, and shows the problem, in your question (indented so that it appears as LaTeX), then you'll get lots of responses quickly. As it is, it's too much hassle and most won't bother.
    – qubyte
    Commented Nov 8, 2011 at 14:57
  • MWE ← here the link to meta with informations about MWE. Commented Nov 8, 2011 at 15:01
  • Code is still not working, e.g. class is missing and it will not typeset anything without \begin{document}…\end{document} (please replace … by an example). You may use filecontents environment to add an example bib file. Commented Nov 8, 2011 at 15:07

3 Answers 3


To manipulate the output of the names you have to set sortname in the correct way.


In this case the first name beside the first author is printed as initial.

To modify this you have to define your own formatting directives via \DeclareNameFormat.

A simple example is given by the definition of last-first (see biblatex.def):


The arguments have the following meaning:

% #1 = last name
% #2 = last name (initials)
% #3 = first name
% #4 = first name (initials)
% #5 = name prefix, a.k.a. 'von part'
% #6 = name prefix (initials)
% #7 = name affix, a.k.a. 'junior part'
% #8 = name affix (initials)

In this case you can format the name lists.

If you want to handle the first author in a special way you can use the test


For example If you want to underline the first author of the list and the name list is formated as last name, first name (initials) you can do:



  • Thanks I was just posting exactly this solution. Together with the keyword firstinits=true in calling bib latex it solved my problem. Thank you in any case Commented Nov 8, 2011 at 16:08
  • @NicolaVianello: I thought you want to underline the first author. -- Sorry is spam. Commented Nov 8, 2011 at 16:23

As far as I remember the behaviour how names show up in the bibliography can be modified with


This should always output Lastname Inital (last name= #1. initial= #4)

  • I'm a bit confused. I've stated the maxentry=100 in order to have all the authors cited for each entry (useful in a CV). So I think that in your post I should skip the \usebibmacro{name:andothers}. Or I'm missing something? Commented Nov 8, 2011 at 15:42
  • All this redefinition does is to print out all authors in the format Lastname Initial, e.g. Bush G., Obama B. and not G. Bush, Obama B. as it is now. My understanding was that the different treatment of the first author was messing up your underline-code. Anyway, you have a working version now...
    – Martin H
    Commented Nov 8, 2011 at 16:24

as it took some time for me to solve a similar problem (underlining one author), I just post my solution here. I had the problem with other solutions that the "et al." was dropped if the reference was abbrevated ...

I hope this can help some else as well.



You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .