Skip to content

Commit

Permalink
Merge pull request #2 from jckegelman/feature/publications-biblatex
Browse files Browse the repository at this point in the history
Make Bibliography font style consistent.
  • Loading branch information
aminmkhan committed Dec 20, 2016
2 parents 6c08ff1 + 930f35d commit f27b669
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions awesome-cv.cls
Original file line number Diff line number Diff line change
Expand Up @@ -706,13 +706,14 @@
\DeclareFieldFormat[incollection]{title}{#1\par}

\DeclareBibliographyDriver{article}{%
\fontsize{9pt}{1em}\bodyfont%
\printfield{title}%
\newblock%
\printnames{author}%
\par%
\newblock%
{%
\footnotesize\addfontfeature{Color=lightgray}\itshape%
\fontsize{8pt}{1em}\bodyfontlight\color{graytext}%
\usebibmacro{journal+issuetitle}%
\setunit{\space}%
\printfield{pages}%
Expand All @@ -726,13 +727,14 @@
}

\DeclareBibliographyDriver{inproceedings}{%
\fontsize{9pt}{1em}\bodyfont%
\printfield{title}%
\newblock%
\printnames{author}%
\par%
\newblock%
{%
\footnotesize\addfontfeature{Color=lightgray}%
\fontsize{8pt}{1em}\bodyfontlight\color{graytext}%
\printfield{booktitle}%
\setunit{\addcomma\space}%
\printfield{year}%
Expand All @@ -744,13 +746,14 @@
}

\DeclareBibliographyDriver{incollection}{%
\fontsize{9pt}{1em}\bodyfont%
\printfield{title}%
\newblock%
\printnames{author}%
\par%
\newblock%
{%
\footnotesize\addfontfeature{Color=lightgray}%
\fontsize{8pt}{1em}\bodyfontlight\color{graytext}%
\printfield{booktitle}%
\setunit{\addcomma\space}%
\printfield{year}%
Expand All @@ -762,13 +765,14 @@
}

\DeclareBibliographyDriver{misc}{%
\fontsize{9pt}{1em}\bodyfont%
\printfield{title}%
\newblock%
\printnames{author}%
\par%
\newblock%
{%
\footnotesize\addfontfeature{Color=lightgray}\itshape%
\fontsize{8pt}{1em}\bodyfontlight\color{graytext}%
\printfield{booktitle}%
\setunit*{\addcomma\space}%
\printfield{note}%
Expand All @@ -782,13 +786,14 @@
}

\DeclareBibliographyDriver{report}{%
\fontsize{9pt}{1em}\bodyfont%
\printfield{title}%
\newblock%
\printnames{author}%
\par%
\newblock%
{%
\footnotesize\addfontfeature{Color=lightgray}\itshape%
\fontsize{8pt}{1em}\bodyfontlight\color{graytext}%
\printfield{type}%
\setunit{\space}%
\printfield{number}%
Expand All @@ -801,7 +806,7 @@

% New syntax for flexible backend (BibLaTeX > v3.3)
\DeclareNameFormat{author}{%
\small\addfontfeature{Color=lightgray}%
\fontsize{9pt}{1em}\bodyfont%
\renewcommand*{\multinamedelim}{\addcomma\addspace}%
\nameparts{#1}%
\ifthenelse{\value{listcount}=1}
Expand All @@ -812,4 +817,4 @@
\ifthenelse{\value{listcount}<\value{liststop}}
{\addcomma\space}
{}
}
}

0 comments on commit f27b669

Please sign in to comment.