From: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>
To: Denis Maier <denismaier@mailbox.org>
Cc: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: [NTG-context] Re: \par and \startlines
Date: Fri, 26 Apr 2024 19:29:45 +0200 [thread overview]
Message-ID: <5fb17e1a-8d3b-1c51-bdae-c4695548ff51@gmail.com> (raw)
In-Reply-To: <162595028.64485.1714151930562@office.mailbox.org>
[-- Attachment #1.1: Type: text/plain, Size: 2346 bytes --]
Denis Maier schrieb am 26.04.2024 um 19:18:
>> Wolfgang Schuster <wolfgang.schuster.lists@gmail.com> hat am
>> 26.04.2024 18:24 CEST geschrieben:
>> Denis Maier via ntg-context schrieb am 26.04.2024 um 18:10:
>>>> Pablo Rodriguez via ntg-context <ntg-context@ntg.nl
>>>> <mailto:ntg-context@ntg.nl>> hat am 26.04.2024 17:25 CEST geschrieben:
>>>> On 4/26/24 15:33, denis.maier@unibe.ch
>>>> <mailto:denis.maier@unibe.ch> wrote:
>>>>> Hi,
>>>>> I’m trying to typeset a poem from XML, but I can’t figure out how to
>>>>> make the inbetween key working here.
>>>>> As the source is XML, I cannot just add an empty line to start a new
>>>>> group of lines inside \startlines…\stoplines. I guess, there must
>>>>> be a
>>>>> command to do that, but \par seems to have no effect here.
>>>>> How can this be done?
>>>> Hi Denis,
>>>> I must confess I don’t get which is your actual question.
>>>> \blank works here and you know that (since you included it in your
>>>> code).
>>>> MkIV with \par works in your sample and LMTX with \par doesn’t.
>>>> I wonder whether this might be a bug in LMTX.
>>>> Just in case it might help,
>>> Thanks for your answer and sorry for not being clearer. I was just
>>> wondering why the \par seems to have no effect. (I first guessed
>>> that it might be related to XML, to but then realized it happens
>>> with context markup as well. Usually, you won't run into this
>>> because an empty line works, but with XML that's not am option.) As
>>> you've said, it looks like a bug then.
>>
>> The lines environment treats each line of the input as paragraph by
>> adding \par at the end of it and adding another \par makes no
>> difference here.
>>
>> BTW: ConTeXt has a module for poems which can be loaded with
>> \usemodule[format].
>>
>> Wolfgang
>>
> Ok. I'll have a look at this module. Just two questions:
> 1. so did this behavior change?
> 2. What is inbetween referring to then? If each line is a paragraph,
> what's this group of paragraphs then? Can you manually switch to the
> next one?
The inbetween setting works because ConTeXt checks at the start of each
line whether it's empty (in this case the value is used) or not.
When you add a \par you just end the current line/paragraph and it
doesn't matter how many \par's you use because TeX just ignores them.
Wolfgang
[-- Attachment #1.2: Type: text/html, Size: 4129 bytes --]
[-- Attachment #2: Type: text/plain, Size: 511 bytes --]
___________________________________________________________________________________
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-04-26 17:32 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-26 13:33 [NTG-context] " denis.maier
2024-04-26 15:25 ` [NTG-context] " Pablo Rodriguez via ntg-context
2024-04-26 16:10 ` Denis Maier via ntg-context
2024-04-26 16:24 ` Wolfgang Schuster
2024-04-26 17:18 ` Denis Maier via ntg-context
2024-04-26 17:29 ` Wolfgang Schuster [this message]
2024-04-26 17:52 ` Denis Maier via ntg-context
2024-04-26 19:09 ` Pablo Rodriguez via ntg-context
2024-04-26 20:29 ` Henning Hraban Ramm
2024-04-27 5:39 ` Wolfgang Schuster
2024-04-30 12:28 ` Denis Maier via ntg-context
2024-05-01 7:44 ` Wolfgang Schuster
2024-05-01 8:08 ` Henning Hraban Ramm
2024-04-27 7:24 ` Henning Hraban Ramm
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=5fb17e1a-8d3b-1c51-bdae-c4695548ff51@gmail.com \
--to=wolfgang.schuster.lists@gmail.com \
--cc=denismaier@mailbox.org \
--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).