Browse code

farbige bande hinzugefügt

Michael F. Schönitzer authored on16/06/2015 23:44:59
Showing1 changed files
... ...
@@ -4,10 +4,13 @@
4 4
 \usepackage[T1]{fontenc}
5 5
 \usepackage{microtype}
6 6
 \usepackage{graphicx}
7
-\usepackage[cymk]{xcolor}
7
+\usepackage[cmyk]{xcolor}
8 8
 \xdefinecolor{gray}{gray}{.5}
9 9
 \xdefinecolor{darkgray}{gray}{.3}
10 10
 \usepackage{hyperref}
11
+\usepackage{fontawesome}
12
+\usepackage{tikz}
13
+\usepackage{expl3}
11 14
 \hypersetup{
12 15
     pdftoolbar=true,
13 16
     pdfmenubar=true,
... ...
@@ -38,6 +41,29 @@
38 41
 %% Add Background-image:
39 42
 \AddToBackground*{2}{\put(0,25){\includegraphics[scale=1]{welle2}}}
40 43
 
44
+%% Colored Bar at the top of the page:
45
+\ExplSyntaxOn
46
+\cs_new_eq:NN \Repeat \prg_replicate:nn
47
+\ExplSyntaxOff
48
+\newcommand{\border}[2]{
49
+  \begin{tikzpicture}[overlay,remember picture]
50
+    \node [
51
+      fill=#1,% Farbe des Randstreifens
52
+      text=white,% Textfarbe
53
+      font=\bfseries,% Einstellungen für die Schrift
54
+      inner xsep=0em,
55
+      text width=\paperwidth,
56
+      minimum height=7mm,% Breite des Randstreifens
57
+      anchor=north west
58
+      ]
59
+      at (current page.north west)
60
+      {\hfil\Repeat{13}{\faicon{#2}\hfil}};
61
+  \end{tikzpicture}
62
+}
63
+\newcommand{\borders}[2]{
64
+  \AddToBackground*{1}{\border{#1}{#2}}
65
+  \AddToBackground*{2}{\border{#1}{#2}}
66
+}
41 67
 
42 68
 %%%%%%%% Softwaretemplate %%%%%%%%
43 69
 \newcommand{\software}[7]{