Personalizar el tamaño del capítulo numérico en ConTeXt

Personalizar el tamaño del capítulo numérico en ConTeXt

Quiero controlar el tamaño del número del capítulo en ConTeXt con algún comando como LaTeX \anyfontsize. Estaba revisando esta respuestahttps://tex.stackexchange.com/a/668592/14423Pude modificar el espacio entre el número de capítulo y la línea vertical ( \blackrule) pero no pude controlar el tamaño del número de capítulo. Otra pregunta relacionada es: ¿el tamaño de \blackrulese ve afectado por el tamaño del número de 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

Respuesta1

No me queda del todo claro cómo quieres que se vea, pero puedes probar esto (ver algunos comentarios en el 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

La versión del código que se muestra arriba proporciona (creo que el número y la regla parecen demasiado limitados):

número de capítulo

información relacionada