Skip to content

Commit

Permalink
switching to biblatex
Browse files Browse the repository at this point in the history
  • Loading branch information
tvercaut committed Feb 26, 2024
1 parent 894643d commit 631e1d8
Show file tree
Hide file tree
Showing 8 changed files with 136 additions and 106 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@
*.fdb_latexmk
*.fls
*.xbb
*.bcf
*.run.xml

_*_.synctex.gz
_*_.tex

.#
.#*
36 changes: 31 additions & 5 deletions FormatAndDefsThesisExtra.tex
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,35 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Bibliography
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\bibliographystyle{these}
\usepackage[style=alphabetic,maxnames=99,maxcitenames=1,giveninits=false,uniquename=init,backref=true]{biblatex}
% Make parenthical citations the default
\renewcommand\cite{\parencite}

\DeclareCiteCommand{\citet}
{\boolfalse{citetracker}%
\boolfalse{pagetracker}%
\usebibmacro{prenote}}
{\ifciteindex
{\indexnames{labelname}}
{}%
\printtext[bibhyperref]{\printnames{labelname}~[\printfield{year}]}}
{\multicitedelim}
{\usebibmacro{postnote}}

\renewcommand*{\labelalphaothers}{}
\DeclareLabelalphaTemplate{
\labelelement{
\field[final]{shorthand}
\field[names=1]{labelname}
\field{label}
}
\labelelement{
\literal{\addhighpenspace}
}
\labelelement{
\field{year}
}
}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Hyperreferences
Expand All @@ -188,11 +216,9 @@
\definecolor{citecol}{rgb}{0,0,0}

\ifpdf
\usepackage[backref=page,pdfusetitle,pdfpagelabels=true]
{hyperref}
\usepackage[pdfusetitle,pdfpagelabels=true]{hyperref}
\else
\usepackage[backref=page,dvips,pdfusetitle,pdfpagelabels=true]
{hyperref}
\usepackage[dvips,pdfusetitle,pdfpagelabels=true]{hyperref}
\fi

\hypersetup
Expand Down
2 changes: 1 addition & 1 deletion Introduction.tex
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ \chapter{Introduction}
\begin{minipage}[b]{0.9\linewidth}
\small
\textbf{Foreword\,}
This chapter needs a foreword. It is an \emph{in extenso} reproduction of~\cite{Ourselin:MICCAI:00}.
This chapter needs a foreword. It is an \emph{in extenso} reproduction of~\cite{Ourselin:MICCAI:00}. In \citet{Ourselin:MICCAI:00}, we did great work.
\end{minipage}
\end{center}

Expand Down
Loading

0 comments on commit 631e1d8

Please sign in to comment.