Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Using the hints in this post: Defining a command that accepts multiple but non-determined in total number of parameters, I have a new description defined.

The issue is that when I add enumeration inside of it, I have first pointer(dot) in the wrong position. How can I move the dot to the next line?

enter image description here

\documentclass[12pt,oneside]{memoir}

\newcommand{\myitem}[2]{%
  \item #1
  \begin{description}
  #2
  \end{description}
}
\newcommand{\II}[2]{%
  \item[#1] #2
}

\chapterstyle{mystyle}

\begin{document}

\begin{enumerate}
\myitem{Scenario average temperature}{
  \II{Description:}{In this scenario, application developers use to share average
temperature for 100 nodes.  }
  \II{Sequence of functions:}{}
  \II{Environments needed to execute the scenario:}{}
  \II{What triggers the execution and what determines the completion:}{
\begin{itemize}
\item A
\item B
\end{itemize}
}
}
\end{enumerate}

\end{document}
share|improve this question

1 Answer 1

up vote 6 down vote accepted

The fact that the first bullet of nested lists is inlined into the outer list item is a deliberate feature of the latex list implementation. I can't say it's a feature I have ever wanted but still...

\newcommand{\II}[2]{%
  \item[#1]\mbox{}\ignorespaces #2
}

Is one simple way to avoid it however the What triggers the execution and what determines the completion:} text in your example is wider than the page so the layout is still less than ideal, perhaps you need a list layout that allows the item to linebreak?

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.