This repository has been archived by the owner on Nov 13, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
references.tex
56 lines (56 loc) · 1.86 KB
/
references.tex
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
% A Hack for breaking long URLs in the references
\makeatletter
%\AtBeginDocument{%
\newlength{\temp@x}%
\newlength{\temp@y}%
\newlength{\temp@w}%
\newlength{\temp@h}%
\def\my@coords#1#2#3#4{%
\setlength{\temp@x}{#1}%
\setlength{\temp@y}{#2}%
\setlength{\temp@w}{#3}%
\setlength{\temp@h}{#4}%
\adjustlengths{}%
\my@pdfliteral{\strip@pt\temp@x\space\strip@pt\temp@y\space\strip@pt\temp@w\space\strip@pt\temp@h\space re}}%
\ifpdf
\typeout{In PDF mode}%
\def\my@pdfliteral#1{\pdfliteral page{#1}}% I don't know why % this command...
\def\adjustlengths{}%
\fi
\ifxetex
\def\my@pdfliteral #1{\special{pdf: literal direct #1}}% isn't equivalent to this one
\def\adjustlengths{\setlength{\temp@h}{-\temp@h}\addtolength{\temp@y}{1in}\addtolength{\temp@x}{-1in}}%
\fi%
\def\Hy@colorlink#1{%
\begingroup
\ifHy@ocgcolorlinks
\def\Hy@ocgcolor{#1}%
\my@pdfliteral{q}%
\my@pdfliteral{7 Tr}% Set text mode to clipping-only
\else
\HyColor@UseColor#1%
\fi
}%
\def\Hy@endcolorlink{%
\ifHy@ocgcolorlinks%
\my@pdfliteral{/OC/OCPrint BDC}%
\my@coords{0pt}{0pt}{\pdfpagewidth}{\pdfpageheight}%
\my@pdfliteral{F}% Fill clipping path (the url's text) with
% current color
%
\my@pdfliteral{EMC/OC/OCView BDC}%
\begingroup%
\expandafter\HyColor@UseColor\Hy@ocgcolor%
\my@coords{0pt}{0pt}{\pdfpagewidth}{\pdfpageheight}%
\my@pdfliteral{F}% Fill clipping path (the url's text)
% with \Hy@ocgcolor
\endgroup%
\my@pdfliteral{EMC}%
\my@pdfliteral{0 Tr}% Reset text to normal mode
\my@pdfliteral{Q}%
\fi
\endgroup
}%
%}
\makeatother
\printbibliography[title=References]