-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtemplate.config.tex
208 lines (196 loc) · 7.62 KB
/
template.config.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
% bugfixes ---------------------------------------------------------------------
%\let\accentvec\vec% % llncs with amsmath bugfix
\RequirePackage{amsmath} % llncs with amsmath bugfix
% ------------------------------------------------------------------------------
% docuemnt class ---------------------------------------------------------------
\documentclass[
a4paper, % use a5paper for ISO A5; use a4paper for ISO A4
% pdftex, % PDF output
% ngerman, % Support for German
10pt, % font size
%conference, % enable for IEEE style
%romanappendices, % enable for IEEE style
runningheads, % enable for LLNCS style
%]{IEEEtran} % enable for IEEE style
]{llncs} % enable for LLNCS style
% ------------------------------------------------------------------------------
% bugfixes ---------------------------------------------------------------------
%\let\spvec\vec % llncs with amsmath bugfix
%\let\vec\accentvec % llncs with amsmath bugfix
% ------------------------------------------------------------------------------
% disable commands -------------------------------------------------------------
\makeatletter
\newcommand{\dontusepackage}[2][]{%
\@namedef{ver@#2.sty}{9999/12/31}%
\@namedef{opt@#2.sty}{#1}}
\makeatother
%to avoid warnings with llncs + tocstyle ("dottedtocline" issue)
%\dontusepackage[tocindentauto]{tocstyle}
%\newcommand{\usetocstyle}[1]{}
%\newcommand{\settocstylefeature}[2]{}
% ------------------------------------------------------------------------------
% basic config -----------------------------------------------------------------
\input{lib/resources/config/default}
%\usepackage[ngerman]{babel} % Support for German
%\usepackage[babel,autostyle=true,german=quotes]{csquotes} % Support for German
\usepackage{float} % Provides the H float modifier option
%\usepackage{cite} % Cite references %%for bibtex
\usepackage[backend=biber,
style=numeric-comp,%ieee,%numeric-comp
maxnames=3,
maxcitenames=3,
maxbibnames=3,
doi=false,
isbn=false,
url=false,
%dashed=false
]{biblatex}
%\renewbibmacro*{bbx:savehash}{} % to enabled the "dashed=false" option in ieee
\addbibresource{template.bib}
\IfFileExists{global-do-not-edit.bib}{\addbibresource{global-do-not-edit.bib}}{}
% ------------------------------------------------------------------------------
% acronyms ---------------------------------------------------------------------
\usepackage{acro}
%% uncomment if you use a list of acronyms
%% (note: you might need a recent version of this package)
%\DeclareAcroPageStyle{dotfill}{inline}{
% punct = true,
% punct-symbol = \linebreak[1]\null\dotfill\nobreak%
%}
%\acsetup{
% single=false,
% sort=true,
% list-style=longtable,
% page-style=dotfill, % or =plain
% index, % migh result in 'pdfTeX warning (dest): name... has been referenced but does not exist, replaced by a fixed one'
% pages=first,
% page-name={},
% pages-name={},
%}
\robustify\footnote%
\robustify\url%
\newif\ifacrousefootnote%
\newcommand\acfootnote[1]{\ifacrousefootnote\footnote{#1}\fi}
\makeatletter\newif\ifnewacro%
\@ifpackagelater{acro}{2015/08/15}{% version 2.0 or later
\setboolean{newacro}{true}
}{% else hide footnotes and citations
\setboolean{newacro}{false}
\typeout{warning: your acro package is too old (<2.0)}
}%
\makeatother
\ifnewacro% show footnotes only once
\ExplSyntaxOn%
\RenewAcroCommand\ac%
{
\acro_if_acronym_used:nF {#1}
{ \acrousefootnotetrue\acro_cite: }
\acro_use:n {#1}
}
\RenewAcroCommand\Ac%
{
\acro_if_acronym_used:nF {#1}
{ \acrousefootnotetrue\acro_cite: }
\acro_first_upper:
\acro_use:n {#1}
}
\NewAcroCommand\aclu%
{
\acro_if_acronym_used:nF {#1}
{ \acrousefootnotetrue\acro_cite: }
\acro_long:n {#1}
}
\NewAcroCommand\Aclu%
{
\acro_if_acronym_used:nF {#1}
{ \acrousefootnotetrue\acro_cite: }
\acro_first_upper:
\acro_long:n {#1}
}
% genitive:
\ProvideAcroEnding{genitive}{}{s}
\NewAcroCommand \acg {
\acro_genitive:
\acro_use:n {#1}
}
\NewAcroCommand \aclg {
\acro_genitive:
\acro_long:n {#1}
}
\NewAcroCommand \acsg {
\acro_genitive:
\acro_short:n {#1}
}
\NewAcroCommand \acfg {
\acro_genitive:
\acro_first:n {#1}
}
% dative:
\ProvideAcroEnding{dative}{}{}
\NewAcroCommand \acd {
\acro_dative:
\acro_use:n {#1}
}
\NewAcroCommand \acsd {
\acro_dative:
\acro_short:n {#1}
}
\NewAcroCommand \acld {
\acro_dative:
\acro_long:n {#1}
}
\NewAcroCommand \acfd {
\acro_dative:
\acro_first:n {#1}
}
\ExplSyntaxOff%
\else
\newcommand{\aclu}[1]{\acs{#1}}
\newcommand{\Aclu}[1]{\Acs{#1}}
\fi
% ------------------------------------------------------------------------------
% hyperlinks (last package) ----------------------------------------------------
\usepackage{hyperxmp} % Semantic meta data (RDF/XMP)
\makeatletter
\@ifpackageloaded{tex4ht}{\usepackage[tex4ht]{hyperref}}{
\usepackage[pdftex, % Hyperlinks in PDFs
raiselinks=true, % calculate real height of the link
breaklinks, % break links
%backref=page, % backlinks in bibliography (section, slide, page, none)
%pagebackref=true, % backlinks in bibliography
hyperindex=true, % backlinkex index
linktocpage=true, % ToC links pages
bookmarks=true, % Bookmarks for PDF viewers
bookmarksopen=true, % Open bookmarks
bookmarksopenlevel=1, % How many levels to open
bookmarksnumbered=true, % Numbers in the bookmarks
bookmarkstype=toc, % Type of bookmark
plainpages=false, % Anchors even on plain pages?
pageanchor=true, % Pages are linkable
pdfstartview=FitH, % Open document with Fit Width
pdfpagelabels=true, % set PDF page labels
pdfpagemode=UseOutlines, % Show bookmarks in viewer
colorlinks, % Show colored links
linkcolor=LinkColor, % Link color
urlcolor=LinkColor, % URL color
anchorcolor=LinkColor, % Anchor color
citecolor=LinkColor, % Cite color
menucolor=LinkColor, % Menu color
hypertexnames=true, % Whatever ;)
pdfencoding=auto,
%draft, % Disable hyperlinks for IEEEtran / EDAS
]{hyperref} % Use hyperlinks
%\renewcommand*{\backref}[1]{[cited at page #1]} % Show formatted backlinks
%\renewcommand{\url}[1]{#1} % Disable hyperlinks for IEEEtran / EDAS
%\usepackage{nohyperref} % Disable hyperlinks for IEEEtran / EDAS
%\renewcommand*{\todo}[1]{} % For submission
%\renewcommand*{\todotext}[1]{} % For submission
%\renewcommand*{\sidenote}[1]{} % For submission
}
\makeatother
\usepackage{cleveref} % To ref footnotes twice (use after hyperref)
% ------------------------------------------------------------------------------
% meta data --------------------------------------------------------------------
\input{template.meta}
\input{lib/resources/config/pdfmetadata}
% ------------------------------------------------------------------------------