My issue can be boiled down to this:
\documentclass[10pt,oneside]{article}
\usepackage{enumitem}
\newenvironment{mygroup}{
\vspace{.15in}
\textbf{\large MyGroup Heading}
}{
}
\newenvironment{mylist}[1]{
\newcommand{\myitem}[1]{
\item ##1:%
}
\vspace{.12in}
\emph{\fontsize{11}{11}\selectfont#1}
\begin{itemize}[noitemsep,nolistsep]
}{
\end{itemize}
}
\begin{document}
\begin{mygroup}
\begin{mylist}{subheading 1}
\myitem{item 1} item 1 content
\myitem{item 2} item 2 content
\end{mylist}
\begin{mylist}{subheading 2}
\myitem{another item} content
\end{mylist}
\end{mygroup}
\end{document}
Currently, I display subheadings no matter how many mylist
s there are inside a mygroup
. How do I make it so that subheadings only display if there are two or more mylist
s in a mygroup
, and if there is only one, its subheading is not displayed?
mylist
s, subheadings would not be omitted.