I have defined a \newcommand called \NewEntry that takes two parameters and prints one above the other.
\newcommand{\NewEntry}[2]{
#1 \\
#2
}
Calling this command by
\NewEntry{ENTRY}
{\begin{itemize}[topsep=0pt]
\item First Item
\item Second Item
\end{itemize}
}
leads to a vertical space between "ENTRY" and "First item", even though topsep is set to zero.
I would like to remove this space.
If the command is called by
\NewEntry{ENTRY}
{Blah\begin{itemize}[topsep=0pt]
\item First Item
\item Second Item
\end{itemize}
}
then "Blah" occupies the space that I am trying to remove.
A MWE follows:
\documentclass{article}
\usepackage{enumitem}
\setlength{\parindent}{0pt}
\newcommand{\NewEntry}[2]{
#1 \\
#2
}
\begin{document}
\NewEntry{ENTRY}
{Blah\begin{itemize}[topsep=0pt]
\item First Item
\item Second Item
\end{itemize}
}
\NewEntry{ENTRY}
{\begin{itemize}[topsep=0pt]
\item First Item
\item Second Item
\end{itemize}
}
\end{document}
Any help would be greatly appreciated.





\NewEntrymacro does not seem very well structured but I can see that you are trying to structure your text. If you let us know what it is supposed to represent/typeset maybe we can suggest a better way to package it... – Bordaigorl Sep 30 '15 at 14:56\NewEntryand format the itemize inside it...(just as an example of what I'm talking about) – Bordaigorl Sep 30 '15 at 14:57