ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* sectionstopper
@ 2010-01-07 21:07 Wolfgang Schuster
  2010-01-08 22:56 ` sectionstopper Hans Hagen
  0 siblings, 1 reply; 2+ messages in thread
From: Wolfgang Schuster @ 2010-01-07 21:07 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Steffen Wolfrum

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: sectionstopper
  2010-01-07 21:07 sectionstopper Wolfgang Schuster
@ 2010-01-08 22:56 ` Hans Hagen
  0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2010-01-08 22:56 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Steffen Wolfrum

On 7-1-2010 22:07, Wolfgang Schuster wrote:
> 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.

hm, maybe we need a sectionstarter then? needs a bit of thinking ... 
chinese has left/right symbols and we also need to think of arabic ans so

let's discuss it next week (not that much time this weekend)

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-01-08 22:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-07 21:07 sectionstopper Wolfgang Schuster
2010-01-08 22:56 ` sectionstopper Hans Hagen

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).