Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- documentclass{article}
- usepackage{lipsum}
- %%%%%%%%%%
- % Colors %
- %%%%%%%%%%
- usepackage{xcolor}
- definecolor{lightgray}{HTML}{989898}
- colorlet{textcolor}{lightgray}
- %%%%%%%%%
- % Fonts %
- %%%%%%%%%
- usepackage[quiet]{fontspec}
- defaultfontfeatures{Mapping=tex-text}
- setmainfont[Mapping=tex-text, Color=textcolor]{Arial}
- %%%%%%%%%%%%
- % Geometry %
- %%%%%%%%%%%%
- setlength{parindent}{0pt}% No paragraph indentation
- setlength{parskip}{.5baselineskip plus 0.1baselineskip minus 0.1baselineskip}
- usepackage[left=2cm,top=2cm,right=2cm,bottom=2cm]{geometry}
- %%%%%%%%%%%%%%%%
- % Bibliography %
- %%%%%%%%%%%%%%%%
- begin{filecontents}{jobname.bib}
- @article{Doe2011,
- author = {Doe, John},
- journal = {Nucleic Acids Research},
- pages = {1--3},
- title = {{Title of paper}},
- volume = {39},
- year = {2011}
- }
- @article{Smith2013,
- author = {Smith, Josh},
- journal = {Nature},
- pages = {1--6},
- title = {{Overly complicated title}},
- volume = {85},
- year = {2013}
- }
- @article{Adams2016,
- author = {Adams, Brian},
- journal = {Science},
- pages = {10--15},
- title = {{Another absurd title}},
- volume = {2},
- year = {2016}
- }
- @phdthesis{Surname2012,
- author = {Surname, Name},
- location = {Some University},
- title = {{Some suitable thesis name}},
- type = {PhD Thesis},
- url = {http://thesis},
- year = {2012}
- }
- @misc{Willis2013,
- location = {Some Uni},
- note = {Work In Progress report},
- author = {Willis, William},
- title = {{This is the same title always}},
- type = {TALK},
- month = {07},
- year = {2013}
- }
- @misc{Willis2014,
- location = {Another Uni},
- note = {Poster Symposium},
- author = {Willis, William},
- title = {{This is the same title always}},
- type = {POSTER},
- month = {09},
- year = {2014}
- }
- @misc{Willis2014b,
- location = {Yet Another Uni},
- author = {Willis, William},
- title = {{This is the same title always}},
- type = {TALK},
- month = {09},
- year = {2014}
- }
- @misc{Willis2015,
- location = {Research Center},
- author = {Willis, William},
- title = {{New title}},
- type = {TALK},
- month = {09},
- year = {2014}
- }
- end{filecontents}
- usepackage{biblatex}
- addbibresource{jobname.bib}
- begin{document}
- lipsum[1]
- nocite{*}
- printbibliography
- end{document}
- documentclass{article}
- usepackage{amssymb} usepackage{lipsum}
- %%%%%%%%%%
- % Colors %
- %%%%%%%%%%
- usepackage{xcolor}
- definecolor{lightgray}{HTML}{989898}
- colorlet{textcolor}{lightgray}
- %%%%%%%%%
- % Fonts %
- %%%%%%%%%
- usepackage[quiet]{fontspec}
- defaultfontfeatures{Mapping=tex-text}
- setmainfont[Mapping=tex-text, Color=textcolor]{Arial}
- %%%%%%%%%%%%
- % Geometry %
- %%%%%%%%%%%%
- setlength{parindent}{0pt}% No paragraph indentation
- setlength{parskip}{.5baselineskip plus 0.1baselineskip minus 0.1baselineskip}
- usepackage[margin=2cm]{geometry}
- %%%%%%%%%%%%%%%%
- % Bibliography %
- %%%%%%%%%%%%%%%%
- begin{filecontents}{jobname.bib}
- @article{Doe2011,
- author = {Doe, John},
- journal = {Nucleic Acids Research},
- pages = {1--3},
- title = {{Title of paper}},
- volume = {39},
- year = {2011}
- }
- @article{Smith2013,
- author = {Smith, Josh},
- journal = {Nature},
- pages = {1--6},
- title = {{Overly complicated title}},
- volume = {85},
- year = {2013}
- }
- @article{Adams2016,
- author = {Adams, Brian},
- journal = {Science},
- pages = {10--15},
- title = {{Another absurd title}},
- volume = {2},
- year = {2016}
- }
- @thesis{Surname2012,
- author = {Surname, Name},
- location = {Some University},
- title = {{Some suitable thesis name}},
- url = {http://thesis},
- year = {2012}
- }
- @misc{Willis2013,
- location = {Some Uni},
- note = {Work In Progress report},
- author = {Willis, William},
- title = {{This is the same title always}},
- type = {TALK},
- month = {07},
- year = {2013}
- }
- @misc{Willis2014,
- location = {Another Uni},
- note = {Poster Symposium},
- author = {Willis, William},
- title = {{This is the same title always}},
- type = {POSTER},
- month = {09},
- year = {2014}
- }
- @misc{Willis2014b,
- location = {Yet Another Uni},
- author = {Willis, William},
- title = {{This is the same title always}},
- type = {TALK},
- month = {09},
- year = {2014}
- }
- @misc{Willis2015,
- location = {Research Center},
- author = {Willis, William},
- title = {{New title}},
- type = {TALK},
- month = {09},
- year = {2014}
- }
- end{filecontents}
- usepackage{xpatch}%
- usepackage[bibstyle=authortitle, defernumbers=true, sorting=tyn]{biblatex}%
- addbibresource{jobname.bib}
- DeclareSortingScheme{tyn}{
- sort{
- field{presort}
- }
- sort[final]{
- field{sortkey}
- }
- sort{
- field{sorttitle}
- field{title}
- }
- sort{
- field{sortyear}
- field{year}
- }
- sort{
- field{sortname}
- field{author}
- field{editor}
- field{translator}
- field{sorttitle}
- field{title}
- }
- sort{
- field{volume}
- literal{0}
- }
- }
- setlength{bibhang}{2em}
- renewcommand{newunitpunct}{\}
- DeclareFieldFormat{type}{char"25BAaddspaceaddthinspaceifbibstring{#1}{bibstring{#1}}{#1}}%
- DeclareFieldFormat
- [article,inbook,incollection,inproceedings,patent,thesis,unpublished, misc]
- {title}{mkbibbold{#1}}
- xpatchbibmacro{author}{%
- usebibmacro{bbx:dashcheck}
- {bibnamedash}}
- {}{}{}
- begin{document}
- lipsum[1]
- nocite{*}
- printbibheading
- printbibliography[type=article,heading=subbibliography,
- title={bfseries Articles}]
- printbibliography[type=thesis, heading=subbibliography,
- title={bfseries Thesis}]
- printbibliography[type=misc, heading=subbibliography,
- title={bfseries Other}]
- end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement