PandaScience / FortySecondsCV

A highly customizable and improved version of Carmine Spagnuolo's Twenty Seconds Curriculum Vitae.
BSD 3-Clause "New" or "Revised" License
213 stars 66 forks source link

Would it be possible to implement itemize for cvitem #9

Closed philodavies closed 4 years ago

philodavies commented 4 years ago

I'd like to have a list of items allowed under cvitem such as:

 date part1     Description                                                    location
 date part2     - description 1
                - description ..
                - description N

Do you think this might be possible? I'm looking to see if I can find the solution myself, but I'm wondering if this might be useful to other people as well

PandaScience commented 4 years ago

Well, nothing stops you from inserting an itemize environment into any of the fields of \cvitem. Looking at your example I guess you neither want indentation nor item separation, so I suggest you use the enumitem package like so:

% put this in preamble
\usepackage{enumitem}
.
.
.
% put this in main part
\begin{cvtable}
  \cvitem{date part1}{Description}{location}{}
  \cvitemshort{date part2}{
    possibly another header here
    \begin{itemize}[leftmargin=*, noitemsep, topsep=0pt]
      \item description 1
      \item description ..
      \item description N
    \end{itemize}
  }
\end{cvtable}
philodavies commented 4 years ago

Thanks for the quick reply!

This is a step in the right direction, but for some reason there is additional whitespace when the list gets added to cvitem.

This is the code I used:

\cvsection{Test 2}
\begin{cvtable}
  \cvitem{Jan 2019 -- Dec 2019}{Description}{location}{
    \begin{itemize}[leftmargin=*, noitemsep, topsep=0pt]
      \item description 1
      \item description ..
      \item description N\\
    \end{itemize}
  }
  \cvitem{Jan 2018 -- Dec 2018}{Description}{location}{Description normal}
\end{cvtable}

Output: resume_list_example

philodavies commented 4 years ago

At first my idea was to implement a new cvitem called cvitemlist which would contain 4 arguments or more and create the list within the \newcommand definition of the command

PandaScience commented 4 years ago

No need for that. Just use \cvitemshort as I did in the example code above. You can freely mix \cvitem and \cvitemshort in a cvtable environment.

philodavies commented 4 years ago

Thanks for your help!

The solution for removing the extra linebreak is the following: \vspace{-4mm}

Gives:

\cvsection{Test 2}
\begin{cvtable}
  \cvitem{Jan 2019 -- Dec 2019}{Description}{location}{
    \vspace{-4mm}
    \begin{itemize}[leftmargin=*, noitemsep, topsep=0pt]
      \item description 1
      \item description ..
      \item description N\\
    \end{itemize}
  }
  \cvitem{Jan 2018 -- Dec 2018}{Description}{location}{Description normal}
\end{cvtable}

Output: resume_list