[texhax] How to insert a line break before \item?

Randolph J. Herber herber at dcdrjh.fnal.gov
Thu May 15 11:52:09 CEST 2003


The following header lines retained to effect attribution:
|Date: Wed, 14 May 2003 18:35:54 -0700 (PDT)
|From: ky anh <xkyanh at yahoo.com>
|Subject: [texhax] How to insert a line break before \item?
|To: texhax at tug.org
|	<mailto:texhax-request at tug.org?subject=subscribe>
|	<mailto:texhax-request at tug.org?subject=unsubscribe>

|Guess the result of

| \begin{description}
|   \item[A]
|      \begin{itemize}
|         \item[+] This is A1
|         \item[+] This is A2
|      \end{itemize}
|   \item[B] This is B
| \end{description}

|It likes this
|  A   - This is A1
|    - This is A2
|  B This is B

|It's nicely. But sometimes, we want a result
|  A
|    - This is A1
|    - This is A2
|  B This is B

|We cannot insert a \par before \item

	Of course, in the situation you gave, the /par is implicit
	and multiple /par are treated as one /par.

	You have to put somehting on the first line.

	Consider using an empty \mbox or a \strut.

| \begin{description}
|   \item[A]
|     \par % <------------------ error
|      \begin{itemize}
|         \item[+] This is A1
|         \item[+] This is A2
|      \end{itemize}
|   \item[B] This is B
| \end{description}

|YES, How to insert a line break before \item?

|(Please say the simplest way...
|Redefinning `description' is too hard for TeX users.)

|;-))

|__________________________________
|Do you Yahoo!?
|The New Yahoo! Search - Faster. Easier. Bingo.
|http://search.yahoo.com
|_______________________________________________
|texhax mailing list
|postmaster at tug.org
|http://tug.org/mailman/listinfo/texhax

Randolph J. Herber, herber at fnal.gov, +1 630 840 2966, CD/CDFTF PK-149F,
Mail Stop 318, Fermilab, Kirk & Pine Rds., PO Box 500, Batavia, IL 60510-0500,
USA.  (Speaking for myself and not for US, US DOE, FNAL nor URA.)  (Product,
trade, or service marks herein belong to their respective owners.)



More information about the texhax mailing list