Denis Maier schrieb am 26.04.2024 um 19:18:
Wolfgang Schuster
hat am 26.04.2024 18:24 CEST geschrieben: Denis Maier via ntg-context schrieb am 26.04.2024 um 18:10: 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
Pablo Rodriguez via ntg-context
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: 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