I am updating my CV (moderncv
) and I am including a list of all my communications (oral and poster) using multibib (I use different .bib
files for each one).
The final output should display my name in bold and the presenting author underlined.
So far I have figured out how to do the first bit but have not find solution for the last part.
Because the presenting author is not always the same person I was thinking in using the "comment field" to tell BibTeX/LaTex who I want to underline in that specific entry.
Because I do not have enough skills to do that I wonder if anyone can give me a help.
EDITED
I am using a .bst file.
Best Answer
By following a previous example I was able to fulfill my question when using the plain.bst file.
First, I've added a comment field in .bib file as a easier way to referrence which was the speaker/presenting author and declared this new field in plain.bst file:
Second, I've created a new function (
speaker.author
) to set the name in the same format as this style uses informat.names
:Third, a new function (
highlight
) is created to highlight a text, in our case a name. In this case I opt to underline the text/name but you can set whatever text style you want.Fourth, a new function (
highlight.if.speaker.author
) is created to runhighlight
if the author on the stack (see next) is the same asspeaker.author
.Last, insert a call to
highlight.if.speaker.author
toFUNCTION{format.names}
right after theformat.names$
.NOTE: step 2-4 should be placed before
FUNCTION{format.names}
. The only flaw in this method (which arises from the fact that plain.bst style does not abbreviate names) is that you have to make sure that the way you type the author name in author field is the same as in comment because "Doe, John" and "Doe, J" will be seen as different names, although "Doe, J", "Doe, J." or "J Doe" will be seen as equal.EDITED
In some particular cases you may want to have your name in bold together with the previous style (if you are the speaker AND the author of the CV). In that case use the following two new functions:
And then, change
FUNCTION{highlight.if.speaker.author}
to this: