Denis Maier schrieb am 26.04.2024 um 19:18:
Wolfgang Schuster <wolfgang.schuster.li...@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.ma...@unibe.ch <mailto:denis.ma...@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

___________________________________________________________________________________
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
___________________________________________________________________________________

Reply via email to