Randall Skelton wrote:
Use textcommand only for text, numbercommand only for number, command for both; you can see some examples in section Variations in titles .
Thanks for the reply.
The problem with separating the text and number is that the space separating the text and number still appears in the chapter text. On a similar note, why doesn't 'show makeup' display the right margin number?
May be I do not understand you but you introduce spaces yourself in your \My... Write % at the end of lines as shown:
\def\MyChapterNumberText#1{ \def\MyChapterNumberText#1{% \inright{\begingroup \midaligned{#1} \midaligned{#1}% \endgroup} \endgroup}% }
\def\MyChapterText#1{ \def\MyChapterText#1{% \begingroup \leftaligned{#1} \leftaligned{#1}% \endgroup }
Depends in which mode (horizontal, vertical) your code occures. (If \midaligned expands to \ignorespaces at the end then % is not needed there.) vit
\setuphead [Topic, chapter] [numbercommand=\MyChapterNumberText, textcommand=\MyChapterText, numberstyle={\switchtobodyfont[48pt]}, textstyle={\switchtobodyfont[12pt]}, color=black, number=yes, page=right, continue=no, header=empty, before=\vbox to 3cm\bgroup, after=\vss\egroup]
\starttext
%\showmakeup
\chapter{This is a Chapter Title} \input tufte
\section{This is a section title} \input tufte \par \input knuth \par
\subsection{This is a sub-section title} \input tufte \par \input knuth \par
\stoptext _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
-- Vít Zýka --- http://typokvitek.com Automatic document typesetting Automaticka sazba dokumentu -- --