How can I get Latex to produce lists as following:

I would like text (here, ALT and SEQ) underneath an item to be aligned with the above item's text. I tried easylist but I can't get text underneath to align correctly. It does this:

NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
Code: Select all
\documentclass[11pt,twoside]{article}
\usepackage{enumitem}
\newlist{legal}{enumerate}{10}
\setlist[legal]{label*=\arabic*.,nolistsep,leftmargin=*}
\begin{document}
\begin{legal}[nolistsep]
\item Plan your...\\
SEQ
\begin{legal}
\item Log...
\item Select...
\item Define...\\
ALT
\begin{legal}
\item A subsubitem....
\item Another subsubitem....
\end{legal}
\end{legal}
\end{legal}
\end{document}
Code: Select all
\documentclass{article}
\usepackage[table]{xcolor}
\usepackage{multirow}
\usepackage{chngcntr}
\newcounter{Myiti}
\newcounter{Myitii}
\newcounter{Myitiii}
\counterwithin{Myitii}{Myiti}
\counterwithin{Myitiii}{Myitii}
\newcommand*\Itemi{\stepcounter{Myiti}\theMyiti.}
\newcommand*\Itemii{\stepcounter{Myitii}\theMyitii.}
\newcommand*\Itemiii{\stepcounter{Myitiii}\theMyitiii.}
\definecolor{BlueI}{RGB}{15 110 198}
\definecolor{BlueII}{RGB}{116 184 244}
\definecolor{BlueIII}{RGB}{186 219 249}
\begin{document}
\begin{tabular}[t]{>{\columncolor{BlueI}\bfseries}p{2cm}}
\textcolor{white}{Main} \\
\textcolor{white}{Success} \\[161.6pt]% adjust manually
\end{tabular}\hspace*{-4pt}
\rowcolors{1}{BlueII}{BlueIII}
\arrayrulecolor{white}
\begin{tabular}[t]{r|>{\raggedright\arraybackslash}p{6cm}}
\Itemi & Text \\ \hline
\Itemii & Text \\ \hline
\Itemiii & Text \\ \hline
\Itemi & Text \\ \hline
\Itemii & Text \\ \hline
\Itemii & Text \\ \hline
\Itemii & Text \\ \hline
\Itemi & Text \\ \hline
\Itemii & Text \\ \hline
\Itemiii & Text \\ \hline
\Itemiii & Text \\ \hline
\Itemi & Text \\ \hline
\Itemii & Text \\ \hline
\Itemi & Text \\ \hline
\Itemii & Text \\ \hline
\end{tabular}
\end{document}
Code: Select all
\documentclass{article}
\usepackage[table]{xcolor}
\usepackage{fouriernc}
\usepackage{multirow}
\usepackage{chngcntr}
\newcounter{Myiti}
\newcounter{Myitii}
\newcounter{Myitiii}
\counterwithin{Myitii}{Myiti}
\counterwithin{Myitiii}{Myitii}
\newcommand*\Itemi{\stepcounter{Myiti}\theMyiti.}
\newcommand*\Itemii{\stepcounter{Myitii}\theMyitii.}
\newcommand*\Itemiii{\stepcounter{Myitiii}\theMyitiii.}
\definecolor{BlueI}{RGB}{15 110 198}
\definecolor{BlueII}{RGB}{116 184 244}
\definecolor{BlueIII}{RGB}{186 219 249}
\begin{document}
\newsavebox{\mylist}
\savebox{\mylist}{%
\rowcolors{1}{BlueII}{BlueIII}
\arrayrulecolor{white}
\begin{tabular}[t]{@{}|r|>{\raggedright\arraybackslash}p{6cm}}
\Itemi & Text \\ \hline
\Itemii & Text \\ \hline
\Itemiii & Text \\ \hline
\Itemi & Text \\ \hline
\Itemii & Text \\ \hline
\Itemii & Text \\ \hline
\Itemii & Text \\ \hline
\Itemi & Text \\ \hline
\Itemii & Text \\ \hline
\Itemiii & Text \\ \hline
\Itemiii & Text \\ \hline
\Itemi & Text \\ \hline
\Itemii & Text \\ \hline
\Itemi & Text \\ \hline
\Itemii & Text \\ \hline
\Itemii & Text \\ \hline
\end{tabular}}
\begin{tabular}{>{\columncolor{BlueI}\bfseries}p{2cm}|@{\hspace*{-3pt}}l}
\textcolor{white}{Main \newline Success} &
\usebox{\mylist}
\end{tabular}\hspace*{-4pt}
\end{document}
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p