Advertisement
Guest User

How to edit the length of a color box? - 1

a guest
May 23rd, 2013
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Latex 0.91 KB | None | 0 0
  1. \documentclass[letterpaper,11pt]{article}
  2. \usepackage[left=0.9in, right=0.8in]{geometry}
  3. \pagestyle{empty}
  4. \raggedright
  5. \def\bull{\vrule height 0.8ex width .7ex depth -.1ex }
  6.  
  7. \newcommand{\lineunder}{\vspace*{-8pt} \\ \hspace*{-18pt} \hrulefill \\} %command for the Line to be drawn
  8. \usepackage[usenames,dvipsnames]{color}
  9. \definecolor{mygrey}{gray}{.90}
  10. %\newcommand{\headergrey}[1]{\hspace*{-18pt} \colorbox{mygrey}
  11. %    {\begin{minipage}
  12. %    {\textwidth}{\textsc{#1}}
  13. %    \end{minipage}}\lineunder}
  14.  
  15. \newcommand{\headergrey}[1]{%
  16.   \noindent\hspace*{-15pt}%
  17.   \tabular{p{\dimexpr\linewidth-2\tabcolsep+15pt}}\cellcolor{mygrey}\textsc{#1}\\
  18.   \hline\endtabular%
  19.   \par\nobreak}%
  20.  
  21.  
  22. \begin{document}
  23. %\headergrey{Objective}
  24. %    Seeking a Full Time position in the area of Blah blah blah Blah
  25. \headergrey{Objective}
  26.    Seeking a Full Time position in the area of Blah blah blah Blah
  27. \end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement