summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/easyfloats/doc/preamble/bibliography.tex
blob: ad24a2b4456d05a0ccbc6556bc2a6c24dbffd22c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
% !TeX root = ../easyfloats.tex

% Copyright © 2020 E. Zöllner
% Alternatively to the terms of the LPPL, at your choice,
% you can redistribute and/or modify this file under the
% terms of the Do What The Fuck You Want To Public License, Version 2,
% as published by Sam Hocevar. See http://www.wtfpl.net/about/.

\usepackage[%
	sorting=none, % none=citation order
]{biblatex}

\setcounter{biburllcpenalty}{8000}
\setcounter{biburlucpenalty}{8000}
\setcounter{biburlnumpenalty}{8000}

\addbibresource{\jobname.bib}

\SetCiteCommand\autocite

\newcommand{\mycite}[2][]{%
	\citetitle{#2}~\autocite[#1]{#2}%
}

%https://tex.stackexchange.com/a/108349
\DeclareCiteCommand{\citetitle}
	{\boolfalse{citetracker}%
	 \boolfalse{pagetracker}%
	 \usebibmacro{prenote}}
	{\ifciteindex
		 {\indexfield{indextitle}}
		 {}%
	 \printtext[bibhyperref]{\printfield[citetitle]{labeltitle}}}
	{\multicitedelim}
	{\usebibmacro{postnote}}