I'm creating documents using the memoir
class in XeLaTeX
. I'm having trouble creating proper paragraph presentation, and in particular my when I create paragraphs with \paragraph{}lorem ipsum
LaTeX ignores the \parskip
and \parindent
settings.
For example, if I have a document
\documentclass[oneside,11pt]{memoir}
\usepackage{fontspec}% font selecting commands
\usepackage{xunicode}% unicode character macros
\usepackage{xltxtra} % some fixes/extras
\begin{document}
\setlength{\parskip}{0pt} % 1ex plus 0.5ex minus 0.2ex}
\setlength{\parindent}{0pt}
\pagestyle{plain}
\paragraph{}orem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam enim
urna, mattis eu aliquet eget, condimentum id nibh. In hac habitasse platea
dictumst.
\paragraph{}ipsum dolor sit amet, consectetur adipiscing elit. Aliquam enim urna,
mattis eu aliquet eget, condimentum id nibh. In hac habitasse platea dictumst.
\end{document}
This typesets like so:
orem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam enim urna, mattis eu aliquet eget, condimentum id nibh. In hac habitasse platea dictumst.
ipsum dolor sit amet, consectetur adipiscing elit. Aliquam enim urna, mattis eu aliquet eget, condimentum id nibh. In hac habitasse platea dictumst.
This incorrectly has both paragraph indentation and skip, in spite of \parskip
and \parindent
being set to zero.
One would expect the typeset output to look like this (which is an ugly choice of paragraph formatting, but illustrates the issue):
orem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam enim urna, mattis eu aliquet eget, condimentum id nibh. In hac habitasse platea dictumst.
ipsum dolor sit amet, consectetur adipiscing elit. Aliquam enim urna, mattis eu aliquet eget, condimentum id nibh. In hac habitasse platea dictumst.
I note that when I separate paragraphs by two newlines (i.e. don't use \paragraph{}
, and) the \parskip
and \parindent
settings are honoured.
I'd be very grateful to know why, when using \paragraph{}
, the \parskip
and \parindent
commands are not honoured, and how one might either have these commands honoured or alternatively what commands would achieve the same effect with paragraphs created with \paragraph{}
.
Thank you for reading.
Brian
\paragraph
because on occasion, the paragraphs must be both numbered and counted, which I understand is a fine solution, though perhaps not the only, based on this question: stackoverflow.com/questions/543208 – Manicurist