ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@googlemail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: Steffen Wolfrum <context@post.werksatz.com>
Subject: sectionstopper
Date: Thu, 7 Jan 2010 22:07:04 +0100	[thread overview]
Message-ID: <AB094093-94BC-4E1B-B4B8-FC5052916A7F@googlemail.com> (raw)

Hi Hans,

how I can i put symbols at both sides of a header, with sectionstopper
i can get only on at the right side of the number but not at the left
and tricks like numbercommand or setuplabeltext do not affect references
and the content entries.

In the following example i want the chapter number to be printed as

1) Chaptertitle -> sectionsegments=2:2

and the section number as

(1) Sectiontitle -> sectionsegments=3:3

but a reference in the test should show the complete number in the form '1)(1)'
and the same should appear in the table of contents.

Best regards,
Wolfgang


\setuphead[chapter][sectionsegments=2:2,sectionstopper=)]
\setuphead[section][sectionsegments=3:3,sectionstopper=),numbercommand=(]

% How can I print the section number as '1) (1)' in the toc?

%\setuplist[section][sectionsegments=2:3,numbercommand=(]

\setupreferencestructureprefix[default][prefixsegments=2:100]
% uncomment to get the correct result for references in the text, brr
%\definestructureseparatorset  [default][,(][]

\starttext

\completecontent

\chapter[sec:knuth]{Knuth}

\input knuth

\section[sec:ward]{Ward}

\input ward

\page

see \in{section}[sec:ward] at \at{page}[sec:ward]

\stoptext

___________________________________________________________________________________
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:[~2010-01-07 21:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-07 21:07 Wolfgang Schuster [this message]
2010-01-08 22:56 ` sectionstopper 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=AB094093-94BC-4E1B-B4B8-FC5052916A7F@googlemail.com \
    --to=schuster.wolfgang@googlemail.com \
    --cc=context@post.werksatz.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).