From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/58453 Path: news.gmane.org!not-for-mail From: Marius Newsgroups: gmane.comp.tex.context Subject: Re: table of contents Date: Thu, 29 Apr 2010 16:17:59 +0300 Message-ID: References: <4BD95D3B.1000600@googlemail.com> 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: dough.gmane.org 1272547113 30775 80.91.229.12 (29 Apr 2010 13:18:33 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 29 Apr 2010 13:18:33 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Apr 29 15:18:28 2010 connect(): No such file or directory 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.69) (envelope-from ) id 1O7TdL-00082k-5Q for gctc-ntg-context-518@m.gmane.org; Thu, 29 Apr 2010 15:18:27 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 04165C9B99; Thu, 29 Apr 2010 15:18:20 +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 PCzHPaqr4+ud; Thu, 29 Apr 2010 15:18:14 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E62F4C9B59; Thu, 29 Apr 2010 15:18:12 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 35058C9AF9 for ; Thu, 29 Apr 2010 15:18:11 +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 FxxJ+vg3QpCv for ; Thu, 29 Apr 2010 15:17:59 +0200 (CEST) Original-Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.156]) by balder.ntg.nl (Postfix) with ESMTP id ADE5DC9B59 for ; Thu, 29 Apr 2010 15:17:59 +0200 (CEST) Original-Received: by fg-out-1718.google.com with SMTP id e21so7172683fga.2 for ; Thu, 29 Apr 2010 06:17:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=4IHoZRJwAxmcWHG+TXbde033U3saY63Ja6Uv00RZFQc=; b=BRaCcMhmgHErbXH+YLqE3ULyFlZ+xMbK9Nq68XIbrwHPaP8opOvV/77ZIwVexWkhrZ OsZuh/j11Bm4kic9QikgJuVPwRkF5GF1qTpmBdFUGK7EZFZLvjzDTx1km1N+FRJpbxFt 5LClgI1wOlHr+GSqoMkRvHkd3biYP0NnrmmnU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=imYLt8oLSy3ewp6NVOqWJGderHm77XDEs/JIbkyCApPuBi3NdVgOWUo0bPSWLLatKM OsMW0FZD1Qgc7uvgDW99MvBUeSiRG9ylvayExXGtFRaMqAPDGAoS0KpZC+lNZHwSgTN3 B7YMQQTFfSePfdznXIBAdsAYgQR3sG9wBbPaE= Original-Received: by 10.102.242.22 with SMTP id p22mr5099221muh.44.1272547079077; Thu, 29 Apr 2010 06:17:59 -0700 (PDT) Original-Received: by 10.103.241.8 with HTTP; Thu, 29 Apr 2010 06:17:59 -0700 (PDT) In-Reply-To: <4BD95D3B.1000600@googlemail.com> 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:58453 Archived-At: Thank you, Wolfgang for the example. I can't believe this is so simple in ConTeXt. I added this example to wiki. http://wiki.contextgarden.net/Table_of_Contents On Thu, Apr 29, 2010 at 1:19 PM, Wolfgang Schuster wrote: > Am 29.04.10 12:12, schrieb Marius: >> >> Hello, >> >> There must be two tables of contents in my document, one in a native >> language and the other in english. In LaTeX I made new commands >> \enchapter, \ensection, etc., which I use just after the \chapter or >> \section command. >> >> How do I make such commands in ConTeXt, so that these commands just >> insert a line into the english table of contents, but do not insert >> chapter or section in the current page? >> > > \mainlanguage[de] > > \starttext > > \completecontent > > %\start\language[en] > \start\mainlanguage[en] > \completecontent > \stop > > \chapter{\translate[en=Chapter One,de=Kapitel Eins]} > > \chapter{\translate[en=Chapter Two,de=Kapitel Zwei]} > > \stoptext > > Wolfgang ___________________________________________________________________________________ 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 ___________________________________________________________________________________