ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Han The Thanh <thanh@informatics.muni.cz>
Subject: [Q] formatting chapter title to one line
Date: Tue, 20 Feb 2001 22:22:55 +0100 (MET)	[thread overview]
Message-ID: <200102202122.WAA21180@anxur.fi.muni.cz> (raw)

Hi all,

I wish to format a chapter title (in appendix part) like:

                  A. <my chapter title>

I did try the following:

\setuphead[chapter][
    appendixlabel=,
    stype=\tfc,
    textstyle=bf,
    alternative=middle]

but the title is broken into two lines like:

                         A
                  <my chapter title>

So I tried next:

\setuphead[chapter][
    appendixlabel=,
    stype=\tfc,
    textstyle=bf,
    alternative=middle,
    command=\catalogchapter,
    alternative=middle]

\def\catalogchapter#1#2{%
    \hbox to \hsize{\hss#1.~#2\hss}
}

Now I get the title formatted into one line, but there are still two
problems:

1) the dot character doesn't get the correct size (it's smaller than the
   title text)

2) textstyle seems to be applied to the title text only, however the title
   number (which is A) remains the default (\rm).

Can someone please tell me what I am missing? 

Thanks,
Thanh


             reply	other threads:[~2001-02-20 21:22 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-02-20 21:22 Han The Thanh [this message]
2001-02-23 11:45 ` Hans Hagen
     [not found] <3A93630B.9020009@pobox.com>
2001-02-21 13:04 ` Han The Thanh
2001-02-22  8:58   ` Hans Hagen

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=200102202122.WAA21180@anxur.fi.muni.cz \
    --to=thanh@informatics.muni.cz \
    /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).