[texhax] \hangindent issue

Daniel H. Luecking luecking at uark.edu
Mon Aug 22 15:12:46 CEST 2016


I wrote:

>Then you must ensure that active end-line characters exist at the

>end of each line of the text of \poem. For example,
>

>{\obeylines

>\def\poem{%

>  line one

>  line two

>}

>}

And then Philip Taylor wrote:


>which may, of itself, cause problems, since the \def won't be global


That's right. I meant to write \gdef, but it was somehow omitted from the posted version.


Cheers,


Daniel H. Luecking [luecking at uark.edu]
Department of Mathematical Sciences
1 University of Arkansas
Fayetteville, AR, USA 72701-1201
________________________________
From: Philip Taylor <P.Taylor at Rhul.Ac.Uk>
Sent: Sunday, August 21, 2016 1:09 PM
To: Daniel H. Luecking
Cc: TeXhax
Subject: Re: [texhax] \hangindent issue



Daniel H. Luecking wrote:

Then you must ensure that active end-line characters exist at the

end of each line of the text of \poem. For example,


{\obeylines

\def\poem{%

  line one

  line two

}

}

which may, of itself, cause problems, since the \def won't be global ...  Better might be :


\begingroup
\obeylines

\global \def \poem %
    {%

          line one

          line two

    }%

\endgroup

Philip Taylor

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/texhax/attachments/20160822/504cbc4d/attachment.html>


More information about the texhax mailing list