From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/53401 Path: news.gmane.org!not-for-mail From: Martin Scholz Newsgroups: gmane.comp.tex.context Subject: Strange Behaviour for toc Date: Mon, 12 Oct 2009 19:05:33 +0000 (UTC) Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1255374411 26762 80.91.229.12 (12 Oct 2009 19:06:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 12 Oct 2009 19:06:51 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Mon Oct 12 21:06:41 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.50) id 1MxQE0-00080a-Ta for gctc-ntg-context-518@m.gmane.org; Mon, 12 Oct 2009 21:06:29 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C836DC9AFD; Mon, 12 Oct 2009 21:06:26 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id tKDWaXh-pF-y; Mon, 12 Oct 2009 21:06:22 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D73B0C9AC7; Mon, 12 Oct 2009 21:06:21 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id AAD71C9AE3 for ; Mon, 12 Oct 2009 21:06:17 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id DWkjjYDq-Jxc for ; Mon, 12 Oct 2009 21:06:13 +0200 (CEST) Original-Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by balder.ntg.nl (Postfix) with ESMTP id 5DF40C9ADD for ; Mon, 12 Oct 2009 21:06:12 +0200 (CEST) Original-Received: from list by lo.gmane.org with local (Exim 4.50) id 1MxQDZ-0007kA-Ve for ntg-context@ntg.nl; Mon, 12 Oct 2009 21:06:01 +0200 Original-Received: from 92.250.247.163 ([92.250.247.163]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 12 Oct 2009 21:06:01 +0200 Original-Received: from martin by 92.250.247.163 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 12 Oct 2009 21:06:01 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 196 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 92.250.247.163 User-Agent: Pan/0.133 (House of Butterflies) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:53401 Archived-At: Hallo list, I just started to work with conTeXt, now that I seted up an project environment as follows with the following content: file project_oc.tex: -------------------- \startproject project_oc \environment env_oc \startfrontmatter \setuppagenumbering[conversion=romannumerals] \completecontent \stopfrontmatter \startbodymatter \setuppagenumbering[conversion=] \product prd_oc_0 \stopbodymatter \startappendices \stopappendices \stopproject file env_oc.tex: ---------------- \startenvironment env_oc \enableregime [utf] \setuplanguage [de] [leftquote=\upperleftsinglesixquote,rightquote= \upperrightsinglesixquote,leftquotation=\leftguillemot,rightquotation= \rightguillemot] \mainlanguage [de] \setupbodyfontenvironment[default][em=italic] \usemodule[greek] \usemodule[units] \setupcolors[state=start] \setupcolor[rgb] \definecolor[lightred][r=1,g=0.85,b=0.85] \definefont[BigFontOne][Regular sa 3] \definefont[BigFontTwo][RegularBold sa 2] \definecolor[BigColorOne][r=.86,g=.850,b=.54] \definecolor[BigColorTwo][r=.43,g=.425,b=.27] \setuplayout[location=middle, topspace=1.3cm, width=middle, cutspace=4.5cm, rightmargindistance=0.4cm, leftmargindistance=0.2cm, backspace=1.2cm, height=fit, rightmargin=2.5cm, leftmargin=1cm, bottomspace=2cm, footer=0.8cm, setup=strict] % \showgrid \showframe % \showsetups % \showlayout \setuppagenumbering[alternative=doublesided,location=footer] \setupheader[state=none] \setuptolerance[tolerant, stretch] \setupwhitespace[medium] \setupfootnotes[way=bypage, conversion=set 2] \definepagebreak[chapter][yes,footer,right] \setuphead[chapter][textcommand=\MyChapterText,color=BigColorTwo,style= \BigFontTwo] \def\MyChapterText#1{\rlap{\BigFontOne\BigColorOne#1}\kern15pt#1} \setuphead[section][numbercolor=red] \setuphead[subsection][number=no,style=\ss] \setuphead[subsubsection][style=slanted,number=no,before={\blank [big]},before={\testpage[1]},after=\nowhitespace] \setupfloats[spaceafter=3*medium] \setuptables[bodyfont=small] \setupcaption[table][style={\ssx\setupinterlinespace [line=2.5ex]},align=left] \setupfloat[table][criterium=0.5\textwidth,default=inner] \setupcaption[figure][style={\ssx\setupinterlinespace [line=2.5ex]},align=left] \definefloat[Bigfigure][Bigfigures][figure] \setupfloat[Bigfigure][location=inner] \definefloat[Bigtable][Bigtables][table] \setupfloat[Bigtable][location=inner] \definefloat[vignette][figure] \setupfloat[vignette][leftmargindistance=- \outermargintotal,rightmargindistance=-\outermargintotal,default= {outer,none,low}] % \setup[vignette][number=no] \definestartstop[Story][before={\setupbackground[style= \tfx,background=color,backgroundcolor=white,frame=on,framecorner=rectangular,framecolor=black,rulethickness=0.5pt,topoffset=0.25cm,bottomoffset=0.25cm,leftoffset=0.25cm,rightoffset=0.25cm,before= {\blank[big]}]\startbackground\switchtobodyfont[10pt]},after= \stopbackground] \definestartstop[MySummary][before={\setupbackground [background=color,backgroundcolor=lightgray,backgroundcorner=rectangular,frame=off,topoffset=0.3cm,bottomoffset=0.3cm,leftoffset=0.5cm,rightoffset=0.5cm,before= {\blank[big]}]\startbackground\Zus},after=\stopbackground] \defineframedtext[Oddity][width=0.75 \textwidth,background=color,backgroundcolor=lightred,frame=off,framecorner=round,frameradius=0.5cm,backgroundcorner=round,style= \tfx] \setupinmargin[align=right,style=\ss\tfx\setupinterlinespace] \setupitemize[align=right] \startsectionblockenvironment[appendix] \setuptabulate[align=right,split=yes] \definepagebreak[chapter][yes,footer,right] \setuphead[chapter][bodypartconversion=Character,page=chapter] \setuphead[subsection][command=\SectionCommand,number=yes,numbercolor,red] \setuphead[subsubsection][number=yes] \definefloat[BigFramedFigure][BigFramedFigures][figure] \setupfloat[BigFramedFigure][location=inner,frame=on,offset=2pt] \definefloat[FramedFigure][FramedFigures][figure] \setupfloat[FramedFigure][frame=on,offset=2pt] \stopsectionblockenvironment \setupregister[index][imp][pagestyle=bold] \setupcombinedlist[content][level=2,alternative=c] \setuplist[chapter][style=bold] \stopenvironment file prd_oc_0.tex: ------------------ \startproduct prd_oc_0 \project project_oc \component c_oc0_1 \stopproduct file c_oc0_1.tex: ----------------- \startcomponent c_oc0_1 \product prd_oc_0 \project project_oc \starttext \title{Titel} \chapter[chap:ques]{Question} \chapter[chap:answ]{Answer} \chapter[chap:rema]{Remarque} \stoptext \stopcomponent Now Im getting doubled entries in the \completecontent part, it lists everything as 1 Question 5 1 Question 5 2 Answer 7 2 Answer 7 so as this is not the wished behaviour, can someone help me to solve thsi problem. please be patient with me to get it done right, as I'm a newbe... Greetings Martin ___________________________________________________________________________________ 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 ___________________________________________________________________________________