From 9ba20694c77a862b53125808f0f87fbb0b17b84d Mon Sep 17 00:00:00 2001 From: Amin Khan Date: Fri, 22 Jan 2016 11:10:42 +0000 Subject: [PATCH] Customized format, based on Fancy CV template created by Adrien Friggeri --- awesome-cv.cls | 110 ++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 109 insertions(+), 1 deletion(-) diff --git a/awesome-cv.cls b/awesome-cv.cls index 35f0df8..9d43d77 100644 --- a/awesome-cv.cls +++ b/awesome-cv.cls @@ -694,4 +694,112 @@ block=none, backend=biber % {Options: bibtex, biber} ]{biblatex} - \ No newline at end of file + +% Customized format, based on Fancy CV template created by Adrien Friggeri +\DeclareFieldFormat[article]{title}{#1\par} +\DeclareFieldFormat[inproceedings]{title}{#1\par} +\DeclareFieldFormat[misc]{title}{#1\par} +\DeclareFieldFormat[report]{title}{#1\par} +\DeclareFieldFormat[incollection]{title}{#1\par} + +\DeclareBibliographyDriver{article}{% + \printfield{title}% + \newblock% + \printnames{author}% + \par% + \newblock% + {% + \footnotesize\addfontfeature{Color=lightgray}\itshape% + \usebibmacro{journal+issuetitle}% + \setunit{\space}% + \printfield{pages}% + \newunit% + \printlist{publisher}% + \setunit*{\addcomma\space}% + \printfield{year}% + \newunit% + } + \par\vspace{0.3\baselineskip} +} + +\DeclareBibliographyDriver{inproceedings}{% + \printfield{title}% + \newblock% + \printnames{author}% + \par% + \newblock% + {% + \footnotesize\addfontfeature{Color=lightgray}% + \printfield{booktitle}% + \setunit{\addcomma\space}% + \printfield{year}% + \setunit{\addcomma\space}% + \printlist{location}% + \newunit% + } + \par\vspace{0.3\baselineskip} +} + +\DeclareBibliographyDriver{incollection}{% + \printfield{title}% + \newblock% + \printnames{author}% + \par% + \newblock% + {% + \footnotesize\addfontfeature{Color=lightgray}% + \printfield{booktitle}% + \setunit{\addcomma\space}% + \printfield{year}% + \setunit{\addcomma\space}% + \printlist{location}% + \newunit% + } + \par\vspace{0.3\baselineskip} +} + +\DeclareBibliographyDriver{misc}{% + \printfield{title}% + \newblock% + \printnames{author}% + \par% + \newblock% + {% + \footnotesize\addfontfeature{Color=lightgray}\itshape% + \printfield{booktitle}% + \setunit*{\addcomma\space}% + \printfield{note}% + \setunit*{\addcomma\space}% + \printfield{year}% + \setunit{\addcomma\space}% + \printlist{location}% + \newunit% + } + \par\vspace{0.3\baselineskip} +} + +\DeclareBibliographyDriver{report}{% + \printfield{title}% + \newblock% + \printnames{author}% + \par% + \newblock% + {% + \footnotesize\addfontfeature{Color=lightgray}\itshape% + \printfield{type}% + \setunit{\space}% + \printfield{number}% + \setunit{\addcomma\space}% + \printfield{year}% + \newunit% + } + \par\vspace{0.3\baselineskip} +} + +\DeclareNameFormat{author}{% + \small\addfontfeature{Color=lightgray}% + \ifblank{#3}{}{#3\space}#1% + \ifthenelse{\value{listcount}<\value{liststop}} + {\addcomma\space} + {}% +} \ No newline at end of file