<br><div class="gmail_quote">On Sun, Mar 13, 2011 at 8:47 PM, Peter Davis <span dir="ltr"><<a href="mailto:pfd@pfdstudio.com">pfd@pfdstudio.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Added minimal example below ...<br><br><div class="gmail_quote"><div><div></div><div class="h5">On Sun, Mar 13, 2011 at 4:30 PM, Peter Davis <span dir="ltr"><<a href="mailto:pfd@pfdstudio.com" target="_blank">pfd@pfdstudio.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I'm trying to update a resume and convert it to LaTeX (from Word). The main 'experience' section should be a two-column table in which each row is of the form:<br>
<br>
Left column:<br>
<br>
Company<br>
Title<br>
Date<br>
<br>
Right column:<br>
<br>
* Most recent accomplishment<br>
* Next most recent accomplishment<br>
* etc.<br>
<br>
I can do most of this, but there are some details I can't seem to get:<br>
<br>
1) I would like the left column to have a light gray background tint<br>
<br>
2) I've created a list environment, bulletlist, defined as<br>
<br>
\newenvironment{bulletlist}{\begin{list}{$\bullet$}{\setlength{\topsep}{0pt}\setlength{\itemsep}{2pt}\setlength{\parsep}{0pt}\setlength{\partopsep}{0pt}}}{\end{list}}<br>
<br>
Even with this, I can't get the first bullet in the right hand table cell to align with the first line ("Company") in the left hand cell. There's always a blank line at the top.<br>
<br>
Any suggestions for solving either (or, better yet, both ) of these problems?<br>
<br></blockquote><div><br></div></div></div><div>Here's a minimal example that illustrates the problem. Note that if I put the first column's text in a vbox, the second column doesn't align with the first at all, as seen in the second row of this table.</div>
<div><br></div><div><br></div><div><br></div><div><div>\documentclass[11pt]{article}</div><div>\usepackage{longtable}</div><div class="im"><div><br></div><div>\newenvironment{bulletlist}{\begin{list}{$\bullet$}{\setlength{\topsep}{0pt}\setlength{\itemsep}{2pt}\setlength{\parsep}{0pt}\setlength{\partopsep}{0pt}}}{\end{list}}</div>
<div><br></div></div><div>\begin{document}</div><div><br></div><div>\begin{longtable}{p{1.75in} p{2.25in}}</div><div><br></div><div>{\bfseries Company}\newline Job title\newline Dates & \begin{bulletlist}</div><div>\item Most important item</div>
<div>\item Second most important item</div><div>\item Third most important item</div><div>\end{bulletlist} \\</div><div><br></div><div>\vbox{{\bfseries Company}\newline Job title\newline Dates} & \begin{bulletlist}</div>
<div>\item Most important item</div><div>\item Second most important item</div><div>\item Third most important item</div><div>\end{bulletlist}</div><div><br></div><div>\end{longtable}</div><div><br></div><div>\end{document}</div>
</div></div></blockquote><div><br></div><div>Just to follow up my own post, I did find a solution to the alignment problem. See example below.</div><div><br></div><div>I could use a \psframebox for the gray background tint, but that won't work with pdfLaTeX or XeLaTeX.</div>
<div><br></div><div>Here's the alignment solution (from the last time I had this problem):</div><div><br></div><div>\documentclass[11pt]{article}<p></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">\usepackage{longtable}</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">\usepackage{enumitem}</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p><p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">
\newenvironment{blist}{\begin{minipage}[t]{\linewidth}\begin{itemize}[label=\textbullet, nolistsep, noitemsep]}{\end{itemize}\end{minipage}}</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p><p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">
\title{List inside table cell}</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">\author{Peter Davis}</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p><p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">
\begin{document}</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p><p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">
\begin{longtable}[l]{p{1.6in}p{4.4in}}</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p><p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">
\parbox[t]{1.5in}{This is some stuff in the left column.} & </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">\begin{blist}</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">\item First item</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">\item Second item</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">\end{blist}\\</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">\\</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">\parbox[t]{1.5in}{This is some more stuff in the left column.} & </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">\begin{blist}</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">\item Third item</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">\item Fourth item</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">\end{blist}</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p><p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">
\end{longtable}</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p><p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">
\end{document}</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p></div><div><br></div></div><br>-- <br><span style="font-family:arial, sans-serif;border-collapse:collapse">----<div>
The Tech Curmudgeon</div><div><a href="http://www.techcurmudgeon.com/" style="color:rgb(17, 65, 112)" target="_blank">http://www.techcurmudgeon.com</a></div><div style="font-size:10.8333px"><br></div></span><br>