| 1 |
% !TeX root = ../easyfloats.tex |
| 2 |
|
| 3 |
% Copyright © 2020 E. Zöllner |
| 4 |
% Alternatively to the terms of the LPPL, at your choice, |
| 5 |
% you can redistribute and/or modify this file under the |
| 6 |
% terms of the Do What The Fuck You Want To Public License, Version 2, |
| 7 |
% as published by Sam Hocevar. See http://www.wtfpl.net/about/. |
| 8 |
|
| 9 |
\usepackage[% |
| 10 |
sorting=none, % none=citation order |
| 11 |
datamodel=my_biblatex_data_model, |
| 12 |
]{biblatex} |
| 13 |
|
| 14 |
\setcounter{biburllcpenalty}{8000} |
| 15 |
\setcounter{biburlucpenalty}{8000} |
| 16 |
\setcounter{biburlnumpenalty}{8000} |
| 17 |
|
| 18 |
\addbibresource{\jobname.bib} |
| 19 |
|
| 20 |
\SetCiteCommand\autocite |
| 21 |
|
| 22 |
\newcommand{\mycite}[2][]{% |
| 23 |
\citetitle{#2}~\autocite[#1]{#2}% |
| 24 |
} |
| 25 |
|
| 26 |
%https://tex.stackexchange.com/a/108349 |
| 27 |
\DeclareCiteCommand{\citetitle} |
| 28 |
{\boolfalse{citetracker}% |
| 29 |
\boolfalse{pagetracker}% |
| 30 |
\usebibmacro{prenote}} |
| 31 |
{\ifciteindex |
| 32 |
{\indexfield{indextitle}} |
| 33 |
{}% |
| 34 |
\printtext[bibhyperref]{\printfield[citetitle]{labeltitle}}} |
| 35 |
{\multicitedelim} |
| 36 |
{\usebibmacro{postnote}} |
| 37 |
|
| 38 |
|
| 39 |
\DeclareFieldFormat{texdoc}{\texttt{texdoc #1}} |
| 40 |
|
| 41 |
\renewbibmacro*{doi+eprint+url}{% |
| 42 |
\printfield{texdoc}% |
| 43 |
\newunit\newblock |
| 44 |
\iftoggle{bbx:doi} |
| 45 |
{\printfield{doi}} |
| 46 |
{}% |
| 47 |
\newunit\newblock |
| 48 |
\iftoggle{bbx:eprint} |
| 49 |
{\usebibmacro{eprint}} |
| 50 |
{}% |
| 51 |
\newunit\newblock |
| 52 |
\iftoggle{bbx:url} |
| 53 |
{\usebibmacro{url+urldate}} |
| 54 |
{}} |