From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, HTML_MESSAGE,MAILING_LIST_MULTI,T_KAM_HTML_FONT_INVALID,URIBL_SBL_A autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 27576 invoked from network); 12 Sep 2023 21:34:12 -0000 Received: from cgl.ntg.nl (5.39.185.202) by inbox.vuxu.org with ESMTPUTF8; 12 Sep 2023 21:34:12 -0000 Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 91AD548309C for ; Tue, 12 Sep 2023 23:33:51 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZXP3FTVfwCAe for ; Tue, 12 Sep 2023 23:33:51 +0200 (CEST) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 257CA482F1F for ; Tue, 12 Sep 2023 23:33:14 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 6FB21482F1F for ; Tue, 12 Sep 2023 23:32:55 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dQ-uiTzA3AHz for ; Tue, 12 Sep 2023 23:32:54 +0200 (CEST) Received: from CHE01-GV0-obe.outbound.protection.outlook.com (mail-gv0che01on2124.outbound.protection.outlook.com [40.107.23.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by cgl.ntg.nl (Postfix) with ESMTPS id BF296482F1D for ; Tue, 12 Sep 2023 23:32:54 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HZIWfuCmA8Hf7VThrE5S6g7owfUBYl/9aZ6MRk/Y9hJTCKO/UlFsLmT5QLVCgKfCxresnMCrPLWOKJSTdst9AfQuvvqIE79+TCfkhMaSZLEk2+F5n0aqVL3p7Pc5BSlQe6Lu0oF60QlWZ7jS9rNER8qzQn/hTGwL97ZNJflvI3RMK94Q5ip/a5OSmQ69UOqrVOhWErgl3Ym/JPuKWWyVPJTMhlzqfHn4rY0uhYbPE+cXRVCkago4kKSumQ+K97e4/8gyQUcYWnFnesvSfJYXRBmPR23y9d0jv9ZXZdSY9c5U9Io1GilBUJ+RFomXziNiAqYFYuFEDbFx7adzUDboRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Sya5E669aAWywRF8ucrJJ9L16+6WU0fiU3tMvMCrLKU=; b=Zo9I//Z75yYh7wniFfNcYyrxWRM7Zmhsl1jnJ3ZffW/SrfcEW0B5ZUnLo6Mc/eAUOH3bl+42cYI4eN0AAwEZPszX4ZIAwSrT1354Gx0QtLhnFkNMczNFN/gUk5wFCgjDU2X28Wb2B0WG9y2fEs+WF7zvNyEnvczbdQVZWxuHI0mJHVtiqkpYdkuUI8X0yA2mI9JEdoz4bxlgt8Vvf6k4+D2w4xV9rIqGezldwKr4g05UJulgsdaawcr/21GdHkLzVTU7ueTaRcVhZq2UnfY/IEjnabEoAvs2qYuP0FfT9pvSrkrBb/Bo5Dte6xCeZHON3vWRHKMCqv8qwhmrj5p3aA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=unibe.ch; dmarc=pass action=none header.from=unibe.ch; dkim=pass header.d=unibe.ch; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=unibe.ch; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Sya5E669aAWywRF8ucrJJ9L16+6WU0fiU3tMvMCrLKU=; b=LvrEAGM+6wrfYjPIY+4rGn65C/CVhtGk6Hapm4lYcbCXe5bVuYKt93AAB8wDX8TIifSUebDpvKBgLgGHf24arcNoiSKPbCuhUdrm8eZPfxnLOUOAJu1d13Pi5XeQlqvFMdVVO6Tx9bEvCqYjUMZImeNRbjn2iMdxSiQl6Lf7AeTILgzDy6Tr0Ib7PT5T9LJnP5ftGu1Yftdzlb135qz12SlaatNi45FYHkF1Cqx+utHsDDVBn4sR4wWbfYyMLNHKlkaM6DwZhEbSljfg/j/T2hlZz1H3UG6JgKu7PWwgHv21ryqipCFLggmXSknGyamE4ShFK4xay9s9RQOESeesMQ== Received: from ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:2e::8) by ZR0P278MB1027.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:54::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6745.34; Tue, 12 Sep 2023 21:32:53 +0000 Received: from ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM ([fe80::e676:cca3:8123:9797]) by ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM ([fe80::e676:cca3:8123:9797%2]) with mapi id 15.20.6792.019; Tue, 12 Sep 2023 21:32:52 +0000 From: To: Thread-Topic: [NTG-context] Using structureuservariables before the heading Thread-Index: Adnli6zvCazPWV0rTeiRICxNQyFWqgAHQ4kAAAFhPfAAAFVzAAAAF1rgAAOXAAAAAHLCQA== Date: Tue, 12 Sep 2023 21:32:52 +0000 Message-ID: References: <005bc695-fac3-18d0-f903-81f7720506d7@gmail.com> <76b371c6-6560-e2ff-80c3-d2d29ef3915f@gmail.com> In-Reply-To: <76b371c6-6560-e2ff-80c3-d2d29ef3915f@gmail.com> Accept-Language: de-DE, en-US Content-Language: de-DE X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=unibe.ch; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: ZRAP278MB0495:EE_|ZR0P278MB1027:EE_ x-ms-office365-filtering-correlation-id: 28b3ccba-f564-467f-6181-08dbb3d7d220 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: Y3Zntv5UsrsaE19rnCa1SaIVDYhJCR7d6DRU1irKsvwtgaqfXMBB+SAN54cuwRWJyJzgLHc2poi73of1l7X7R9xCrEvJMd+6ZPVM9gMo2eENnEA7WvJmpX3fwiyT07smAxwQwq7DPD1LJGibFXGUlBFiBea7bNmugX16sPIwAKuCIEi9u5XlT2HnUWzDqI9dvrqSdIV1Urs2RS/GWsTIKghfuNHqn00VN6MkuPhEklWhvSmzaF55qKtAiBHCq1dPL/SR4qU2uK9OLtIZq+hDZzINAsBWF+9+nLpTAF0xw+5GOfs6n2gfj9Ud7ooffj8RInXAZbtyW08l9Xa2NtwFrtSB4g3Kq/rfLpBHspwLIr2itoDyxzXccE05MgKoTaAe13Ho+8EVfoI07dB46BQaOZzGA8jI2jS1Y18g6/4hWEhaAGXFIdBQSAMNfykrbJf2p8ZAdI6bRMqsMBoPMWGHRvz0kU1ElgBkx8m30aPcawTVF6B/0A8597yCWgE9XjuHUv3Monlag3Cdrpr5u7sJ0HHsHsle6O3LaxbaaJyaSBiaoqsJ7Rw/tcHql38lNJwauDMZBoAxjq3cjXPWu6dkN5haujEgUpv3dnrIR9gJjCnLIjX9BoRPO3UkK2DKLNpY x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230031)(396003)(366004)(39860400002)(346002)(376002)(136003)(451199024)(1800799009)(186009)(122000001)(7696005)(6506007)(71200400001)(64756008)(86362001)(55016003)(38070700005)(38100700002)(33656002)(83380400001)(2906002)(9686003)(478600001)(66476007)(5660300002)(52536014)(8676002)(76116006)(6916009)(41300700001)(4326008)(786003)(316002)(8936002)(66446008)(66946007)(66556008);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?jzNdS+v9TjvfUUHYYJqzuzZ7p+zeDxOXQVyyTpOmI+FLqFcxXYwv3JjNbQr9?= =?us-ascii?Q?Zv1/PDpOPOzUM7c/V4sMsi0TYv2AUQhpssF08welP1oSX89iU+wnUcoFNHQb?= =?us-ascii?Q?exiOp9F8DJ8VO3d7GuQtpfEMArsDGuqZwnHlhH/WAKvChBxThN7wLFzs/7po?= =?us-ascii?Q?V4XUKTK2JlzzfkPqf7x/T9ViTmBFFDHHI0HAA5S2NgvPrysT++u6I/ED6wYe?= =?us-ascii?Q?jn3o8Hi+s+vKXKwcJfRvkcLx0DzQSYfOWU1LpfojNL+DDMuCaF5pY5cLi4dF?= =?us-ascii?Q?j3J7bPvpOJp7i9KwiYOIXKTKKfjI8bGeG3/hjW6Y2leFhBd0Wlxp/ovn1GRx?= =?us-ascii?Q?emfp24y5VKTvGKdw/H8zdz2SaeZHyrje4rYZFB108TTba6On4dw1wtHZADuH?= =?us-ascii?Q?NayC/H2iVfmFf/uEZJCSzXwSc2BAOu5wGQuJZePbFPrs1888WZZ4wDlvQSjI?= =?us-ascii?Q?QaxABShLZvb1HuUP0G8FMphKvGt4sb5nFnxPRP2GdTPHxxgtLGqB57M00DLr?= =?us-ascii?Q?Q8zF8pK1hZsqBO48qzi4F3d3ZK4YnCUtSU/dfJSbMlyixyAacrmcR5FgRcyQ?= =?us-ascii?Q?BzCQrnjKx4h4R9F0K0pQUn8vlt7RMfb3Itrw3/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pRjykW4im/hO4T+rlqr5azXUAKN5sw5KFrsmnrBIFFX/z/X?= =?us-ascii?Q?WHslX5lnI2w/kszOedjGlpi9bz4FEkwTDHeGGj9PACldYWKzRMAz7rkH3Lhc?= =?us-ascii?Q?/UvCifIEkxie+w5ObS/i7MDwRAnzIW7pgzxAKD27XN5R?= MIME-Version: 1.0 X-OriginatorOrg: unibe.ch X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-Network-Message-Id: 28b3ccba-f564-467f-6181-08dbb3d7d220 X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Sep 2023 21:32:52.7328 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: d400387a-212f-43ea-ac7f-77aa12d7977e X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: rYWiZsw3fnP4Kk4jNfZ6subcvyuF2+qm+670yvqPCkhWRaLcMK5BoNf3CV7CazVYxwQByVTGX4CO05n1T58A5Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: ZR0P278MB1027 Message-ID-Hash: CWYL44PONIR6OPUYKDQJFGSY7PCXLHY6 X-Message-ID-Hash: CWYL44PONIR6OPUYKDQJFGSY7PCXLHY6 X-MailFrom: denis.maier@unibe.ch X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: ntg-context@ntg.nl X-Mailman-Version: 3.3.8 Precedence: list Reply-To: mailing list for ConTeXt users Subject: [NTG-context] Re: Using structureuservariables before the heading List-Id: mailing list for ConTeXt users Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: multipart/mixed; boundary="===============4165341745702374570==" --===============4165341745702374570== Content-Language: de-DE Content-Type: multipart/alternative; boundary="_000_ZRAP278MB0495BE64BEBEAD0F65C2FDBF83F1AZRAP278MB0495CHEP_" --_000_ZRAP278MB0495BE64BEBEAD0F65C2FDBF83F1AZRAP278MB0495CHEP_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable 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.maier@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.maier@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.maier@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 key does not seem to work. There are ways but not in a general way because you try to access the value= s before they are known to ConTeXt. To provide a proper solution you have to tell what you're trying to achieve. I'm just trying to output the author's name above a chapter heading. Do you= need more information? You can create a custom header for the chapter page and show the value of t= he author key which works without problems because the header is added after to the finis= hed page after the value is available. Another option when the name should appear in the same space as the chapter= title is a custom layout for the title. Yes, I've tried that in the original MWE: ... Here, I'm getting just before <3 Third>. So I guess this goe= s in the right direction, but \define doesn't allow for blanks etc. \startt= exdefinition and \def on the other hand gave me erros. 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 \structureuservariable{author} \blank #1\space#2 \egroup \stoptexdefinition Thank you so much, Wolfgang! Why do you need protected here? I've realized that \protected\def also help= s a bit, but, of course, paragraph breaks are ignored there as well... If just found the following in the lowlevel-macros manual: So, \long is gone, but why is that? Is there a new mechanism that serves th= e same purpose? Other than using a vbox, I mean... Best, Denis --_000_ZRAP278MB0495BE64BEBEAD0F65C2FDBF83F1AZRAP278MB0495CHEP_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Von: W= olfgang Schuster <wolfgang.schuster.lists@gmail.com>
Gesendet: Dienstag, 12. September 2023 23:16
An: Maier, Denis Christian (UB) <denis.maier@unibe.ch>
Cc: ntg-context@ntg.nl
Betreff: Re: [NTG-context] Using structureuservariables before the h= eading

 

denis.maier@= unibe.ch schrieb am 12.09.2023 um 21:38:

Von: W= olfgang Schuster <wolfgang.schuster.= lists@gmail.com>
Gesendet: Dienstag, 12. September 2023 21:30
An: Maier, Denis Christian (UB) <denis.maier@unibe.ch>
Cc: ntg-context@ntg.nl
Betreff: Re: [NTG-context] Using structureuservariables before the h= eading

 

denis.maier@= unibe.ch schrieb am 12.09.2023 um 21:24:


 

Von: W= olfgang Schuster <wolfgang.schuster.= lists@gmail.com>
Gesendet: Dienstag, 12.
September 2023 20:= 41
An: mailing list for ConTeXt users <ntg-context@ntg.nl>; Maier, Denis Christian (UB) <denis.maier@unibe.ch> Betreff: Re: [NTG-context] Using structureuservariables before the h= eading

 

denis.maier@= unibe.ch schrieb am 12.09.2023 um 17:47:



Hi,

 

is it possible to access a stru= ctureuservariable 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 ConTeXt. To provide a proper solution you have
to tell what you're trying to achieve.

 

I’m just trying to output t= he author’s name above a chapter heading. Do you need more informatio= n?


You can create a custom header for the chapter page and show the value of t= he author key
which works without problems because the header is added after to the finis= hed page
after the value is available.

Another option when the name should appear in the same space as the chapter= title
is a custom layout for the title.

Yes, I’ve tried that in the original MWE:<= /span>

 

 

Here, I’m getting «Third author&raqu= o; just before «3 Third». So I guess this goes in the right dir= ection, but \define doesn’t allow for blanks etc. \starttexdefinition and \def on the other hand gave me erros.


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
    \structureuservariable{author}
    \blank
    #1\space#2
  \egroup
\stoptexdefinition

 

Thank you so much, Wolfgang!

 

Why do you need protected here? I’ve reali= zed that \protected\def also helps a bit, but, of course, paragraph breaks = are ignored there as well…

If just found the following in the lowlevel-macr= os manual:

«Traditional TEX has three = prefixes that can be used with macros: \global, \outer and \long. The last two are no-op's in LuaMetaTEX and if you want to know w= hat they do (did) you can look it up in the TEXbook.»

So, \long is gone, but why is that? Is there a n= ew mechanism that serves the same purpose? Other than using a vbox, I mean&= #8230;

 

Best,

Denis

--_000_ZRAP278MB0495BE64BEBEAD0F65C2FDBF83F1AZRAP278MB0495CHEP_-- --===============4165341745702374570== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___________________________________________________________________________________ --===============4165341745702374570==--