Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion TeX and poetry: \obeylines and \smallskip
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Victor Eijkhout  
View profile  
 More options Dec 13 1990, 12:41 pm
Newsgroups: comp.text.tex
From: eijkh...@s41.csrd.uiuc.edu (Victor Eijkhout)
Date: 12 Dec 90 19:11:24 GMT
Local: Wed, Dec 12 1990 2:11 pm
Subject: Re: TeX and poetry: \obeylines and \smallskip

xiao...@acsu.buffalo.edu (Xiaofei Wang) writes:
>I have a problem:

[ explanation deleted: it boils down to a sort of \parskip
 inside \obeylines ]

>{\obeylines
>I heard the trailing garments of the Night
>     Sweep through her marble halls!
>I saw her sable skirts all fringed with light
>     From the celestial walls!
>\smallskip
>I felt her presence, by its spell of might,
>    Stoop o'er me from above;
>The calm, majecstic presence of the Night,
>    As of the one I love.

>\smallskip

[etc]

Try something along these lines:

{\catcode`\^^M\active \endlinechar=-1 %
\gdef\poemobeylines{\catcode`\^^M\active
    \def^^M{\endgraf\futurelet\next\maybeskip}
    \def\maybeskip{\ifx\next^^M \bigskip \fi}}

}

and use \poemobeylines instead of \obeylines.

Victor.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.