Am Montag, 17. Juni 2024, 21:20:19 MESZ schrieb Wolfgang Schuster:
> Gerion Entrup schrieb am 17.06.2024 um 13:04:
> > Am Donnerstag, 6. Juni 2024, 16:34:03 MESZ schrieb Wolfgang Schuster:
> >> [...]
> >>
> >> Wolfgang
> >>
> > 
> > I tried to combine this with the code of the mail thread: "setuphead in 
> > connection with the command argument" but had not luck.
> > ConTeXt always stops with:
> > ```
> > close source    > level 1, order 2, name './mwe.tex'
> > tex error       > runaway error: end of file encountered
> > mtx-context     | fatal error: return code: 1
> > ```
> > 
> > Here is the MWE:
> > ```
> > [...]
> > 
> > \startsetups[my_chapter]
> >     \startlocalheadsetup
> >             \startframed[chapter_frame]
> >                     \blank[2cm]
> >                     \startfont[Serif sa 8]
> >                             \color[darkgray]{\headnumbercontent}
> >                     \stopfont
> >                     \blank[5mm]
> >                     \startfont[SerifBold sa 2]
> >                             \color[m-indigo-800]{\headtextcontent}
> >                     \stopfont
> >                     \blank[1cm]
> >                     \startfont[SerifBold sa 1.5]
> >                             
> > \color[m-indigo-800]{\structureuservariable{subtitle}}
> >                     \stopfont
> >                     \blank[3cm]
> >                     
> > \startextract[author={\structureuservariable{quoteauthor}}]
> >                             \structureuservariable{quote}
> >                     \stopextract
> >             \stopframed
> >     \stoplocalheadsetup
> > \stopsetups
> 
> The userdata environment uses the buffer mechanism of Context which has 
> a few limitations where you can use it, e.g. putting the environment in 
> the arguments of other commands (like the setup-environment above) 
> fails. One way to avoid this is to replace the \startextract ... 
> \stopextract in this case with the code for the quoted text, another way 
> is to put all content in a buffer and just load the buffer in the 
> setups-environment.
> 
> \startbuffer[my_chapter]
>       \startlocalheadsetup
>               \startframed[chapter_frame]
>                       ...
>               \stopframed
>       \stoplocalheadsetup
> \stopbuffer
> 
> \startsetups[my_chapter]
>    \getbuffer[my_chapter]
> \stopsetups
> 
> Wolfgang
> 

Thanks, I solved it by embedding the extract code directly (more less).

Gerion

Attachment: signature.asc
Description: This is a digitally signed message part.

___________________________________________________________________________________
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