juh via ntg-context schrieb am 26.12.2021 um 17:36:
Hi all,

I am looking for a way to make startstoplines likes this:


This is a long line
     that breaks,
the second line,
the third line.

So if a line in the poem is too long it shall break and indent.


Short version:

\setuplines
  [   before={\blank\startnarrow[default=left,left=1cm]},
       after={\stopnarrow\blank},
   indenting={yes,-1cm}]

\showframe[text][text]

\starttext

before

\startlines
text \dorecurse{10}{ text}
text \dorecurse{40}{ text}
text \dorecurse{10}{ text}
\stoplines

after

\stoptext


Long version:

\definemeasure[Indentation][1cm]

\definenarrower
  [LinesIndentation]
  [ before=\blank,
     after=\blank,
   default=left,
      left=\measure{Indentation}]

\definelines
  [Poem]
  [   before=\startLinesIndentation,
       after=\stopLinesIndentation,
   indenting={yes,-\measure{Indentation}}]

\showframe[text][text]

\starttext

before

\startPoem
text \dorecurse{10}{ text}
text \dorecurse{40}{ text}
text \dorecurse{10}{ text}
\stopPoem

after

\stoptext


Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to