I have a document in which I have subsections for which I might or not have items to enumerate:
\documentclass[10pt,a4paper]{resume} % Use the custom resume.cls style
\usepackage[left=0.4 in,top=0.4in,right=0.4 in,bottom=0.4in]{geometry} % Document margins
\usepackage{eurosym}
\usepackage[usenames, dvipsnames]{color}
\begin{document}
\begin{rSection}{Section1}
\begin{rSubsection}{Sub1}{}
{}{}
\item[] MyItem1
\item[] MyItem2
\end{rSubsection}
\begin{rSubsection}{MyEmptySubsection}{}
{}{}
\end{rSubsection}
\begin{rSubsection}{Sub2}{}
{}{}
\item[] MyItem1
\end{rSubsection}
\end{rSection}
\end{document}
My problem is that it does not accept a subsection such as the second one in which there is no item. How can I fix that ?
(Note that I want to keep the exact same font, spacing etc between every subsection)
The resume.cls can be found there:
https://github.com/treyhunner/resume
Best Answer
I think a good way to do this would be to create a new environment for a subsection that is designed to be empty, and just call it something new, such as
rEmptySubsection
. Looking at the source for the class you are using, here is what the environment for therSubsection
with a list looks like:Starting with the same idea, and assuming you only want to remove the list from the environment, you can do something like this:
In this way, you can customize the environment, and decide on spacing. You could even create a different kind of subsection altogether if you like. I hope this helps.