From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: from cgl.ntg.nl (Cgl.ntg.nl [5.39.185.202]) by inbox.vuxu.org (Postfix) with ESMTP id 3D1CC28E50 for ; Mon, 3 Jun 2024 00:08:11 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id C6BE5484DB5 for ; Mon, 3 Jun 2024 00:06:42 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Authentication-Results: cgl.ntg.nl (amavisd-new); dkim=fail (2048-bit key) reason="fail (message has been altered)" header.d=gmail.com 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 q9ypNdZeDt_S for ; Mon, 3 Jun 2024 00:06:42 +0200 (CEST) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id CC06D484BE7 for ; Mon, 3 Jun 2024 00:05:56 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 1234D484BD7 for ; Mon, 3 Jun 2024 00:05:26 +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 vi6q9F0eqRyo for ; Mon, 3 Jun 2024 00:05:25 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.218.54; helo=mail-ej1-f54.google.com; envelope-from=wolfgang.schuster.lists@gmail.com; receiver= Received: from mail-ej1-f54.google.com (mail-ej1-f54.google.com [209.85.218.54]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by cgl.ntg.nl (Postfix) with ESMTPS id 9DCB7484BD6 for ; Mon, 3 Jun 2024 00:05:25 +0200 (CEST) Received: by mail-ej1-f54.google.com with SMTP id a640c23a62f3a-a6858bdc9ddso262851466b.2 for ; Sun, 02 Jun 2024 15:05:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717365925; x=1717970725; darn=ntg.nl; h=content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:references:cc:to:subject:from:to:cc :subject:date:message-id:reply-to; bh=MqWqUacbWeHMZ05R7Eqzpxj6ELHWQiwAwAfglFQWyGg=; b=KFQuvmMVgRQQDENwqRK9FaCocrpjXQyxAkMpaleft3BHZsbL7o7VeNaTlR6M+JiIzL Kk/v0GPCHYhbUJFc1cWcgpY8hn54iapxYcxnYyGnQ/s31bEufeEnq8JUds9DZDOnokQ/ 4OUhMpqluLXWv/+5UOoS5ZlLq4XTUEK+74nlUyL7X+4eLzE+iVXei0z+AiUwE4Ynz/wt ZkAyJqmeUzggPxP/hIwNpyum58FmsasVSS6qcuz8QXQq8SR39q1XC4iOPeE+D79EtZep 7bHCXI7OpWt5uGby1RRZ7mhqU54OPZQq8uQTypCPwK2DFfbUuNt7I5T2TzFjvRr7K68F yUZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717365925; x=1717970725; h=content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:references:cc:to:subject :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=MqWqUacbWeHMZ05R7Eqzpxj6ELHWQiwAwAfglFQWyGg=; b=SKE8AL75z08Lgd3BXfmnf70fhChzKdxgQciXsTiF0u7HUqXWB/7lCF+rgIhFz1qtFi RuUHY/VsdZrYWFYNIuBy2BfxLbLedVjSsOD6zXb8S8mqUcBAE9VR+Rv6oFuAMe2bW09U lEg2p6Q7TFl4rdLaAvG5G+W8eA3cmmdIs2PxxrAbSjkaGJnpoLCjWVpSYy8v4od8E912 QKxzGsh2hT+w/SeCF10LgcnLtzUR37VDjdrrALClcXGGrQxVooAwLs4TYPJA43z2woFh /kooZXwvmaEELwBonAYe7LeLKx/GWiGvD0CpLVcFHGUDCkjBJWVPZH8o/pSOTHtiu8br KXJw== X-Gm-Message-State: AOJu0YwsJuhe1dKX5M5SByBNPM3cJVVK6k8SHsOcEFQ7I74+L1tM1bJt Gath7fPEGouyTSUDBSoQdpl2bdBnl9sbXQa4JhBLgNT3QM88U2z9l7Lf+A== X-Google-Smtp-Source: AGHT+IGyZhGCbvlsvm7MLviyp1FthlV26LiTCKA1x+aoHGKD+rdrvBeA2yE18HoHbWT4cL1Xi2LiWA== X-Received: by 2002:a17:906:258d:b0:a5c:dcd4:351b with SMTP id a640c23a62f3a-a6821982787mr504974166b.58.1717365924503; Sun, 02 Jun 2024 15:05:24 -0700 (PDT) Received: from ?IPv6:2a02:810d:a8bf:dc10:71df:9f2b:d023:e92e? ([2a02:810d:a8bf:dc10:71df:9f2b:d023:e92e]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a6900d7f6a3sm102970466b.90.2024.06.02.15.05.23 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 02 Jun 2024 15:05:24 -0700 (PDT) To: Gerion Entrup References: <4119708.MHq7AAxBmi@falbala> <3024583.k3LOHGUjKi@falbala> <2603727.72vocr9iq0@falbala> From: Wolfgang Schuster Message-ID: Date: Mon, 3 Jun 2024 00:05:22 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 PostboxApp/7.0.60 MIME-Version: 1.0 In-Reply-To: <2603727.72vocr9iq0@falbala> Content-Language: en-US Message-ID-Hash: XXU3R3GSAHBW4PRNZMLMCG6ZGKGDVEK7 X-Message-ID-Hash: XXU3R3GSAHBW4PRNZMLMCG6ZGKGDVEK7 X-MailFrom: wolfgang.schuster.lists@gmail.com 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: mailing list for ConTeXt users X-Mailman-Version: 3.3.8 Precedence: list Reply-To: mailing list for ConTeXt users Subject: [NTG-context] Re: setuphead in connection with the command argument List-Id: mailing list for ConTeXt users Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii"; format="flowed" Content-Transfer-Encoding: 7bit Gerion Entrup schrieb am 01.06.2024 um 16:34: > Am Samstag, 1. Juni 2024, 09:53:46 MESZ schrieb Wolfgang Schuster: >> Gerion Entrup schrieb am 31.05.2024 um 00:37: >>> What, if I define multiple of them? Is the system not made for this? >> >> Multiple of what? > > When I define `alternative=` _and_ `command=` in the same `\setuphead`. > Or `alternative=` and `style=`, or `alternative=` and `command=`. > > I guess style is applied just to the arguments/macros of the command/the alternative? > And combining alternative and command never make sense. The following descriptions applies to most setup commands when exclude special cases like \setupbodyfont or \setuplayout. When you make multiple changes to the values of a command with \setuphead [section] [style=bold] and \setuphead [section] [color=blue] you achieve the same result as setting both values at the same time like \setuphead [section] [style=bold,color=blue] What you're doing here is just passing some value to a parameter, nothing else happens at this time. When you process a document Context has already passed the value "normal" to the "alternative" parameter in the \setuphead command. When you now pass a custom macro the "command" parameter in \setuphead all you have done is to set a value, nothing else happened at this point. The evaluation of the parameter happens when Context places the content of a heading with \startchapter etc. in your document and only at this point it has to make a decision what should happen when both "command" and "alternative" are set. The order in which the parameters are used is the following: a) check if the "command" parameter has a value and if this is true is it and ignore the "alternative" value b) if no value is present for the "command" parameter use the value of "alternative". The value of the "style" parameter is unrelated of the command/alternative values because it isn't needed to choose a layout for the heading, all the parameter does is to change the font/style which is independent of the layout. Wolfgang ___________________________________________________________________________________ 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 ___________________________________________________________________________________