<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none"><!--P{margin-top:0;margin-bottom:0;} p
        {margin-top:0;
        margin-bottom:0}--></style>
</head>
<body dir="ltr" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:'Courier New',monospace;">
<p>I wrote:</p>
>Then you must ensure that active end-line characters exist at the
<p>>end of each line of the text of \poem. For example,<br>
><br>
</p>
<p><tt>>{\obeylines</tt><tt><br>
</tt></p>
<p><tt>>\def\poem{%</tt></p>
<p><tt>>  line one</tt><tt><br>
</tt></p>
<p><tt>>  line two</tt></p>
<p><tt>>}</tt><tt><br>
</tt></p>
<tt>>}</tt>
<p>And then Philip Taylor wrote:</p>
<p><br>
</p>
<p>>which may, of itself, cause problems, since the \def won't be global <br>
</p>
<p><br>
</p>
<p>That's right. I meant to write \gdef, but it was somehow omitted from the posted version.<br>
</p>
<p><br>
</p>
<p>Cheers,<br>
</p>
<p><br>
</p>
<div id="Signature">
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px"><font face="Courier New" size="3">Daniel H. Luecking [luecking@uark.edu]
<br>
Department of Mathematical Sciences<br>
1 University of Arkansas<br>
Fayetteville, AR, USA 72701-1201</font><br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div style="color: rgb(33, 33, 33);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" color="#000000" face="Calibri, sans-serif"><b>From:</b> Philip Taylor <P.Taylor@Rhul.Ac.Uk><br>
<b>Sent:</b> Sunday, August 21, 2016 1:09 PM<br>
<b>To:</b> Daniel H. Luecking<br>
<b>Cc:</b> TeXhax<br>
<b>Subject:</b> Re: [texhax] \hangindent issue</font>
<div> </div>
</div>
<div><br>
<br>
<div class="moz-cite-prefix">Daniel H. Luecking wrote:<br>
</div>
<blockquote type="cite"><style type="text/css" style="">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
<p>Then you must ensure that active end-line characters exist at the </p>
<p>end of each line of the text of \poem. For example,<br>
<br>
</p>
<p><tt>{\obeylines</tt><tt><br>
</tt></p>
<tt></tt>
<p><tt>\def\poem{%</tt></p>
<tt></tt>
<p><tt>  line one</tt><tt><br>
</tt></p>
<tt></tt>
<p><tt>  line two</tt></p>
<tt></tt>
<p><tt>}</tt><tt><br>
</tt></p>
<tt></tt>
<p><tt>}</tt></p>
</blockquote>
which may, of itself, cause problems, since the \def won't be global ...  Better might be :<br>
<br>
<p><tt>\begingroup</tt><tt><br>
</tt><tt>\obeylines</tt><tt><br>
</tt></p>
<tt></tt>
<p><tt>\global \def \poem %</tt><tt><br>
</tt><tt>    </tt><tt>{%</tt></p>
<tt></tt>
<p><tt>          line one</tt><tt><br>
</tt></p>
<tt></tt>
<p><tt>          line two</tt></p>
<tt></tt>
<p><tt>    }%</tt><tt><br>
</tt></p>
<tt></tt>
<p><tt>\endgroup</tt><br>
</p>
<p><br>
Philip Taylor<br>
</p>
<br>
</div>
</div>
</body>
</html>