ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Marco Patzer <homerow@lavabit.com>
To: ntg-context@ntg.nl
Subject: Re: ToC - right-alignment of roman numerals
Date: Mon, 3 Jun 2013 20:10:07 +0200	[thread overview]
Message-ID: <20130603181007.GB18664@homerow> (raw)
In-Reply-To: <00b101ce607d$bf282220$3d786660$@tosovsky@email.cz>


[-- Attachment #1.1: Type: text/plain, Size: 757 bytes --]

On 2013–06–03 honyk wrote:

> in fresh MkIV I use the following commands for building ToC, but I have no
> idea how to align the label (roman numeral) to the right.

\setuphead[chapter][conversion=Romannumerals]
\setupheadnumber[chapter][48]

\setupcombinedlist
  [content]
  [alternative=c]

\setupcombinedlist
  [chapter]
  [distance=1em,
   width=1cm,
   numbercommand={\simplealignedbox{\listparameter{width}}{flushright}}]

\starttext
\completecontent
\chapter{Foo}
\chapter{Bar}
\stoptext

> In addition, the specified width and distance seem to be somehow
> ignored so that label interferes with the title.

The width setting needs to be applied to the chapter list, not the
content list, see example above.

Marco

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 490 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

       reply	other threads:[~2013-06-03 18:10 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <00b101ce607d$bf282220$3d786660$@tosovsky@email.cz>
2013-06-03 18:10 ` Marco Patzer [this message]
2013-06-03 18:21   ` honyk
2013-11-17 22:25   ` Jan Tosovsky
     [not found]   ` <003e01cee3e3$eba16f70$c2e44e50$@tosovsky@email.cz>
2013-11-18 18:50     ` Jan Tosovsky
2013-11-18 19:43     ` Jan Tosovsky
     [not found]     ` <00ed01cee496$7e7be840$7b73b8c0$@tosovsky@email.cz>
2013-11-24 21:49       ` Jan Tosovsky
     [not found]       ` <00dd01cee95f$07764740$1662d5c0$@tosovsky@email.cz>
2013-11-25 22:02         ` Hans Hagen
2013-11-25 22:33           ` Jan Tosovsky
2013-06-03 17:14 honyk

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=20130603181007.GB18664@homerow \
    --to=homerow@lavabit.com \
    --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).