From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/22778 Path: news.gmane.org!not-for-mail From: Peter Rolf Newsgroups: gmane.comp.tex.context Subject: Re: using 1 layout on several documents Date: Fri, 30 Sep 2005 13:46:45 +0200 Message-ID: <433D25A5.6050505@gmx.net> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1128080927 12168 80.91.229.2 (30 Sep 2005 11:48:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 30 Sep 2005 11:48:47 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Fri Sep 30 13:48:43 2005 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1ELJMB-0004Av-Ve for gctc-ntg-context-518@m.gmane.org; Fri, 30 Sep 2005 13:47:16 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9F5DC12797; Fri, 30 Sep 2005 13:47:15 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 08205-01-4; Fri, 30 Sep 2005 13:47:11 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 23C90127A7; Fri, 30 Sep 2005 13:47:11 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1F104127A7 for ; Fri, 30 Sep 2005 13:47:10 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 08205-01-3 for ; Fri, 30 Sep 2005 13:47:09 +0200 (CEST) Original-Received: from mail.gmx.net (pop.gmx.net [213.165.64.20]) by ronja.ntg.nl (Postfix) with SMTP id 28BAA12797 for ; Fri, 30 Sep 2005 13:47:08 +0200 (CEST) Original-Received: (qmail invoked by alias); 30 Sep 2005 11:47:08 -0000 Original-Received: from i5387DC1B.versanet.de (EHLO [192.168.0.3]) [83.135.220.27] by mail.gmx.net (mp010) with SMTP; 30 Sep 2005 13:47:08 +0200 X-Authenticated: #24293357 User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: X-Enigmail-Version: 0.92.1.0 X-Y-GMX-Trusted: 0 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 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 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on smtp.ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:22778 Archived-At: Hi Boris, Boris Pedrofiets wrote: > Hi, > > I made a layout that I want to use for several documents. What is the > best way to handle this, without placing a copy of the layout > description in every file? > Simply use an environment (file). Something like... [content of file 'env-mylayout.tex'] -------- \startenvironment env-mylayout ....your layout settings.... \stopenvironment -------- Then put the file somewhere in the tex-path (??/texmf/texmf-local/tex/context/user/ is a good place) and call texhash/mktexlsr(!), so that context can find it; Now you can use your layout settings by just typing \environment env-mylayout at the beginning of your document (before \starttext). If the environment is not already defined, then context tries to load a file with the same name as the environment name (environment foo --> foo.tex). I just use the prefix 'env-' to seperate the env. files from the rest in this folder (typescripts, modules, ...). Hope that helps, Peter > Thanks for helping! > > Boris > > _________________________________________________________________ > Vind alles terug op je PC: MSN Search Toolbar http://toolbar.msn.nl/ > > _______________________________________________ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context > >