* [NTG-context] setting up the interline space
@ 2024-10-25 4:41 David Roderick
2024-10-25 16:52 ` [NTG-context] " Bruce Horrocks
0 siblings, 1 reply; 3+ messages in thread
From: David Roderick @ 2024-10-25 4:41 UTC (permalink / raw)
To: ntg-context
i am processing:
\startotherverse % Verse
God fashioned the ship of the world carefully.
\stopotherverse
\startotherverse % Verse
With the infinite skill of an All-Master
\stopotherverse
\startotherverse % Verse
Made He the hull and sails,
\stopotherverse
I wish to change the spacings between these output lines.
\definenarrower[OtherVerseIndent][
default={left,right},
before=\switchtobodyfont[crane],
after=\switchtobodyfont[mainfamily]\noindentation
]
\definelines[otherverse][
after=\stopOtherVerseIndent,
before=\startOtherVerseIndent,
]
How do I achieve this?
David Roderick
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* [NTG-context] Re: setting up the interline space
2024-10-25 4:41 [NTG-context] setting up the interline space David Roderick
@ 2024-10-25 16:52 ` Bruce Horrocks
2024-10-26 12:11 ` Wolfgang Schuster
0 siblings, 1 reply; 3+ messages in thread
From: Bruce Horrocks @ 2024-10-25 16:52 UTC (permalink / raw)
To: ntg-context mailing list
> On 25 Oct 2024, at 05:41, David Roderick <angel.of.north@gmail.com> wrote:
>
> i am processing:
>
> \startotherverse % Verse
> God fashioned the ship of the world carefully.
> \stopotherverse
>
> \startotherverse % Verse
> With the infinite skill of an All-Master
> \stopotherverse
>
> \startotherverse % Verse
> Made He the hull and sails,
> \stopotherverse
>
> I wish to change the spacings between these output lines.
>
> \definenarrower[OtherVerseIndent][
> default={left,right},
> before=\switchtobodyfont[crane],
> after=\switchtobodyfont[mainfamily]\noindentation
> ]
>
> \definelines[otherverse][
> after=\stopOtherVerseIndent,
> before=\startOtherVerseIndent,
> ]
>
> How do I achieve this?
You have one line per verse in the above example, so the only spacing that can be changed is that between verses.
Assuming you meant the spacing of the lines within each verse then the following might be what you want. (Note: I don’t have the Crane font so substituted Pagella.)
\definefont[otherversefont][name:pagella at 14pt][big]
\definelines[otherverse]
\setuplines[otherverse][before={\otherversefont}]
\starttext
Here is a verse:
\startotherverse
God fashioned the ship of the world carefully.
With the infinite skill of an All-Master
Made He the hull and sails,
\stopotherverse
and back to the previous bodyfont.
\stoptext
Change the parameter ‘big’ to get different spacings. (See \setupinterlinespace for options.)
Regards,
—
Bruce Horrocks
Hampshire, UK
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* [NTG-context] Re: setting up the interline space
2024-10-25 16:52 ` [NTG-context] " Bruce Horrocks
@ 2024-10-26 12:11 ` Wolfgang Schuster
0 siblings, 0 replies; 3+ messages in thread
From: Wolfgang Schuster @ 2024-10-26 12:11 UTC (permalink / raw)
To: mailing list for ConTeXt users, Bruce Horrocks
Bruce Horrocks schrieb am 25.10.2024 um 18:52:
>> On 25 Oct 2024, at 05:41, David Roderick <angel.of.north@gmail.com> wrote:
>>
>> i am processing:
>>
>> \startotherverse % Verse
>> God fashioned the ship of the world carefully.
>> \stopotherverse
>>
>> \startotherverse % Verse
>> With the infinite skill of an All-Master
>> \stopotherverse
>>
>> \startotherverse % Verse
>> Made He the hull and sails,
>> \stopotherverse
>>
>> I wish to change the spacings between these output lines.
>>
>> \definenarrower[OtherVerseIndent][
>> default={left,right},
>> before=\switchtobodyfont[crane],
>> after=\switchtobodyfont[mainfamily]\noindentation
>> ]
>>
>> \definelines[otherverse][
>> after=\stopOtherVerseIndent,
>> before=\startOtherVerseIndent,
>> ]
>>
>> How do I achieve this?
> You have one line per verse in the above example, so the only spacing that can be changed is that between verses.
> Assuming you meant the spacing of the lines within each verse then the following might be what you want. (Note: I don’t have the Crane font so substituted Pagella.)
>
> \definefont[otherversefont][name:pagella at 14pt][big]
> \definelines[otherverse]
> \setuplines[otherverse][before={\otherversefont}]
\setuplines[otherverse][style=otherversefont]
Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-10-26 12:13 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-10-25 4:41 [NTG-context] setting up the interline space David Roderick
2024-10-25 16:52 ` [NTG-context] " Bruce Horrocks
2024-10-26 12:11 ` Wolfgang Schuster
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).