From: Vit Zyka <vit.zyka@seznam.cz>
Subject: Re: Chapter numbers in the right margin
Date: Tue, 22 Mar 2005 17:25:51 +0100 [thread overview]
Message-ID: <4240470F.9080109@seznam.cz> (raw)
In-Reply-To: <ba4316d305032207506394ba7f@mail.gmail.com>
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 --
--
next prev parent reply other threads:[~2005-03-22 16:25 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-22 5:14 Randall Skelton
2005-03-22 6:21 ` luigi.scarso
2005-03-22 15:50 ` Randall Skelton
2005-03-22 16:25 ` Vit Zyka [this message]
2005-03-22 16:58 ` luigi.scarso
2005-03-23 18:56 ` Hans Hagen
2005-03-23 19:15 ` luigi.scarso
2005-03-24 2:47 ` Randall Skelton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4240470F.9080109@seznam.cz \
--to=vit.zyka@seznam.cz \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).