I would like to have a list environment, which displays a vertical line along each nested list, but not for the outermost one, as in the following example:
How can this be achieved in LaTeX?
Edit: Here is what I have tried so far:
\documentclass[english]{article}
\usepackage{lmodern}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage[a4paper]{geometry}
\geometry{verbose,tmargin=2cm,bmargin=2cm,lmargin=3cm,rmargin=2cm}
\setlength{\parskip}{\medskipamount}
\setlength{\parindent}{0pt}
\makeatletter
\usepackage{tcolorbox}
\tcbuselibrary{breakable,skins}
\newenvironment{mylist}
{
\vspace{5pt}
\begin{tcolorbox}[blanker,left=3mm,right=3mm,top=2mm,bottom=2mm,borderline west={1pt}{2pt}{gray!25!white}]
}
{
\end{tcolorbox}
}
\usepackage{babel}
\begin{document}
This is normal text. This is normal text. This is normal text.
This is normal text. This is normal text. This is normal text.
\begin{mylist}
First element of the outermost list
\begin{mylist}
First element of a nested list\\
Second element of a nested list
\begin{mylist}
First element of a nested list\\
Second element of a nested list
\end{mylist}
\end{mylist}
Second element of the outermost list
\begin{mylist}
First element of a nested list\\
Second element of a nested list
\end{mylist}
\end{mylist}
\end{document}

