From bfa8e82a2b3aebcce33ed120448fc37330d1df8a Mon Sep 17 00:00:00 2001 From: Amin Khan Date: Fri, 22 Jan 2016 11:00:56 +0000 Subject: [PATCH 01/10] Set main font, same as for body --- awesome-cv.cls | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/awesome-cv.cls b/awesome-cv.cls index 5ea8bb9..c4dc821 100644 --- a/awesome-cv.cls +++ b/awesome-cv.cls @@ -207,6 +207,14 @@ BoldItalicFont=*-SemiboldIt ]{SourceSansPro} +% Set main font, same as for body (default is Source Sans Pro) +\setmainfont[ + Path=\@fontdir, + UprightFont=*-Regular, + ItalicFont=*-It, + BoldFont=*-Bold, + BoldItalicFont=*-BoldIt +]{SourceSansPro} %------------------------------------------------------------------------------- % Configuration for styles From 3284a954c204e1e174ba766aa4a283d47285e7ee Mon Sep 17 00:00:00 2001 From: Amin Khan Date: Fri, 22 Jan 2016 11:06:17 +0000 Subject: [PATCH 02/10] Add BibLaTeX package --- awesome-cv.cls | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/awesome-cv.cls b/awesome-cv.cls index c4dc821..35f0df8 100644 --- a/awesome-cv.cls +++ b/awesome-cv.cls @@ -675,3 +675,23 @@ \letterenclosurestyle{\@letterenclname: \@letterenclosure} \\ } } + +%------------------------------------------------------------------------------- +% Bibliography +%------------------------------------------------------------------------------- +%\RequirePackage[style=verbose, maxnames=99, sorting=ydnt]{biblatex} +\RequirePackage[ % BibLaTeX + sorting=ydnt, % Sorts entries by year (descending order), name, title + style=numeric, + doi=false, + isbn=true, + url=false, + eprint=false + backref = false, % include back references in bibliography + maxcitenames=3, % affects only the citations in the document body + maxbibnames=99, % affects only the bibliography, pass 99 to print all + hyperref=true, + block=none, + backend=biber % {Options: bibtex, biber} + ]{biblatex} + \ No newline at end of file From 9ba20694c77a862b53125808f0f87fbb0b17b84d Mon Sep 17 00:00:00 2001 From: Amin Khan Date: Fri, 22 Jan 2016 11:10:42 +0000 Subject: [PATCH 03/10] 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 From c7dd995f3b35d2aec062e7ea38a7b7822dc52031 Mon Sep 17 00:00:00 2001 From: Amin Khan Date: Fri, 22 Jan 2016 11:16:02 +0000 Subject: [PATCH 04/10] Publications tex file citing BibLaTeX entries --- examples/cv.tex | 3 ++- examples/cv/publications.tex | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 examples/cv/publications.tex diff --git a/examples/cv.tex b/examples/cv.tex index f3ea752..cbc5a83 100644 --- a/examples/cv.tex +++ b/examples/cv.tex @@ -89,7 +89,8 @@ \input{cv/extracurricular.tex} \input{cv/honors.tex} \input{cv/presentation.tex} -\input{cv/writing.tex} +%\input{cv/writing.tex} +\input{cv/publications.tex} \input{cv/committees.tex} diff --git a/examples/cv/publications.tex b/examples/cv/publications.tex new file mode 100644 index 0000000..4bce786 --- /dev/null +++ b/examples/cv/publications.tex @@ -0,0 +1,33 @@ +%------------------------------------------------------------------------------- +% SECTION TITLE +%------------------------------------------------------------------------------- +\cvsection{Publications} + +%------------------------------------------------------------------------------- +% SUBSECTION TITLE +%------------------------------------------------------------------------------- +\cvsubsection{Journal Articles} + +\begin{refsection} + \nocite{Khan2014Incentive} + \nocite{Selimi2015Cloud} + + \printbibliography[ + heading=none, + sorting=ydnt + ] +\end{refsection} + +%------------------------------------------------------------------------------- +% SUBSECTION TITLE +%------------------------------------------------------------------------------- +\cvsubsection{Conference Proceedings} + +\begin{refsection} + \nocite{Khan2014Prototyping} + + \printbibliography[ + heading=none, + sorting=ydnt + ] +\end{refsection} From 90e8b0a4ccfb60cc9e71c6f75d3b342befb91d72 Mon Sep 17 00:00:00 2001 From: Amin Khan Date: Fri, 22 Jan 2016 11:40:38 +0000 Subject: [PATCH 05/10] Bibtex file with references --- examples/cv.tex | 4 ++++ examples/cv/references.bib | 45 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 examples/cv/references.bib diff --git a/examples/cv.tex b/examples/cv.tex index cbc5a83..a3186e3 100644 --- a/examples/cv.tex +++ b/examples/cv.tex @@ -64,6 +64,10 @@ \quote{``Make the change that you want to see in the world."} +%------------------------------------------------------------------------------- +% BIBLIOGRAPHY +%------------------------------------------------------------------------------- +\addbibresource{cv/references.bib} %------------------------------------------------------------------------------- \begin{document} diff --git a/examples/cv/references.bib b/examples/cv/references.bib new file mode 100644 index 0000000..6cc81e6 --- /dev/null +++ b/examples/cv/references.bib @@ -0,0 +1,45 @@ +%------------------------------------------------------------------------------- +% REPLACE WITH YOUR PUBLICATIONS +%------------------------------------------------------------------------------- + +@Article{Khan2014Incentive, + author = {Khan, Amin M and B{\"{u}}y{\"{u}}ksahin, {\"{U}}mit C. and Freitag, Felix}, + title = {{Incentive-based resource assignment and regulation for collaborative cloud services in community networks}}, + journal = {Journal of Computer and System Sciences}, + year = {2015}, + volume = {81}, + number = {8}, + pages = {1479--1495}, + month = dec, + doi = {10.1016/j.jcss.2014.12.023}, + issn = {00220000}, + url = {http://www.sciencedirect.com/science/article/pii/S0022000014001871 http://linkinghub.elsevier.com/retrieve/pii/S0022000014001871} +} + +@Article{Selimi2015Cloud, + author = {Selimi, Mennan and Khan, Amin M and Dimogerontakis, Emmanouil and Freitag, Felix and Centelles, Roger Pueyo}, + title = {{Cloud services in the Guifi.net community network}}, + journal = {Computer Networks}, + year = {2015}, + volume = {93}, + number = {P2}, + pages = {373--388}, + month = dec, + doi = {10.1016/j.comnet.2015.09.007}, + issn = {13891286}, + url = {http://linkinghub.elsevier.com/retrieve/pii/S1389128615003175} +} + +@InProceedings{Khan2014Prototyping, + author = {Khan, Amin M and Buyuksahin, Umit Cavus and Freitag, Felix}, + title = {{Prototyping Incentive-Based Resource Assignment for Clouds in Community Networks}}, + booktitle = {28th IEEE International Conference on Advanced Information Networking and Applications (AINA 2014)}, + year = {2014}, + pages = {719--726}, + address = {Victoria, Canada}, + month = may, + publisher = {IEEE}, + doi = {10.1109/AINA.2014.88}, + isbn = {978-1-4799-3630-4}, + url = {http://ieeexplore.ieee.org/lpdocs/epic03/wrapper.htm?arnumber=6838735} +} \ No newline at end of file From df99331e97006216fc46117bb0f38e69cb8bc2e6 Mon Sep 17 00:00:00 2001 From: Amin Khan Date: Fri, 22 Jan 2016 11:43:22 +0000 Subject: [PATCH 06/10] Avoid splitting entries across page break --- awesome-cv.cls | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/awesome-cv.cls b/awesome-cv.cls index 9d43d77..13b55cf 100644 --- a/awesome-cv.cls +++ b/awesome-cv.cls @@ -682,11 +682,11 @@ %\RequirePackage[style=verbose, maxnames=99, sorting=ydnt]{biblatex} \RequirePackage[ % BibLaTeX sorting=ydnt, % Sorts entries by year (descending order), name, title - style=numeric, + style=verbose, doi=false, isbn=true, url=false, - eprint=false + eprint=false, backref = false, % include back references in bibliography maxcitenames=3, % affects only the citations in the document body maxbibnames=99, % affects only the bibliography, pass 99 to print all @@ -695,6 +695,14 @@ backend=biber % {Options: bibtex, biber} ]{biblatex} +% Avoid splitting entries across page break (only for 3 or fewer lines) +% Tip: http://tex.stackexchange.com/a/51261 +\AtBeginEnvironment{thebibliography}{% + \clubpenalty10000 + \@clubpenalty \clubpenalty + \widowpenalty10000 + \interlinepenalty5000} + % Customized format, based on Fancy CV template created by Adrien Friggeri \DeclareFieldFormat[article]{title}{#1\par} \DeclareFieldFormat[inproceedings]{title}{#1\par} From d54fd5156434668b39ca4c7afdc977b90b829482 Mon Sep 17 00:00:00 2001 From: Amin Khan Date: Tue, 10 May 2016 20:03:49 +0100 Subject: [PATCH 07/10] Mention how to generate list of publications --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index 92598ed..a1ca092 100644 --- a/README.md +++ b/README.md @@ -57,6 +57,19 @@ $ xelatex {your-cv}.tex This should result in the creation of ``{your-cv}.pdf`` +##### List of Publications + +You can generate list of publication from [**BibTeX**](http://www.bibtex.org/) source files. +[**BibLaTeX**](https://www.ctan.org/pkg/biblatex) and [**biber**](https://www.ctan.org/pkg/biber) should be available. + +To generate document with the list of publications, at a command prompt, run + +```bash +$ xelatex {your-cv}.tex +$ biber {your-cv} +$ xelatex {your-cv}.tex +``` + ## Credit From 1f1bd17583845b3f23bee82043f8c11c58e8abd4 Mon Sep 17 00:00:00 2001 From: Amin Khan Date: Tue, 10 May 2016 20:04:19 +0100 Subject: [PATCH 08/10] Ignore auxiliary fles generated by BibLaTeX --- .gitignore | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.gitignore b/.gitignore index 4a9b93d..c9cccd7 100644 --- a/.gitignore +++ b/.gitignore @@ -8,6 +8,11 @@ *.out *.toc +## BibLaTeX auxiliary files: +*.bbl +*.bcf +*.blg + ## Intermediate documents: *.dvi *-converted-to.* From 6c08ff11ff1c388460d60046a1ad0c8b96b2465e Mon Sep 17 00:00:00 2001 From: Amin Khan Date: Tue, 10 May 2016 20:06:40 +0100 Subject: [PATCH 09/10] Fix issue with \DeclareNameFormat ## See for details - https://github.com/plk/biblatex/issues/372 --- awesome-cv.cls | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/awesome-cv.cls b/awesome-cv.cls index 687be08..1ab7dc7 100644 --- a/awesome-cv.cls +++ b/awesome-cv.cls @@ -799,10 +799,17 @@ \par\vspace{0.3\baselineskip} } +% New syntax for flexible backend (BibLaTeX > v3.3) \DeclareNameFormat{author}{% \small\addfontfeature{Color=lightgray}% - \ifblank{#3}{}{#3\space}#1% + \renewcommand*{\multinamedelim}{\addcomma\addspace}% + \nameparts{#1}% + \ifthenelse{\value{listcount}=1} + {\ifblank{\namepartgiven}{}{\namepartgiven\space}% + \namepartfamily}% + {\ifblank{\namepartgiven}{}{\namepartgiven\space}% + \namepartfamily}% \ifthenelse{\value{listcount}<\value{liststop}} - {\addcomma\space} - {}% + {\addcomma\space} + {} } \ No newline at end of file From 930f35dee489c21a193d711e6633833a0cf49823 Mon Sep 17 00:00:00 2001 From: John Kegelman Date: Sun, 4 Dec 2016 20:09:04 -0800 Subject: [PATCH 10/10] Make font and fontsize consistent. --- awesome-cv.cls | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/awesome-cv.cls b/awesome-cv.cls index 1ab7dc7..023a8cc 100644 --- a/awesome-cv.cls +++ b/awesome-cv.cls @@ -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}% @@ -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}% @@ -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}% @@ -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}% @@ -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}% @@ -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} @@ -812,4 +817,4 @@ \ifthenelse{\value{listcount}<\value{liststop}} {\addcomma\space} {} -} \ No newline at end of file +}