summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/easyfloats/doc/preamble/bibliography.tex
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2020-12-21 03:01:35 +0000
committerNorbert Preining <norbert@preining.info>2020-12-21 03:01:35 +0000
commit4cc7922324b7a08ba0418e8f245cf1dcfa1891ac (patch)
treecd90cb6c072285e779f7555a85966b81a8757e15 /macros/latex/contrib/easyfloats/doc/preamble/bibliography.tex
parent2d9d44100d72263a7df34c12aaa89dbe6ee6fe0c (diff)
CTAN sync 202012210301
Diffstat (limited to 'macros/latex/contrib/easyfloats/doc/preamble/bibliography.tex')
-rw-r--r--macros/latex/contrib/easyfloats/doc/preamble/bibliography.tex35
1 files changed, 35 insertions, 0 deletions
diff --git a/macros/latex/contrib/easyfloats/doc/preamble/bibliography.tex b/macros/latex/contrib/easyfloats/doc/preamble/bibliography.tex
new file mode 100644
index 0000000000..ad24a2b445
--- /dev/null
+++ b/macros/latex/contrib/easyfloats/doc/preamble/bibliography.tex
@@ -0,0 +1,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}}