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=-1.0 required=5.0 tests=HTML_MESSAGE, MAILING_LIST_MULTI,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 14013 invoked from network); 18 Nov 2023 03:41:12 -0000 Received: from cgl.ntg.nl (5.39.185.202) by inbox.vuxu.org with ESMTPUTF8; 18 Nov 2023 03:41:12 -0000 Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id D5FD6483AFA for ; Sat, 18 Nov 2023 04:38:54 +0100 (CET) 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 6IVxU1XCAtEP for ; Sat, 18 Nov 2023 04:38:54 +0100 (CET) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 4D479483ADF for ; Sat, 18 Nov 2023 04:37:45 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 2978F483A35 for ; Sat, 18 Nov 2023 04:36:58 +0100 (CET) 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 djYZ3HfFlDol for ; Sat, 18 Nov 2023 04:36:57 +0100 (CET) X-Greylist: delayed 901 seconds by postgrey-1.36 at cgl.ntg.nl; Sat, 18 Nov 2023 04:36:57 CET Received: from l2mail1.panix.com (l2mail1.panix.com [166.84.1.75]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 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 704BE483A33 for ; Sat, 18 Nov 2023 04:36:57 +0100 (CET) Received: from mailbackend.panix.com (mailbackend.panix.com [166.84.1.89]) by l2mail1.panix.com (Postfix) with ESMTPS id 4SXJwN3mKNzDYy for ; Fri, 17 Nov 2023 22:21:56 -0500 (EST) Received: from [192.168.5.71] (cpe-24-194-2-237.nycap.res.rr.com [24.194.2.237]) by mailbackend.panix.com (Postfix) with ESMTPSA id 4SXJwL6kzvz449P for ; Fri, 17 Nov 2023 22:21:54 -0500 (EST) Message-ID: <3416779e-1fef-40be-b312-d55623511e9a@rik.users.panix.com> Date: Fri, 17 Nov 2023 22:21:53 -0500 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Beta To: mailing list for ConTeXt users Content-Language: en-US From: Rik Kabel Message-ID-Hash: Z7QIX5ZGNA6TZAI7APU54WSRNCG2JDD6 X-Message-ID-Hash: Z7QIX5ZGNA6TZAI7APU54WSRNCG2JDD6 X-MailFrom: ConTeXt@rik.users.panix.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 X-Mailman-Version: 3.3.8 Precedence: list Reply-To: mailing list for ConTeXt users Subject: [NTG-context] Problem with textstyle 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="===============6919691866272739277==" This is a multi-part message in MIME format. --===============6919691866272739277== Content-Type: multipart/alternative; boundary="------------uV0AwzP2m3jYu6ngwzUdy99Z" Content-Language: en-US This is a multi-part message in MIME format. --------------uV0AwzP2m3jYu6ngwzUdy99Z Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Hello list, The following example does not compile, complaining “Missing number, treated as zero needed to see a number, look up 'weird error' in the index to The TeXbook”: \setuphead           [chapter]                      [                       textstyle=cap,                      ] \starttext \startchapter        [title={Oops!}] \input knuth-gpt \par \stopchapter \stoptext Replacing the textstyle /cap/ by any of /bold/, /slanted/, /smallcaps/, and /italic/ results in a clean compilation but the indicated style is not applied. Using a style description like /em/, /\em/, /bf/, /\bf/, /\sc,/ does produce the suggested result. The wiki and mail repository are full of examples with the former style names. Using /style=cap/ (which would change the number as well) also results in a failed compilation, while using /style=bolditalic/ works as it should. ConTeXt  ver: 2023.09.26 18:19 LMTX  fmt: 2023.10.9  int: english/english -- Rik --------------uV0AwzP2m3jYu6ngwzUdy99Z Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit

Hello list,

The following example does not compile, complaining “Missing number, treated as zero
needed to see a number, look up 'weird error' in the index to The TeXbook”:

\setuphead           [chapter]
                     [
                      textstyle=cap,
                     ]
\starttext
\startchapter        [title={Oops!}]
\input knuth-gpt \par
\stopchapter
\stoptext

Replacing the textstyle cap by any of bold, slanted, smallcaps, and italic results in a clean compilation but the indicated style is not applied. Using a style description like em, \em, bf, \bf, \sc, does produce the suggested result. The wiki and mail repository are full of examples with the former style names.

Using style=cap (which would change the number as well) also results in a failed compilation, while using style=bolditalic works as it should.

ConTeXt  ver: 2023.09.26 18:19 LMTX  fmt: 2023.10.9  int: english/english

--
Rik


--------------uV0AwzP2m3jYu6ngwzUdy99Z-- --===============6919691866272739277== 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://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 ___________________________________________________________________________________ --===============6919691866272739277==--