* [NTG-context] Problem with textstyle
@ 2023-11-18 3:21 Rik Kabel
0 siblings, 0 replies; only message in thread
From: Rik Kabel @ 2023-11-18 3:21 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1080 bytes --]
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
[-- Attachment #1.2: Type: text/html, Size: 1625 bytes --]
[-- Attachment #2: Type: text/plain, Size: 511 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-11-18 3:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-18 3:21 [NTG-context] Problem with textstyle Rik Kabel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).