Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!zaphod.mps.ohio-state.edu!think.com!paperboy!hsdndev!cmcl2!uupsi!sunic!kth.se!cyklop.nada.kth.se!news From: grodan@cyklop.nada.kth.se (Mats G L|fdahl) Newsgroups: comp.text.tex Subject: How do I make poetry local to an \item in LaTeX ? Message-ID: Date: 7 Feb 91 14:30:08 GMT Sender: news@nada.kth.se (Mr News) Distribution: comp Organization: Royal Institute of Technology, Stockholm, Sweden Lines: 42 I'm trying to create a list environment in which I want some items to be in poetry mode, and some in ordinary non-poetry mode. I would like to be able to enter these items like this: \verseitem[label] First line in first stanza Second line in first stanza First line in second stanza Second line in second stanza \item[label] Ordinary text in a non-poetry paragraph I thought of two ways to do this: 1) Somehow make \verseitem be an \item with the text inside a verse environment. Then I just make \catcode`\^^M=\active \def^^M{\\}, so that I don't need to end the lines with a \\. 2) In a \verseitem, do \catcode`\^^M=\active \def^^M{\hfil\break} However, I don't know how to make the definitions local to an item. Also, in 1), LaTeX will not like the empty line between the stanzas, because of the definition of ^^M. Solutions or/and good ideas welcome by email. General interest will make me post a summary. /Mats. -- ----------------------------------------------------------------------------- Mats Lofdahl, Stockholm Observatory, S-133 36 Saltsjobaden | +46 - 8 16 44 75 ----------------------------------------------------------------------------- Internet: lofdahl@astro.su.se | Bitnet: grodan@sekth | Sunet: royacs::lofdahl -----------------------------------------------------------------------------