-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtikz_test.tex
47 lines (34 loc) · 1.12 KB
/
tikz_test.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
\documentclass[12pt]{report}
\usepackage{lmodern}
\usepackage[dvipsnames]{xcolor}
\usepackage[demo]{graphicx}
\usepackage[all]{background}
\usepackage{lipsum}
\usepackage{showframe}
\usepackage{tikz}
\newcommand{\MyGraphicLogo}{% For imported graphic logo
\begin{tikzpicture}[remember picture,overlay,yshift=-2cm, xshift=2cm]
\node at (0,0) {\includegraphics[width=2cm,height=2cm]{foo}};
\end{tikzpicture}
}
\newcommand{\MyTikzLogo}{% For a logo drawn with TikZ
\begin{tikzpicture}[remember picture,overlay,yshift=0cm, xshift=0cm]
\filldraw[fill=Cerulean, draw=black] (0cm,0cm)
-- (\paperwidth, 0cm)
-- (\paperwidth, -2cm)
-- (.5\paperwidth+1cm, -2cm)
-- (.5\paperwidth-1cm, -3cm)
-- (0cm, -3cm)
-- cycle;
\end{tikzpicture}
}
%\SetBgContents{\MyGraphicLogo}% Select included image
\SetBgContents{\MyTikzLogo}% Select tikz picture
\SetBgPosition{current page.north west}% Select location
\SetBgOpacity{1.0}% Select opacity
\SetBgAngle{0.0}% Select roation of logo
\SetBgScale{1.0}% Select scale factor of logo
\begin{document}
\section*{Lorem Ipsum}
\lipsum[1-50]
\end{document}