summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/europecv/templates/europecv_biber.tex
blob: 892677f20a3834b32e6a5b0d2b242c3818bac171 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
% !TeX root = ./cv.tex

\makeatletter
  % Add a row of two cols to a global list
  % #1: list; #2#3: two cols
  \def\ecv@blx@additemto#1#2#3{\expandafter\gdef\expandafter#1\expandafter{#1\\#2&#3}}

  % Called for each item
  \def\blx@bibitem#1{%
    % Counter for defernumbers
    \blx@getdata{#1}%
    \blx@thelabelnumber%
    %
    % Add current item to the list
    \ecv@blx@additemto\ecv@blx@table{%
      % Hypertarget
      \raisebox{10pt}[0pt][0pt]{\hypertarget{cite.\the\c@refsection @#1}{}}%
      % Label
      \protect\NoHyper\cite{#1}%
    }{%
      % Citation
      \fullcite{#1}\vspace{5pt}%
    }%
  }

  \let\std@blx@printbibliography\printbibliography
  \renewcommand\printbibliography[1][]{%
    \gdef\ecv@blx@table{}% Init the list of items
    \std@blx@printbibliography[#1]% Add items to list
    \ecv@blx@table\\% Print the list of items
  }
\makeatother

% Heading
\defbibheading{bibliography}[\bibname]{\textbf{#1}\vspace{-10pt}}