Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Apr 4th, 2012  |  syntax: None  |  size: 2.12 KB  |  views: 13  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. \documentclass[10pt]{article}
  2. \usepackage[tmargin=1cm,bmargin=6cm,includehead,includefoot]{geometry}
  3. \usepackage{xcolor}
  4. \usepackage{array}
  5. \usepackage{graphicx}
  6. \usepackage{lipsum}
  7. \usepackage{fancyhdr}
  8. \usepackage{fontspec}
  9. \usepackage[doublespacing]{setspace}
  10. \usepackage{soul}
  11.  
  12. \setmainfont{Ubuntu Light}
  13. \newfontface\ubold{Ubuntu Bold}
  14.  
  15. \sodef\ugg{}{.4em plus 1fill}{1em plus 2 fill}{2em plus 2fill minus.1em}
  16.  
  17. \definecolor{gbblue}{RGB}{0,176,240}
  18. \definecolor{gbblack}{RGB}{55,53,53}
  19. \definecolor{gbred}{RGB}{236,28,36}
  20. \definecolor{footertxtclr}{RGB}{190,192,194}
  21.  
  22. \newcommand\address{Streetname and \#}
  23. \newcommand\pccity{Postal Code, City}
  24. \newcommand\twitter{@twittrhandle}
  25. \newcommand\telnr{+1234567890}
  26. \newcommand\email{email@address.com}
  27. \newcommand\website{address.com}
  28. \newcommand\sloganone{\ubold \color{gbred} 1st slogan line}
  29. \newcommand\slogantwo{\ubold \color{gbred} 2nd slogan line}
  30.  
  31. \newcommand\footertext{\color{footertxtclr} \footnotesize some more information about me and my services in the footer of my document}
  32.  
  33. \newcommand\ColRule{%
  34.   {\noindent\color{gbblue}\rule{\textwidth}{.5pt}}}
  35.  
  36. \newcommand\ColBlRule{%
  37.   {\noindent\color{gbblack}\rule{\textwidth}{.5pt}}}
  38.  
  39. \newcommand\Header{%
  40.   \noindent\makebox[\textwidth][l]{\parbox{1.09\textwidth}{%
  41.     \hfill\includegraphics[height=78.142pt]{logo}}}\par\vskip1ex%
  42.   \ColRule\par\noindent
  43.   \begin{tabular*}{\textwidth}%
  44.     {@{}>{\raggedright}p{.27\textwidth}@{}>{\raggedright}p{.2\textwidth}@{}>{\raggedright}p{.13\textwidth}@{}>{\raggedleft}p{.4\textwidth}@{}}
  45.    
  46.     \address & \twitter & \telnr    & \sloganone \tabularnewline
  47.     \pccity  & \telnr   & \website  & \slogantwo \tabularnewline
  48.    
  49.   \end{tabular*}\par\ColBlRule\par}
  50.  
  51. \newcommand\Footer[1]{%
  52. \ColRule\par
  53. \noindent\begin{tabular*}{\textwidth}{@{}>{\raggedright}p{\textwidth}@{}}
  54. \footertext
  55. \end{tabular*}\par\vskip-1.5ex\ColRule\par\centering\thepage\par}
  56.  
  57. \fancyhf{}
  58. \fancyhead[C]{\Header}
  59. \fancyfoot[C]{\Footer}
  60. \renewcommand{\headrulewidth}{0pt}
  61. \setlength\headheight{107.4pt}
  62. \pagestyle{fancy}
  63.  
  64. \begin{document}
  65.  
  66. \lipsum[1-20]
  67.  
  68. \end{document}