From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/77834 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: \startcomponent, \startproduct... + automatic file name Date: Thu, 9 Aug 2012 15:15:11 +0200 Message-ID: References: <5023826C.6090206@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.0 \(1485\)) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1344518133 8274 80.91.229.3 (9 Aug 2012 13:15:33 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 9 Aug 2012 13:15:33 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Aug 09 15:15:34 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SzSaI-0005BI-6h for gctc-ntg-context-518@m.gmane.org; Thu, 09 Aug 2012 15:15:30 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6FC29101E2; Thu, 9 Aug 2012 15:15:23 +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 6UvdIwPjLK0J; Thu, 9 Aug 2012 15:15:21 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id BEFF1101EA; Thu, 9 Aug 2012 15:15:21 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 04E65101EA for ; Thu, 9 Aug 2012 15:15: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 4aq2qqrJLL8P for ; Thu, 9 Aug 2012 15:15:19 +0200 (CEST) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by balder.ntg.nl (Postfix) with ESMTP id 1B6A2101E2 for ; Thu, 9 Aug 2012 15:15:19 +0200 (CEST) Original-Received: from mail-bk0-f41.google.com (mail-bk0-f41.google.com [209.85.214.41]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q79DFCe7026888 for ; Thu, 9 Aug 2012 15:15:18 +0200 Original-Received: by bkcjc3 with SMTP id jc3so243433bkc.14 for ; Thu, 09 Aug 2012 06:15:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=szWsgflc20Kxy+r85oxqazSYEa3vI1uyk5B1ZM87UO0=; b=aezcNpo02aV2wBP9uNFZCHb4FNnpbbt/Au8WmHs7ViaG3FtgSEQPxQQsFe/NEE9a9e s0htW7UXyblpubwA/Ci+Lwxp7IEb23UDclZuxAxKmjpGij1Oc4VkAn2EbKWXVpvm5kKE YQVAJEHHckiU92bi0/hJaelkYvmAODHJiDIIPbZe03/2X1B6qzC4linTG9bDEOsgdk89 G/yqHVZbNzc7XlYxVHJuDGPiyFr6JCTWPUIAQ0Zy5cgrp9aNAQwnLZzxAommP4HMvPTw 4BFyostCdbiu6uyqppYKq8zZiCGZvMM+SkqFzVeLSnPLF2WbM7EznK2U7QiI3NWflCwb q69g== Original-Received: by 10.204.136.215 with SMTP id s23mr9168179bkt.32.1344518112268; Thu, 09 Aug 2012 06:15:12 -0700 (PDT) Original-Received: from [192.168.2.36] (p57AFB396.dip.t-dialin.net. [87.175.179.150]) by mx.google.com with ESMTPS id 14sm663394bkw.15.2012.08.09.06.15.10 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 09 Aug 2012 06:15:11 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.1485) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.214.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0THIBfcev - 4a750d2ab253 - 20120809 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.218 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:77834 Archived-At: Am 09.08.2012 um 15:08 schrieb Sietse Brouwer : >> On Thu, 09 Aug 2012 11:27:08 +0200, Hans Hagen wrote: >>> in the current beta you can say >>> >>> \startcomponent * >>> >>> Hans > > Wikified at http://wiki.contextgarden.net/Command/startcomponent. This > trick also works for startproject, startenvironment, and startproduct, > I assume? > > And for the general case, what about > `\ctxlua{commands.processedfile}`? That looks like it should print the > current filename, as long as any inclusions use the ConTeXt commands > and not \input. You can use \currentcomponent, \currentproduct and \currentproject to print the name of the file. 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 ___________________________________________________________________________________