[Tex/LaTex] Reset a renewcommand

environmentsmacrostemplates

I have found a Resumé template in Latex. I would like to change the following part of the template but my knowledge of Latex is not that extended.

% Every \item can be followed by one or more paragraphs
% of description:
%
% |[
% \item{date range}{company}{role}
%
% Description of what achieved during this application.
% ]|
\newenvironment{eventlist}{%
    \newcommand*\inskip{}
    \renewcommand\item[3]{%
    \inskip%
    {\raggedleft\sc ##1\\[1pt]}
    {##2}\\[2pt]
    {\Large\it ##3}
    \medskip
    \renewcommand\inskip{\bigskip}}}
    {\bigskip}

I would like to add (optional) an enumerate in the description. Like this:

% |[
% \item{date range}{company}{role}
%
% Description of what achieved during this application.
%    \begin{enumerate}
%      \item Foo
%      \item Bar
%    \end{enumerate}
% More description of what achieved during this application.
% ]|

How would you do this? Is this even possible because the \item is redefined if I'm correct?

Best Answer

Not a real fix but rather a workaround where you avoid using \item in the environment:

Example

main.tex:

\documentclass{eventListTest}
\usepackage[ampersand]{easylist}

\begin{document}

\begin{eventlist}
\item{Data range}
     {Company}
     {Role}

  Description of what achieved during this application.\\
   \begin{easylist}[enumerate]
      & Foo~:
      && Sub item.
      && Another sub item.
      & Bar~:
    \end{easylist}
\end{eventlist}
\end{document}

Class: eventListTest.cls

\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{eventListTest}

\LoadClass[10pt]{scrartcl}

\RequirePackage[hmargin=1.25cm,vmargin=1.25cm,twocolumn,columnsep=1.25cm]{geometry}
\RequirePackage{bookman,etoolbox,hyperref,marvosym,needspace,tabularx,xcolor}

\newenvironment{eventlist}{%
    \newcommand*\inskip{}
    \renewcommand\item[3]{%
    \inskip%
    {\raggedleft\sc ##1\\[1pt]}
    {##2}\\[2pt]
    {\Large\it ##3}
    \medskip
    \renewcommand\inskip{\bigskip}}}
    {\bigskip}

More information about easylist

enter image description here

EDITED: Added an example.