[NTG-context] typesetting verse?
Aditya Mahajan
adityam at umich.edu
Thu Aug 24 00:38:26 CEST 2006
On Wed, 23 Aug 2006, Derek Schmidt wrote:
> Aditya,
>
> With the first group of code, I get "indenting=yes" actually appearing
> in there; yet the lines aren't indented or closer together
> (vertically). I removed the '%' but that didn't seem to make a
> difference.
Sorry, that should have been \setuplines[indenting=yes]. Have a look
at the code posted by Hans sometime back.
Aditya
> On 8/23/06, Aditya Mahajan <adityam at umich.edu> wrote:
>> On Tue, 22 Aug 2006, Derek Schmidt wrote:
>>
>>> Hi,
>>>
>>> Another simple question--have at it!
>>>
>>> I'd like to typeset some poetry. It should be
>>
>>> indented,
>>
>> \startnarrower .... \stopnarrower
>>
>>> obey lines,
>>
>> \startlines ... \stoplines (it is more customizable than \obeylines)
>>
>> You can actually say
>>
>> \setupindenting[medium] \startlines[indenting=yes] (other options are
>> no, yes, odd, even) and see which one you like.
>>
>>> and the lines should be close together, not like separate paragraphs.
>>
>> \setupinterlinespace[line=2em] .... \endgraf (default is 2.4 em)
>>
>>> So far I've got
>>>
>>> \definestartstop[verse][commands=\obeylines]
>>
>> So you can try
>>
>> \def\startverse%
>> {\bgroup
>> \setupinterlinespace[line=2em]
>> \startlines[indenting=yes]}
>>
>> \def\stopverse%
>> {\stoplines
>> \endgraf\egroup}
>>
>>
>> You could have also done the equivalent
>>
>> \definestartstop[verse][before={\setupinterlinespace[line=2em]\startlines},
>> after={\stoplines\endgraf}]
>>
>> Aditya
>> _______________________________________________
>> ntg-context mailing list
>> ntg-context at ntg.nl
>> http://www.ntg.nl/mailman/listinfo/ntg-context
>>
> _______________________________________________
> ntg-context mailing list
> ntg-context at ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>
>
>
--
Aditya Mahajan, EECS Systems, University of Michigan
http://www.eecs.umich.edu/~adityam || Ph: 7342624008
More information about the ntg-context
mailing list