-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathabexport.php
132 lines (115 loc) · 4.01 KB
/
abexport.php
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
\documentclass[ngerman,final,fontsize=12pt,paper=a4,twoside,bibliography=totoc,BCOR=8mm,draft=false]{scrreprt}
\usepackage[T1]{fontenc}
\usepackage{babel}
\usepackage[utf8]{inputenx}
\usepackage[sort&compress,square]{natbib}
\usepackage[babel]{csquotes}
\usepackage[hyphens]{url}
\usepackage[draft=false,final,plainpages=false,pdftex]{hyperref}
\usepackage{eso-pic}
\usepackage{graphicx}
\usepackage{xcolor}
\usepackage{pdflscape}
\usepackage{longtable}
\usepackage{framed}
\usepackage{textcomp}
\usepackage[charter,sfscaled]{mathdesign}
%\usepackage[spacing=true,tracking=true,kerning=true,babel]{microtype}
\usepackage[spacing=true,kerning=true,babel]{microtype}
\author{GuttenPlag}
\title{Abschlussbericht}
\subtitle{Gemeinschaftliche
Dokumentation von Plagiaten in der Dissertation „Verfassung und
Verfassungsvertrag: Konstitutionelle Entwicklungsstufen in den USA
und der EU“ von Karl-Theodor Freiherr zu Guttenberg}
\publishers{\url{http://de.guttenplag.wikia.com/wiki/Abschlussbericht}}
\hypersetup{%
pdfauthor={GuttenPlag},%
pdftitle={Abschlussbericht --- Gemeinschaftliche Dokumentation von Plagiaten in der Dissertation „Verfassung und Verfassungsvertrag: Konstitutionelle Entwicklungsstufen in den USA und der EU“ von Karl-Theodor Freiherr zu Guttenberg}%
pdflang={en},%
pdfduplex={DuplexFlipLongEdge},%
pdfprintscaling={None},%
linktoc=all,%
<?php
require 'config.php';
if($abLinks === 'color' || $abLinks === 'color+underline' || $abLinks === 'color+box') {
print "\t".'colorlinks,%'."\n";
} else if($abLinks === 'underline') {
print "\t".'colorlinks=false,%'."\n";
print "\t".'pdfborderstyle={/S/U/W 1},%'."\n";
print "\t".'pdfborder=0 0 1,%'."\n";
} else if($abLinks === 'box') {
// nothing to do
} else if($abLinks === 'none') {
print "\t".'draft,%'."\n";
}
if($abEnableLinkColors === 'yes') {
print "\t".'linkcolor='.$abInternalLinkColor.',%'."\n";
print "\t".'citecolor='.$abSourceLinkColor.',%'."\n";
print "\t".'filecolor='.$abExternalLinkColor.',%'."\n";
print "\t".'urlcolor='.$abExternalLinkColor.',%'."\n";
print "\t".'linkbordercolor={'.$abInternalLinkBorderColor.'},%'."\n";
print "\t".'citebordercolor={'.$abSourceLinkBorderColor.'},%'."\n";
print "\t".'filebordercolor={'.$abExternalLinkBorderColor.'},%'."\n";
print "\t".'urlbordercolor={'.$abExternalLinkBorderColor.'},%'."\n";
} else {
print "\t".'linkcolor=black,'."\n";
print "\t".'citecolor=black,'."\n";
print "\t".'filecolor=black,'."\n";
print "\t".'urlcolor=black,'."\n";
print "\t".'linkbordercolor={0 0 0},'."\n";
print "\t".'citebordercolor={0 0 0},'."\n";
print "\t".'filebordercolor={0 0 0},'."\n";
print "\t".'urlbordercolor={0 0 0},'."\n";
}
?>
}
\definecolor{shadecolor}{rgb}{0.95,0.95,0.95}
\newenvironment{fragment}
{\begin{snugshade}}
{\end{snugshade}
\penalty-200
\vskip 0pt plus 10mm minus 5mm}
\newenvironment{fragmentpart}[1]
{\indent\textbf{#1}\par\penalty500\noindent}
{\par}
\newcommand{\BackgroundPic}
{\put(0,0){\parbox[b][\paperheight]{\paperwidth}{%
\vfill%
\centering%
\includegraphics[width=\paperwidth,height=\paperheight,%
keepaspectratio]{background.png}%
\vfill%
}}}
\setkomafont{chapter}{\Large}
\setkomafont{section}{\large}
\addtokomafont{disposition}{\normalfont\boldmath\bfseries}
\urlstyle{rm}
\begin{document}
<?php
# color+underline und color+box muessen nach \begin{document} behandelt werden
if($abLinks === 'color+underline') {
print "\hypersetup{%\n";
print "\t".'pdfborderstyle={/S/U/W 1},%'."\n";
print "\t".'pdfborder=0 0 1,%'."\n";
print "}\n";
} else if($abLinks === 'color+box') {
print "\hypersetup{%\n";
print "\t".'pdfborderstyle={/S/S/W 1},%'."\n";
print "\t".'pdfborder=0 0 1,%'."\n";
print "}\n";
}
?>
%\AddToShipoutPicture*{\BackgroundPic}
\maketitle\thispagestyle{empty}
%\ClearShipoutPicture
\tableofcontents
<?php require_once('importWiki.php'); ?>
\appendix
\chapter{Textnachweise}
<?php require_once('importFragmente.php'); ?>
\renewcommand{\bibname}{Quellenverzeichnis}
\newpage
\bibliographystyle{dinat-custom}
\bibliography{ab}
\end{document}