ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Mojca Miklavec <mojca.miklavec.lists@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: \setuplist ignores width=<dim> in combination with headnumber=no
Date: Fri, 23 May 2014 13:08:04 +0200	[thread overview]
Message-ID: <CALBOmsYHjVGF_mRFVahb=FvzFhsg0yW8ps5uoQ4ZY5RNWRY7Tw@mail.gmail.com> (raw)

Hi,

I would like to remove header numbers for subsections, but keep
subsections properly aligned in the table of contents. However, the
width= parameter seems to be completely ignored in that case.

Here's a nearly-minimal example:

\setuplist[section][width=10mm,style=bold]
\setuplist[subsection][width=15mm,headnumber=no]
\setuplist[subsubsection][width=20mm,style=slanted,pagestyle=normal]

\starttext

\completecontent
\page[yes]

\section{First section}
\subsection{First subsection}
\subsubsection{First subsubsection}
\subsubsubsection{First subsubsubsection}
\section{Second section}
\subsection{Second subsection}
\subsubsection{Second subsubsection}
\subsubsubsection{Second subsubsubsection}
\stoptext

The example has been adapted from
http://wiki.contextgarden.net/Table_of_Contents. The image on the wiki
seems ok, but I get a different result if I try to run the same
example with the latest version of ConTeXt (mkiv).

Somewhat related: say that I wanted to setup
    \setuplist[<name>][width=10mm]
for all the sections and sub(subsub)sections. The documentation seems
to suggest that \placecontent[aligntitle=yes/no,width=10mm] should do
that (it's not clear to me whether that's yes or no that should do
it), but it doesn't seem to have any effect at all.

Mojca
___________________________________________________________________________________
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:[~2014-05-23 11:08 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-23 11:08 Mojca Miklavec [this message]
2014-05-23 12:39 ` Wolfgang Schuster
2014-05-23 16:20   ` Mojca Miklavec

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='CALBOmsYHjVGF_mRFVahb=FvzFhsg0yW8ps5uoQ4ZY5RNWRY7Tw@mail.gmail.com' \
    --to=mojca.miklavec.lists@gmail.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).