-
Notifications
You must be signed in to change notification settings - Fork 0
/
isomteric_dotted_headerfooter_watermark.tex
61 lines (48 loc) · 1.61 KB
/
isomteric_dotted_headerfooter_watermark.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
\documentclass{article}
% Author: Subhodeep Sarkar
% Date: 7 April, 2021
\usepackage{tikz}
%generate dots and set the geometry
% I like really thin margins. Feel free to adjust this
% as per your tastes.
\usepackage[pattern=dot,
patternsize=0.2in,
textarea,
geometry={
a4paper,
left=8mm,
right=8mm,
top=15mm,
bottom=15mm,
headsep=10pt,
footskip=25pt,
}
]{gridpapers}
% https://github.com/mcnees/LaTeX-Graph-Paper
% thanks Prof. McNees and Prof. Leo
%you can print grids or triangles as well
%header and footer
\usepackage{fancyhdr}
\pagestyle{fancy}
%header and footer text
\lhead{\textcolor{gray}{Prof. Hubert J. Farnsworth}}
\rhead{\textcolor{gray}{Date: {~~~/~~~/~~~~}; Page No.: {~~~~}}}
\cfoot{\textcolor{gray}{Department of Theoretical Physics, Mars University}}
%colouring the horizontal lines in the header and footer
% https://tex.stackexchange.com/questions/375121/change-horizontal-line-color-on-top-of-footer
\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\footrulewidth}{0.4pt}
% Save standard definitions
\let\HeadRule\headrule
\let\FootRule\footrule
% Add color to standard definitions.
\renewcommand\headrule{\color{gray}\HeadRule}
\renewcommand\footrule{\textcolor{gray}{\FootRule}}
%almost done
\begin{document}
%background_image
%adjust opacity and size as per taste
%for best result use a black and white version of the logo
\tikz[remember picture,overlay] \node[opacity=0.05,inner sep=0pt] at (current page.center){\includegraphics[width=.55\textwidth,height=.4\textheight]{logo.png}};
%logo taken from https://www.pngitem.com/middle/hTxxhxh_planet-express-logo-svg-hd-png-download/
\end{document}