-
Notifications
You must be signed in to change notification settings - Fork 0
/
dithesis.cls
748 lines (659 loc) · 18.3 KB
/
dithesis.cls
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
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
% dithesis.cls
%
% A LaTeX2e document class for writing MSc theses in English for the Department
% of Informatics and Telecommunications (DI&T) of the National and Kapodistrian
% University of Athens (NKUA).
%
% Copyright (c) 2014, 2015 Charalampos S. Nikolaou <[email protected]>
% 2017 Ergys Dona <[email protected]>
%
% This work may be distributed and/or modified under the conditions of the
% LaTeX Project Public License. The latest version of this license is in
% http://www.latex-project.org/lppl.txt.
%
% This work consists of the following files:
% dithesis.cls
% This document class file
%
% sample.tex
% A sample document demonstrating the use of this class file
%
% emblems/
% A directory containing three colored versions of the official emblem of
% the National and Kapodistrian University of Athens.
%
% fonts/
% A directory containing the Arial family TrueType fonts. The directory
% also includes a README file with instructions on installing the fonts
% in your system (assuming Unix-based).
% Document Class Options
%
% inscr
% If present, then a page with the inscription provided via the command
% \inscription{} is printed.
%
% ack
% If present, then a page with the acknowledgements provided via the
% command \acksEn{} is printed.
%
% preface
% If present, then a preface page is included just before the
% introductory chapter. The content of this page is controled via the
% command \preface{}.
%
% lop
% If present, then a page with the list of puclications will be included.
%
% Document Versions
%
% Version 1.2, 2017/02/26
% Refactored the document to allow it to be used to write BSc Theses.
%
% Version 1.1, 2015/11/06
% Updated document class so as to be compatible with the template file
% regarding the appearance of headers/footers and appendix names. Require
% also package `longtable' for being used for abbreviations/acronyms.
%
% Version 1.0, 2014/12/08
% Initial attempt at creating the first class file for LaTeX Theses in
% DI&T, NKUA.
% Known Issues
%
% * Chapter titles are not appearing in capital letters in the ToC, although
% in other places this has been taken care of for good. Thus, one is enforced
% to type chapter titles in capital letters, so as to be compatible with the
% requirements of the department.
%
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{dithesis}[2017/02/26 v1.2 LaTeX class for BSc Theses
submitted to the Department of Informatics and Telecommunications of the
National and Kapodistrian University of Athens]
%
% Declare and initialize global ifs
% (set by passing options to this document class)
%
% controls the inclusion of the inscription page
\newif\ifinscriptionpage
\inscriptionpagefalse
% controls inclusion of acknowledgement page
\newif\ifackpage
\ackpagefalse
% controls inclusion of the list of publications page
\newif\ifloppage
\loppagefalse
% controls inclusion of the preface page
\newif\ifprefacepage
\prefacepagefalse
%
% Declare and initialize internal ifs (not set by document class options)
%
\newif\ifenglishfrontpage
\englishfrontpagefalse
\newif\ifenglishcommitteepage
\englishcommitteepagefalse
% marks whether the appendices have started
% (used later for setting an appropriate naming scheme for the appendix title)
\newif\ifappendixstarted
\appendixstartedfalse
% controls whether we want to print dual-page or single page
% when enabled, the page numbering will occur in the centre of the page
% otherwise, it will occur at the right
\newif\ifdualpage
\dualpagefalse
%
% Check passed options
%
\DeclareOption{inscr}{
\inscriptionpagetrue
}
\DeclareOption{ack}{
\ackpagetrue
}
\DeclareOption{preface}{
\prefacepagetrue
}
\DeclareOption{lop}{
\loppagetrue
}
\DeclareOption{dualpage}{
\dualpagetrue
}
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{book}}
\ProcessOptions\relax
\LoadClass[12pt,oneside]{book}
%
% Required packages and configuration
%
\RequirePackage[a4paper,
top=2cm,bottom=2cm,bindingoffset=0.5cm,left=2cm,right=2cm,
headsep=0.5cm,footskip=0.75cm,
]{geometry} % add option showframe=true for debugging
\RequirePackage{fancyhdr}
\RequirePackage[final]{graphicx}
\RequirePackage{sectsty} % needed for formatting chapter headings
\RequirePackage{textcase} % needed for forcing capital letters (in chapters)
\RequirePackage[resetlabels]{multibib}
%\usepackage[notlof,notlot,nottoc,notlop]{tocbibind}
%\RequirePackage{tocloft} % needed for making chapter titles upper case
\RequirePackage{etoolbox} % needed for patchcmd
\RequirePackage{tabularx} % needed for tabular* environment
\RequirePackage{longtable} % needed for splitting big tables across pages
\RequirePackage{xifthen}
%(e.g., abbreviations)
%\RequirePackage[toc,page,titletoc]{appendix} % needed for configuring
%%appendices
%
% Add Greek support
%
\usepackage{fontspec}
\usepackage{xunicode}
\usepackage{xltxtra}
\usepackage{polyglossia}
\newfontfamily\greekfont[Script=Greek]{Arial}
\setdefaultlanguage[variant=uk]{english}
\setotherlanguage{greek}
%
\usepackage{listings}
\usepackage{color}
\usepackage{chngcntr}
\counterwithout{figure}{chapter}
\counterwithout{table}{chapter}
\usepackage{caption}
\usepackage{fontspec}
\setsansfont{Arial}
\DeclareCaptionFont{Arial}{\fontsize{10pt}{12pt}\mdseries\bfseries}
\usepackage[font=Arial,labelfont=bf]{caption}
\definecolor{dkgreen}{rgb}{0,0.6,0}
\definecolor{gray}{rgb}{0.5,0.5,0.5}
\definecolor{mauve}{rgb}{0.58,0,0.82}
\lstset{frame=tb,
language=Python,
aboveskip=3mm,
belowskip=3mm,
showstringspaces=false,
columns=flexible,
basicstyle={\small\ttfamily},
numbers=none,
numberstyle=\tiny\color{gray},
keywordstyle=\color{blue},
commentstyle=\color{dkgreen},
stringstyle=\color{mauve},
breaklines=true,
breakatwhitespace=true,
tabsize=3
}
% Set font mamily Aria
%
\setmainfont[Ligatures={Common,TeX}]{Arial} % the passed option was needed for
% correctly rendering double quotes
\defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
\setsansfont[Mapping=tex-text,Scale=MatchLowercase]{Arial}
%\setmathsf{CMU Bright}
%\setmathrm{CMU Bright}
%\ifglossaryInPreamble
%\RequirePackage[toc,section=chapter,numberedsection=false,nonumberlist]{glossaries}
%\else
% \RequirePackage[toc,section,numberedsection=nolabel,nonumberlist]{glossaries}
%\fi
%\makeglossaries
\providecommand{\grnumm}[1]{#1\textsuperscript{ο}}
\providecommand{\grnumf}[1]{#1\textsuperscript{η}}
%
% Commands for first, middle, and last name (greek and english versions)
%
\providecommand{\authorFirstGr}[1]{\gdef\@authorFirstGr{#1}}
\providecommand{\authorFirstAbrGr}[1]{\gdef\@authorFirstAbrGr{#1}}
\providecommand{\authorMiddleGr}[1]{\gdef\@authorMiddleGr{#1}}
\providecommand{\authorLastGr}[1]{\gdef\@authorLastGr{#1}}
\providecommand{\authorFirstEn}[1]{\gdef\@authorFirstEn{#1}}
\providecommand{\authorFirstAbrEn}[1]{\gdef\@authorFirstAbrEn{#1}}
\providecommand{\authorMiddleEn}[1]{\gdef\@authorMiddleEn{#1}}
\providecommand{\authorLastEn}[1]{\gdef\@authorLastEn{#1}}
\providecommand{\authorSn}[1]{\gdef\@authorSn{#1}}
%
% Commands for the title of the thesis (greek and english versions)
%
\providecommand{\titleGr}[1]{\gdef\@titleGr{#1}}
\providecommand{\titleEn}[1]{\gdef\@titleEn{#1}}
%
% Commands for the date of the writing of the thesis (Month followed by Year)
% [provide greek and english versions]
%
\providecommand{\dateGr}[1]{\gdef\@dateGr{#1}}
\providecommand{\dateEn}[1]{\gdef\@dateEn{#1}}
%
% Commands for supervisor(s)
% If more than one supervisor is declared, the class takes care to show
% "Supervisors" instead of "Supervisor" and
% "Επιβλέποντες" instead of "Επιβλέπων".
%
\gdef\@supervisorLabelSuffixGr{ων}
\gdef\@supervisorLabelSuffixEn{}
\providecommand{\supervisorGr}[2]{%
\ifthenelse{\isundefined{\@thesupervisorslistGr}}{%
\def\@thesupervisorslistGr{\textbf{#1,} #2}
}{%
\g@addto@macro\@thesupervisorslistGr{\\&\textbf{#1,} #2}
\def\@supervisorLabelSuffixGr{οντες}
}
}
\providecommand{\supervisorEn}[2]{%
\ifthenelse{\isundefined{\@thesupervisorslistEn}}{%
\def\@thesupervisorslistEn{\textbf{#1,} #2}
}{%
\g@addto@macro\@thesupervisorslistEn{\\&\textbf{#1,} #2}
\def\@supervisorLabelSuffixEn{s}
}
}
%
% Commands for setting up abstract (greek and english versions), ack (english
% version), synopsis (greek version only), incsriptionEn (english version
%only), and prefaceEn (english version only) pages
%
\providecommand{\abstractEn}[1]{\gdef\@abstractEn{#1}}
\providecommand{\abstractGr}[1]{\gdef\@abstractGr{#1}}
\providecommand{\synopsisGr}[1]{\gdef\@synopsisGr{#1}}
\providecommand{\acksEn}[1]{\gdef\@acksEn{#1}}
\providecommand{\inscriptionEn}[1]{\gdef\@inscriptionEn{%
\vspace*{0.2\textheight}
\begin{flushright}
#1
\end{flushright}
}}
\providecommand{\prefaceEn}[1]{\gdef\@prefaceEn{#1}}
%
% Commands for Subject Area and Keywords fields
% (greek and english versions)
%
\providecommand{\subjectAreaGr}[1]{\gdef\@subjectAreaGr{#1}}
\providecommand{\subjectAreaEn}[1]{\gdef\@subjectAreaEn{#1}}
\providecommand{\keywordsGr}[1]{\gdef\@keywordsGr{#1}}
\providecommand{\keywordsEn}[1]{\gdef\@keywordsEn{#1}}
%
% Command for specifiying the file containing the publications
% in the context of the PhD - NOT USED FOR BSC THESES.
%
\providecommand{\lopfile}[1]{\newcites{lop}{List of
publications}\gdef\@lopfileinternal{#1}}
%
% Command for starting a new unumbered chapter (ToC'ed) for
% holding the table of abbreviations and acronyms. The table
% should be set by the user.
%
\providecommand{\abbreviations}{
\chapter*{ABBREVIATIONS - ACRONYMS}
\addcontentsline{toc}{chapter}{ABBREVIATIONS - ACRONYMS}
}
%
% Front page (greek and english versions)
%
\def\@frontpage{
\begin{center}
\includegraphics[scale=0.85]{emblems/athena-black}
\end{center}
\begin{minipage}[t]{\textwidth}
\begin{center}
{\large \bfseries
\ifenglishfrontpage
NATIONAL AND KAPODISTRIAN UNIVERSITY OF ATHENS
\else
ΕΘΝΙΚΟ ΚΑΙ ΚΑΠΟΔΙΣΤΡΙΑΚΟ ΠΑΝΕΠΙΣΤΗΜΙΟ ΑΘΗΝΩΝ
\fi
}
\linebreak
{\bfseries
\ifenglishfrontpage
SCHOOL OF SCIENCES \\ DEPARTMENT OF INFORMATICS AND TELECOMMUNICATIONS
\else
ΣΧΟΛΗ ΘΕΤΙΚΩΝ ΕΠΙΣΤΗΜΩΝ \\ ΤΜΗΜΑ ΠΛΗΡΟΦΟΡΙΚΗΣ ΚΑΙ ΤΗΛΕΠΙΚΟΙΝΩΝΙΩΝ
\fi
}
\linebreak\linebreak\linebreak\linebreak\linebreak
{\bfseries
\ifenglishfrontpage
BSc THESIS
\else
ΠΤΥΧΙΑΚΗ ΕΡΓΑΣΙΑ
\fi}
\linebreak\linebreak
{\Large \bfseries
\ifenglishfrontpage
\@titleEn
\else
\@titleGr
\fi}
\linebreak\linebreak\linebreak
{\bfseries
\ifenglishfrontpage
\@authorFirstEn{} \@authorMiddleEn{} \@authorLastEn
\else
\@authorFirstGr{} \@authorMiddleGr{} \@authorLastGr
\fi}
\linebreak\linebreak\linebreak
\linebreak\linebreak\linebreak
\linebreak\linebreak
\end{center}
{
\ifenglishfrontpage
\begin{tabular}{l l}
\textbf{Supervisor\@supervisorLabelSuffixEn:} & \@thesupervisorslistEn \\
\end{tabular}
\else
\begin{tabular}{l l}
\textbf{Επιβλέπ\@supervisorLabelSuffixGr:} & \@thesupervisorslistGr \\
\end{tabular}
\fi
}
\end{minipage}
\vfill
\begin{center}
{\bfseries
\ifenglishfrontpage
ATHENS
\else
ΑΘΗΝΑ
\fi}
\\\vspace*{4mm}
{\bfseries
\ifenglishfrontpage
\@dateEn
\else
\@dateGr
\fi}
\end{center}
\clearpage
}
%
% Committee page (greek and english versions)
%
\def\@committeepage{
\begin{center}
\vspace*{1.5cm}
{\bfseries
\ifenglishcommitteepage
BSc THESIS
\else
ΠΤΥΧΙΑΚΗ ΕΡΓΑΣΙΑ
\fi
}
\linebreak
{
\ifenglishcommitteepage
\@titleEn
\else
\@titleGr
\fi
}
\linebreak\linebreak\linebreak
{\bfseries
\ifenglishcommitteepage
\@authorFirstEn{} \@authorMiddleEn{} \@authorLastEn
\else
\@authorFirstGr{} \@authorMiddleGr{} \@authorLastGr
\fi
\vspace{2mm}
}
\linebreak
{
\ifenglishcommitteepage
{\bfseries S.N.:} \@authorSn
\else
{\bfseries Α.Μ.:} \@authorSn
\fi
}
\linebreak\linebreak\linebreak
\linebreak\linebreak\linebreak
\linebreak\linebreak\linebreak
\linebreak\linebreak\linebreak
\linebreak\linebreak
\end{center}
{
\ifenglishcommitteepage
\begin{tabular}{l l}
\textbf{SUPERVISOR\MakeUppercase{\@supervisorLabelSuffixEn:}} & \@thesupervisorslistEn \\
\end{tabular}
% \@supervisorlabelEn
\else
\begin{tabular}{l l}
\textbf{ΕΠΙΒΛΕΠ\MakeUppercase{\@supervisorLabelSuffixGr:}} & \@thesupervisorslistGr \\
\end{tabular}
% \@supervisorlabelGr
\fi
}
\clearpage
}
%
% Abstract (english version)
%
\def\@absEn{
\chapter*{Abstract}
\thispagestyle{empty}
\@abstractEn{}
\vfill
{\bfseries SUBJECT AREA}: \@subjectAreaEn\\
{\bfseries KEYWORDS}: \@keywordsEn
}
%
% Abstract (greek version)
%
\def\@absGr{
\chapter*{ΠΕΡΙΛΗΨΗ}
\thispagestyle{empty}
\@abstractGr{}
\vfill
{\bfseries ΘΕΜΑΤΙΚΗ ΠΕΡΙΟΧΗ}: \@subjectAreaGr\\
{\bfseries ΛΕΞΕΙΣ ΚΛΕΙΔΙΑ}: \@keywordsGr
}
%
% Greek synopsis of the thesis
%
\def\@synopsis{
\chapter*{ΣΥΝΟΠΤΙΚΗ ΠΑΡΟΥΣΙΑΣΗ ΤΗΣ ΔΙΔΑΚΤΟΡΙΚΗΣ ΔΙΑΤΡΙΒΗΣ}
\thispagestyle{empty}
\@synopsisGr{}
\clearpage
}
%
% Inscription page (optional)
%
% Enable it by passing option ``inscr'' to the document class.
%
\def\@inscr{
\cleardoublepage
\@inscriptionEn{}
\clearpage
}
%
% Acknowledgements (optional)
%
% Enable it by passing option ``ack'' to the document class.
%
\def\@acks{
\chapter*{Acknowledgements}
\thispagestyle{empty}
\@acksEn{}
\clearpage
}
%
% Preface page (optional)
%
% Enable it by passing option ``preface'' to the document class.
%
% Check the following page that gives a definition among the uses of Prologue,
% Foreword, and Preface:
%http://iankingsleyauthor.blogspot.de/2013/03/defined-prologue-epilogue-foreword.html.
%
\def\@preface{
\chapter*{Preface}
\thispagestyle{empty}
\@prefaceEn{}
\clearpage
}
%
% List of publications (optional)
%
% Enable it by passing option ``lop'' to the document class.
%
\def\@listofpubs{
\bibliographystylelop{unsrt}
\bibliographylop{\@lopfileinternal}
\thispagestyle{empty}
\clearpage
}
\let\oldthebibliography\thebibliography
\let\endoldthebibliography\endthebibliography
\renewenvironment{thebibliography}[1]{
\begin{oldthebibliography}{#1}
\setlength{\itemsep}{0em}
\setlength{\parskip}{0em}
\footnotesize
}
{
\end{oldthebibliography}
}
\addto{\captionsenglish}{\renewcommand{\bibname}{References}}
%
% Configure the frontmatter page
%
\renewcommand{\frontmatter}{
\pagestyle{empty}
% frontpage - english version
\englishfrontpagetrue
\@frontpage
% frontpage - greek version
\englishfrontpagefalse
\@frontpage
% examination committe page - english version
\englishcommitteepagetrue
\@committeepage
% examination committe page - greek version
\englishcommitteepagefalse
\@committeepage
% abstract (english and greek version)
\@absEn
\@absGr
% inscription
\ifinscriptionpage
\@inscr
\fi
% acknowledgements (english version only, OPTIONAL)
\ifackpage
\@acks
\fi
% table of contents
% add TOC as bookmark
\addtocontents{toc}{\protect{\pdfbookmark[0]{CONTENTS}{toc}}}
\tableofcontents
% list of figures
%\listoffigures
%\thispagestyle{empty}
\cleardoublepage
\begingroup
\makeatletter
\let\ps@plain\ps@empty
\makeatother
\pagestyle{empty}
\listoffigures
\cleardoublepage
\endgroup
% list of tables
\listoftables
\thispagestyle{empty}
% preface page (english version only, OPTIONAL)
\ifprefacepage
\@preface
\fi
% Prepare things for the rest of the document
\clearpage
\thispagestyle{empty}
}
%
% Configure the mainmatter and backmatter pages
%
\renewcommand{\mainmatter}{
% just set the style of the pages to be fancy
\pagestyle{fancy}
}
\renewcommand{\backmatter}{
% just set the style of the pages to be fancy
\pagestyle{fancy}
% and also, make the empty page style permanent, since
% when a \chapter command is invoked, the command
% \thispagestyle{plain} is invoked
% (thanks to http://tex.stackexchange.com/a/19741)
%\patchcmd{\chapter}{plain}{empty}{}{}
}
%
% Configure chapter printing and alignment (centered)
%
\def\@makechapterhead#1{%
%\vspace*{50\p@}%
{\parindent \z@ \raggedright \normalfont
\interlinepenalty\@M
\ifappendixstarted
\large \centering \bfseries ANNEX \thechapter. \MakeTextUppercase{#1}
\else
\large \centering \bfseries \thechapter. \MakeTextUppercase{#1}
\fi
\par\nobreak
\vskip 20\p@
}}
\chaptertitlefont{\vspace*{-2.38cm} \large \centering \MakeTextUppercase}
\sectionfont{\normalsize}
\subsectionfont{\normalsize}
\subsubsectionfont{\normalsize}
\paragraphfont{\normalsize}
\subparagraphfont{\normalsize}
% use capital letters for chapters in the ToC as well
% TODO
%
% Rename Bibliography to References
%
\renewcommand{\bibname}{REFERENCES}
%
% Set ToC depth
%
\setcounter{tocdepth}{4}
\setcounter{secnumdepth}{3}
%
% No indentation for paragraphs
%
\setlength{\parindent}{0pt}
%
% Paragraph spacing should be
%
\setlength{\parskip}{6pt}
%
% Line spacing should be one line
%
\linespread{1}
%
% Configure header and footer
%
%\pagestyle{fancy}
\fancyhf{}
\fancyhead[LEO]{{\scriptsize \@titleEn{}}}
\ifdualpage
\fancyfoot[C]{{\fontsize{10pt}{10pt}\selectfont \thepage}}
\else
\fancyfoot[R]{{\fontsize{10pt}{10pt}\selectfont \thepage}}
\fi
\fancyfoot[LE,LO]{{\scriptsize \@authorFirstAbrEn{} \@authorLastEn{}}}
% needed redefinition, because commands like \chapter call
% \thispagestyle{plain} automatically
\fancypagestyle{plain} {
\fancyhf{}
\fancyhead[LO]{{\scriptsize \@titleEn{}}}
\ifdualpage
\fancyfoot[C]{{\fontsize{10pt}{10pt}\selectfont \thepage}}
\else
\fancyfoot[R]{{\fontsize{10pt}{10pt}\selectfont \thepage}}
\fi
\fancyfoot[LE,LO]{{\scriptsize \@authorFirstAbrEn{} \@authorLastEn{}}}
}
\renewcommand{\headrulewidth}{0pt}
%
% Configure the first page of ToC to have an empty pagestyle
% (thanks to http://tex.stackexchange.com/a/5789)
%
\AtBeginDocument{\addtocontents{toc}{\protect\thispagestyle{empty}}}