I fixed it!!!
Reading through the array documentation was very confusing - it doesn't explain well how to feed parameters to a new column type, which I presume is just a standard understanding of Latex which I don't have..
This was the line that gave me all the trouble, step by step, my (mis)understanding:
\newcolumntype{I}[1]{>{\begin{packed_enum}\raggedright\arraybackslash}p{#1}<{\end{packed_enum}}}
1. I don't know what the
[1] is for, but I know that > is a command executed before the table cell, so I wanted it to apply my previously defined "packed_enum" (should be renamed to packed_item for clarity)...
2. BUT then I didn't know how to concatenate a second parameter, namely the margin formatting, so I tried just adding it straight after "\raggedright\arraybackslash" and closing up with brackets. This worked!!!
3. I then, also don't know what the p{#1} is for, or why it's placed in the syntax there... just copying what you wrote for me there...
4. I then know that < is the command executed AFTER the table cell, so I wanted it to close out my 'packed_enum' which I do, and then bracket the whole thing.
5. The result is I have a column formatted to run my own itemize environment upon using the \item command inside the table, (with no spaces between bullets and the bullet placement formatting I want previously defined), ALSO with a ragged right margin for the column margin itself.
THAT was very difficult for me, despite its seemingly innocuous appearance. I think I can work this into my CV now.
If you have any other comments, I'd love the learning experience. Otherwise, THANK YOU SO MUCH for the help!
Code: Select all
\documentclass[letterpaper,11pt]{report}
\usepackage{tabularx}
\usepackage{enumitem}
%\setitemize{noitemsep, topsep=0pt, parsep=0pt}
\newenvironment{packed_enum}{
\begin{itemize}
\setlength{\itemsep}{1pt}
\setlength{\parskip}{0pt}
\setlength{\parsep}{0pt}
}{\end{itemize}}
\newcolumntype{R}{>{\raggedleft\arraybackslash}X}%
\newcolumntype{I}[1]{>{\begin{packed_enum}\raggedright\arraybackslash}p{#1}<{\end{packed_enum}}}%
\begin{document}
\chapter{Movies I need to watch}
Here is a short list of movies I need to watch some day:\\
\begin{tabularx}{\textwidth}{X | I{2in} }
{Here is text that is NOT bulleted appearing on the FIRST line... } & \item This bulleted text though still skips a line, but I think that's ok since it offsets the bulleted list \item The Longest Day \item The Longest Day \item The Longest Day\\
{} & \item Test new line
\end{tabularx}
\end{document}