Am 04.08.26 um 17:08 schrieb Taco Hoekwater:
Here is a simple solution that does not need extensions or redefinitions, but 
unfortunately it does need a bit of extra code through the body text processing.

AFAIK, there are no “beforelist” and “afterlist” keys, nor a “rightmargin".

\startbodymatter
   \chapter{Lorem ipsum dolor sit}
   \chapter{Lorem ipsum dolor sit}
   \section{Lorem ipsum dolor sit}
   \writebetweenlist[section][location=here]{\startnarrower[right]} % <= tweak 
as needed
   \subsection{Loren ipsum}
   \subsection{Lorem ipsum dolor}
   \subsection{Lorem ipsum dolor sit}
   \writebetweenlist[section][location=here]{\stopnarrower}
   \section{Lorem ipsum dolor sit

Well, the proper way should be to use \definelistalternative, i.e. define your own layout that includes these lines.

see https://wiki.contextgarden.net/Command/setuplistalternative (there is a somewhat convoluted example that shows the variables that you can use).

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

maillist : [email protected] / 
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