denis.ma...@unibe.ch schrieb am 12.09.2023 um 23:32:
You need a box to get the author on a separate line.
% \define[2]\ChapterCommand
% {\vbox
% {\structureuservariable{author}
% \blank
% #1\space#2}}
\starttexdefinition protected ChapterCommand #1#2
\vbox\bgroup
You can find some examples in the wiki to do something similar:
https://wiki.contextgarden.net/Generate_Authorlist_from_Head_Content
Also you can use setups instead of macro definitions, and create spaces
with \space, \par, etc: https://wiki.contextgarden.net/Setups
--
Andrés Conrado Montoya
Von: Wolfgang Schuster
Gesendet: Dienstag, 12. September 2023 23:16
An: Maier, Denis Christian (UB)
Cc: ntg-context@ntg.nl
Betreff: Re: [NTG-context] Using structureuservariables before the heading
denis.ma...@unibe.ch<mailto:denis.ma...@unibe.ch> schrieb am 12.09.2023 um
21:38:
Von: Wo
denis.ma...@unibe.ch schrieb am 12.09.2023 um 21:38:
*Von:*Wolfgang Schuster
*Gesendet:* Dienstag, 12. September 2023 21:30
*An:* Maier, Denis Christian (UB)
*Cc:* ntg-context@ntg.nl
*Betreff:* Re: [NTG-context] Using structureuservariables before the
heading
denis.ma...@unibe.ch
Von: Wolfgang Schuster
Gesendet: Dienstag, 12. September 2023 21:30
An: Maier, Denis Christian (UB)
Cc: ntg-context@ntg.nl
Betreff: Re: [NTG-context] Using structureuservariables before the heading
denis.ma...@unibe.ch<mailto:denis.ma...@unibe.ch> schrieb am 12.09.2023 um
21:24:
denis.ma...@unibe.ch schrieb am 12.09.2023 um 21:24:
*Von:*Wolfgang Schuster
*Gesendet:* Dienstag, 12. September 2023 20:41
*An:* mailing list for ConTeXt users ; Maier,
Denis Christian (UB)
*Betreff:* Re: [NTG-context] Using structureuservariables before the
heading
denis.ma...@unibe.ch
Von: Wolfgang Schuster
Gesendet: Dienstag, 12. September 2023 20:41
An: mailing list for ConTeXt users ; Maier, Denis Christian
(UB)
Betreff: Re: [NTG-context] Using structureuservariables before the heading
denis.ma...@unibe.ch<mailto:denis.ma...@unibe.ch> schrieb am 12.09.2023 um
denis.ma...@unibe.ch schrieb am 12.09.2023 um 17:47:
Hi,
is it possible to access a structureuservariable before the heading’s
title ?
Using the «before» key does not seem to work.
There are ways but not in a general way because you try to access the values
before they are known to
Ok, \starttexdefinition allows blanks, apparently just like setups.
But, it still fails exactly like the version with \def
\setuphead[chapter][
before={Before: \structureuservariable{author}\blank},
beforesection={Beforesection: \structureuservariable{author}\blank},