![Personalize o tamanho do capítulo numérico no ConTeXt](https://rvso.com/image/461904/Personalize%20o%20tamanho%20do%20cap%C3%ADtulo%20num%C3%A9rico%20no%20ConTeXt.png)
Quero controlar o tamanho do número do capítulo no ConTeXt com algum comando como LaTeX \anyfontsize
. Eu estava verificando esta respostahttps://tex.stackexchange.com/a/668592/14423Consegui modificar a lacuna entre o número do capítulo e a linha vertical ( \blackrule
), mas não consegui controlar o tamanho do número do capítulo. Outra questão relacionada é: o tamanho \blackrule
é afetado pelo tamanho do número do capítulo?
\definehspace[oneem][-.125 em]
\starttexdefinition MyNumberChapterCommand #1
{\tfe #1}
%\enspace
\hspace[oneem]
\blackrule[
height=\lineheight,
depth=\strutdepth,
width=2pt,
color=darkred,
]
\stoptexdefinition
\definebodyfont[14pt][rm][tfe=Regular at 36pt]
\setuphead[chapter][
numbercommand=\MyNumberChapterCommand,
page=no,%Just to have them on the same page here
%numberstyle=\tfe
]
\starttext
\startchapter[title={With a rule}]
Bla bla bla
\stopchapter
\stoptext
Responder1
Não está perfeitamente claro para mim como você deseja que fique, mas você pode tentar isso (veja alguns comentários no código):
\definehspace[oneem][-.125 em]
\starttexdefinition MyNumberChapterCommand #1
\tfe #1
% {\tfe #1}% Test this instead of the one above
% #1% Test this if the numberstyle is enabled
\hspace[oneem]
\blackrule[
height=\strutheight,% I changed \lineheight to \strutheight
depth=\strutdepth,
width=2pt,
color=darkred,
]
\stoptexdefinition
% \definebodyfont[12pt][rm][tfe=Serif at 36pt]
\definefontsize[e]
\definebodyfontenvironment[default][e=3]% 3*12=36
\setuphead[chapter][
numbercommand=\MyNumberChapterCommand,
page=no,%Just to have them on the same page here
% numberstyle={\definedfont[Serif*default at 36pt]},
]
\starttext
\startchapter[title={With a rule}]
Bla bla bla
\stopchapter
\stoptext
A versão do código mostrada acima fornece (acho que o número e a regra parecem muito limitados):