Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- \documentclass[10pt]{article}
- \usepackage[tmargin=1cm,bmargin=6cm,includehead,includefoot]{geometry}
- \usepackage{xcolor}
- \usepackage{array}
- \usepackage[demo]{graphicx}
- \usepackage{lipsum}
- \usepackage{fancyhdr}
- \usepackage{fontspec}
- \usepackage[doublespacing]{setspace}
- \usepackage{soul}
- \newcolumntype{P}[1]{%
- >{\raggedright\itshape\arraybackslash}p{#1}}
- \setmainfont{Ubuntu Light}
- \newfontface\ubold{Ubuntu Bold}
- \sodef\ugg{}{.4em plus 1fill}{1em plus 2 fill}{2em plus 2fill minus.1em}
- \definecolor{gbblue}{RGB}{0,176,240}
- \definecolor{gbblack}{RGB}{55,53,53}
- \definecolor{gbred}{RGB}{236,28,36}
- \definecolor{footertxtclr}{RGB}{190,192,194}
- \newcommand\address{Streetname and \#}
- \newcommand\pccity{Postal Code, City}
- \newcommand\twitter{@twittrhandle}
- \newcommand\telnr{+1234567890}
- \newcommand\email{[email protected]}
- \newcommand\website{address.com}
- \newcommand\sloganone{\ubold\textcolor{gbred}{1st slogan line}}
- \newcommand\slogantwo{\ubold\textcolor{gbred}{2nd slogan line}}
- \newcommand\footertext{\color{footertxtclr}\footnotesize some more information about me and my services in the footer of my document\par}
- \newcommand\ColRule{%
- {\noindent\color{gbblue}\rule{\textwidth}{.5pt}}}
- \newcommand\ColBlRule{%
- {\noindent\color{gbblack}\rule{\textwidth}{.5pt}}}
- \newcommand\Header{%
- \noindent\makebox[\textwidth][l]{\parbox{1.09\textwidth}{%
- \hfill\includegraphics[height=78.142pt]{logo}}}\par\vskip1ex%
- \ColRule\par\vskip1ex\noindent
- \begin{tabular*}{\textwidth}%
- {@{}P{.27\textwidth}@{}P{.2\textwidth}@{}P{.13\textwidth}@{}>{\raggedleft\arraybackslash}p{.4\textwidth}@{}}
- \address & \twitter & \telnr & \sloganone \tabularnewline
- \pccity & \telnr & \website & \slogantwo \tabularnewline
- \end{tabular*}\par\ColBlRule\par}
- \newcommand\Footer[1]{%
- \ColRule\par\vskip-1ex
- \noindent\begin{tabular*}{\textwidth}{@{}>{\raggedright}p{\textwidth}@{}}
- \footertext
- \end{tabular*}\par\vskip-1.5ex\ColRule\par\centering\thepage\par}
- \fancyhf{}
- \fancyhead[C]{\Header}
- \fancyfoot[C]{\Footer}
- \renewcommand{\headrulewidth}{0pt}
- \setlength\headheight{134pt}
- \pagestyle{fancy}
- \begin{document}
- \lipsum[1-20]
- \end{document}
- Package Fancyhdr Warning: \headheight is too small (107.4pt):
- Make it at least 133.08203pt.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement