Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added a function to customize the biblatex sorting #100

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions cleanthesis.sty
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,11 @@
\define@choicekey*[ct]{cthesis}{bibsys}[\val\bibsysnr]{biber,bibtex}[bibtex]{\def\cthesis@bibsys{#1}}
\setkeys[ct]{cthesis}{bibsys=bibtex}

% OPTION bibsorting
% --> values = nty|nyt|nyvt|anyt|anyvt|ynt|ydnt|none
\define@choicekey*[ct]{cthesis}{bibsorting}[\val\bibsrt]{nty,nyt,nyvt,anyt,anyvt,ynt,ydnt,none}[bibtex]{\def\cthesis@bibsorting{#1}}
\setkeys[ct]{cthesis}{bibsorting=nty}

% OPTION bibfile
% --> values = file name of your bibtex file
\define@key[ct]{cthesis}{bibfile}[bib-refs]{\def\cthesis@bibfile{#1}}
Expand Down Expand Up @@ -284,6 +289,7 @@
\RequirePackage[ % use biblatex for bibliography
backend=\cthesis@bibsys, % - use biber backend (bibtex replacement) or bibtex
style=\cthesis@bibstyle, % - use alphabetic (or numeric) bib style
sorting=\cthesis@bibsorting, % - use sorting (default nty)
natbib=true, % - allow natbib commands
hyperref=true, % - activate hyperref support
backref=true, % - activate backrefs
Expand Down