Advertisement
Guest User

Untitled

a guest
Apr 4th, 2012
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.28 KB | None | 0 0
  1. \documentclass[10pt]{article}
  2. \usepackage[tmargin=1cm,bmargin=6cm,includehead,includefoot]{geometry}
  3. \usepackage{xcolor}
  4. \usepackage{array}
  5. \usepackage[demo]{graphicx}
  6. \usepackage{lipsum}
  7. \usepackage{fancyhdr}
  8. \usepackage{fontspec}
  9. \usepackage[doublespacing]{setspace}
  10. \usepackage{soul}
  11.  
  12. \newcolumntype{P}[1]{%
  13. >{\raggedright\itshape\arraybackslash}p{#1}}
  14.  
  15. \setmainfont{Ubuntu Light}
  16. \newfontface\ubold{Ubuntu Bold}
  17.  
  18. \sodef\ugg{}{.4em plus 1fill}{1em plus 2 fill}{2em plus 2fill minus.1em}
  19.  
  20. \definecolor{gbblue}{RGB}{0,176,240}
  21. \definecolor{gbblack}{RGB}{55,53,53}
  22. \definecolor{gbred}{RGB}{236,28,36}
  23. \definecolor{footertxtclr}{RGB}{190,192,194}
  24.  
  25. \newcommand\address{Streetname and \#}
  26. \newcommand\pccity{Postal Code, City}
  27. \newcommand\twitter{@twittrhandle}
  28. \newcommand\telnr{+1234567890}
  29. \newcommand\email{email@address.com}
  30. \newcommand\website{address.com}
  31. \newcommand\sloganone{\ubold\textcolor{gbred}{1st slogan line}}
  32. \newcommand\slogantwo{\ubold\textcolor{gbred}{2nd slogan line}}
  33.  
  34. \newcommand\footertext{\color{footertxtclr}\footnotesize some more information about me and my services in the footer of my document\par}
  35.  
  36. \newcommand\ColRule{%
  37. {\noindent\color{gbblue}\rule{\textwidth}{.5pt}}}
  38.  
  39. \newcommand\ColBlRule{%
  40. {\noindent\color{gbblack}\rule{\textwidth}{.5pt}}}
  41.  
  42. \newcommand\Header{%
  43. \noindent\makebox[\textwidth][l]{\parbox{1.09\textwidth}{%
  44. \hfill\includegraphics[height=78.142pt]{logo}}}\par\vskip1ex%
  45. \ColRule\par\vskip1ex\noindent
  46. \begin{tabular*}{\textwidth}%
  47. {@{}P{.27\textwidth}@{}P{.2\textwidth}@{}P{.13\textwidth}@{}>{\raggedleft\arraybackslash}p{.4\textwidth}@{}}
  48. \address & \twitter & \telnr & \sloganone \tabularnewline
  49. \pccity & \telnr & \website & \slogantwo \tabularnewline
  50. \end{tabular*}\par\ColBlRule\par}
  51.  
  52. \newcommand\Footer[1]{%
  53. \ColRule\par\vskip-1ex
  54. \noindent\begin{tabular*}{\textwidth}{@{}>{\raggedright}p{\textwidth}@{}}
  55. \footertext
  56. \end{tabular*}\par\vskip-1.5ex\ColRule\par\centering\thepage\par}
  57.  
  58. \fancyhf{}
  59. \fancyhead[C]{\Header}
  60. \fancyfoot[C]{\Footer}
  61. \renewcommand{\headrulewidth}{0pt}
  62. \setlength\headheight{134pt}
  63. \pagestyle{fancy}
  64.  
  65. \begin{document}
  66.  
  67. \lipsum[1-20]
  68.  
  69. \end{document}
  70.  
  71. Package Fancyhdr Warning: \headheight is too small (107.4pt):
  72. Make it at least 133.08203pt.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement