From: Bruce Horrocks <ntg@scorecrow.com>
To: ntg-context mailing list <ntg-context@ntg.nl>
Subject: [NTG-context] Re: setting up the interline space
Date: Fri, 25 Oct 2024 17:52:14 +0100 [thread overview]
Message-ID: <E40FB477-014E-4D1D-8847-89D71F8060D9@scorecrow.com> (raw)
In-Reply-To: <172983129653.1601628.16902210668730368167@cgl.ntg.nl>
> 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
___________________________________________________________________________________
next prev parent reply other threads:[~2024-10-25 17:06 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-25 4:41 [NTG-context] " David Roderick
2024-10-25 16:52 ` Bruce Horrocks [this message]
2024-10-26 12:11 ` [NTG-context] " Wolfgang Schuster
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E40FB477-014E-4D1D-8847-89D71F8060D9@scorecrow.com \
--to=ntg@scorecrow.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).