Sunday, May 20, 2012

Bolding author name in CV (latex)

If you use latex and bibtex to create your CV then you can use this trick to bold your name in the author list of the bibliography. There are several other methods shown here.:
  1. Use plain.bst, copy it over to the location where your cv tex file is. Rename it (eg. to cvplain.bst)
  2. Find the format.names function and change the line
    { s nameptr "{ff~}{vv~}{ll}{, jj}" format.name$ 't :=
    to
    { "\FormatName{" s nameptr "{ff~}{vv~}{ll}{, jj}" format.name$ * "}" * 't :=
  3. In your cv tex file add the following lines:
    \def\FormatName#1{%
    \def\myname{My Name}%
    \edef\name{#1}%
    \ifx\name\myname
    \textbf{#1}%
    \else
    #1%
    \fi
    }

No comments:

Post a Comment