Hi I would like to have an item starting directly at level 2 in an item list.
The reason is I am using lstlistings inside the list and I would like those to be without margin so I am doing something like this:
\begin{itemize}
\item Top level
\begin{itemize}
\item Second level
\end{itemize}
\end{itemize}
\lstinputlisting{somefile}
\begin{itemize}
\begin{itemize}
\item Second level
\end{itemize}
\end{itemize}
\lstinputlisting{someotherfile}
... but latex complains that there is no item in the second list at first level:
! LaTeX Error: Something's wrong--perhaps a missing \item.
How can I fix that ? A possible option for me would also be to get rid of the margin for the listing if inside the list (but I didn't find a solution for that either).
So something like that without margin for the listings:
\begin{itemize}
\item Top level
\begin{itemize}
\item Second level
\lstinputlisting{somefile}
\item Second level
\lstinputlisting{someotherfile}
\end{itemize}
\end{itemize}
\item[]\begin{itemize}
instead of omitting the item.