Skip to content

Commit

Permalink
trying to get bib from posquit0#23 to work
Browse files Browse the repository at this point in the history
  • Loading branch information
plusk01 committed Sep 15, 2017
1 parent 14b515a commit 4d889b2
Show file tree
Hide file tree
Showing 6 changed files with 200 additions and 28 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
*.toc
*.synctex.gz

## BibLaTeX auxillary files:
*.bbl
*.bcf
*.blg

## Intermediate documents:
*.dvi
*-converted-to.*
Expand Down
148 changes: 148 additions & 0 deletions awesome-cv.cls
Original file line number Diff line number Diff line change
Expand Up @@ -704,3 +704,151 @@
\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=verbose,
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}

% 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}
\DeclareFieldFormat[misc]{title}{#1\par}
\DeclareFieldFormat[report]{title}{#1\par}
\DeclareFieldFormat[incollection]{title}{#1\par}

\DeclareBibliographyDriver{article}{%
\fontsize{9pt}{1em}\bodyfont%
\printfield{title}%
\newblock%
\printnames{author}%
\par%
\newblock%
{%
\fontsize{8pt}{1em}\bodyfontlight\color{graytext}%
\usebibmacro{journal+issuetitle}%
\setunit{\space}%
\printfield{pages}%
\newunit%
\printlist{publisher}%
\setunit*{\addcomma\space}%
\printfield{year}%
\newunit%
}
\par\vspace{0.3\baselineskip}
}

\DeclareBibliographyDriver{inproceedings}{%
\fontsize{9pt}{1em}\bodyfont%
\printfield{title}%
\newblock%
\printnames{author}%
\par%
\newblock%
{%
\fontsize{8pt}{1em}\bodyfontlight\color{graytext}%
\printfield{booktitle}%
\setunit{\addcomma\space}%
\printfield{year}%
\setunit{\addcomma\space}%
\printlist{location}%
\newunit%
}
\par\vspace{0.3\baselineskip}
}

\DeclareBibliographyDriver{incollection}{%
\fontsize{9pt}{1em}\bodyfont%
\printfield{title}%
\newblock%
\printnames{author}%
\par%
\newblock%
{%
\fontsize{8pt}{1em}\bodyfontlight\color{graytext}%
\printfield{booktitle}%
\setunit{\addcomma\space}%
\printfield{year}%
\setunit{\addcomma\space}%
\printlist{location}%
\newunit%
}
\par\vspace{0.3\baselineskip}
}

\DeclareBibliographyDriver{misc}{%
\fontsize{9pt}{1em}\bodyfont%
\printfield{title}%
\newblock%
\printnames{author}%
\par%
\newblock%
{%
\fontsize{8pt}{1em}\bodyfontlight\color{graytext}%
\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}{%
\fontsize{9pt}{1em}\bodyfont%
\printfield{title}%
\newblock%
\printnames{author}%
\par%
\newblock%
{%
\fontsize{8pt}{1em}\bodyfontlight\color{graytext}%
\printfield{type}%
\setunit{\space}%
\printfield{number}%
\setunit{\addcomma\space}%
\printfield{year}%
\newunit%
}
\par\vspace{0.3\baselineskip}
}

% New syntax for flexible backend (BibLaTeX > v3.3)
\DeclareNameFormat{author}{%
\fontsize{9pt}{1em}\bodyfont%
\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}
{}
}
Binary file modified examples/resume.pdf
Binary file not shown.
7 changes: 7 additions & 0 deletions examples/resume.tex
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,12 @@

%\quote{``I think this could work. Let's make it happen."}

%-------------------------------------------------------------------------------
% BIBLIOGRAPHY
%-------------------------------------------------------------------------------
\addbibresource{resume/references.bib}

\bibliography{resume/references.bib}

%-------------------------------------------------------------------------------
\begin{document}
Expand Down Expand Up @@ -99,6 +105,7 @@
\input{resume/skills.tex}
\input{resume/extracurricular.tex}
\input{resume/honors.tex}
\input{resume/publications.tex}


%-------------------------------------------------------------------------------
Expand Down
51 changes: 23 additions & 28 deletions examples/resume/publications.tex
Original file line number Diff line number Diff line change
@@ -1,37 +1,32 @@
%-------------------------------------------------------------------------------
% SECTION TITLE
%-------------------------------------------------------------------------------
\cvsection{Writing}

\cvsection{Publications}

%-------------------------------------------------------------------------------
% CONTENT
% SUBSECTION TITLE
%-------------------------------------------------------------------------------
\begin{cventries}
\cvsubsection{Journal Articles}

%---------------------------------------------------------
\cventry
{Founder \& Writer} % Role
{A Guide for Developers in Start-up} % Title
{Facebook Page} % Location
{Jan. 2015 - PRESENT} % Date(s)
{
\begin{cvitems} % Description(s)
\item {Drafted daily news for developers in Korea about IT technologies, issues about start-up.}
\end{cvitems}
}
\begin{refsection}
\nocite{Khan2014Incentive}

\printbibliography[
heading=none,
sorting=ydnt
]
\end{refsection}

%---------------------------------------------------------
\cventry
{Undergraduate Student Reporter} % Role
{AhnLab} % Title
{S.Korea} % Location
{Oct. 2012 - Jul. 2013} % Date(s)
{
\begin{cvitems} % Description(s)
\item {Drafted reports about IT trends and Security issues on AhnLab Company magazine.}
\end{cvitems}
}
%-------------------------------------------------------------------------------
% SUBSECTION TITLE
%-------------------------------------------------------------------------------
\cvsubsection{Conference Proceedings}

%---------------------------------------------------------
\end{cventries}
\begin{refsection}
%\nocite{Khan2014Prototyping}

\printbibliography[
heading=none,
sorting=ydnt
]
\end{refsection}
17 changes: 17 additions & 0 deletions examples/resume/references.bib
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
%-------------------------------------------------------------------------------
% 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}
}

0 comments on commit 4d889b2

Please sign in to comment.