From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/22780 Path: news.gmane.org!not-for-mail From: "Boris Pedrofiets" Newsgroups: gmane.comp.tex.context Subject: Re: using 1 layout on several documents Date: Fri, 30 Sep 2005 15:08:35 +0200 Message-ID: References: <433D25A5.6050505@gmx.net> 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; format=flowed X-Trace: sea.gmane.org 1128085824 28433 80.91.229.2 (30 Sep 2005 13:10:24 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 30 Sep 2005 13:10:24 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Fri Sep 30 15:10:14 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 1ELKd3-0001cP-JE for gctc-ntg-context-518@m.gmane.org; Fri, 30 Sep 2005 15:08:45 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5E0EA12796; Fri, 30 Sep 2005 15:08:45 +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 08924-07-3; Fri, 30 Sep 2005 15:08:40 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 57D1E127A2; Fri, 30 Sep 2005 15:08:40 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C1A09127A2 for ; Fri, 30 Sep 2005 15:08:38 +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 08924-07-2 for ; Fri, 30 Sep 2005 15:08:37 +0200 (CEST) Original-Received: from hotmail.com (bay24-f3.bay24.hotmail.com [64.4.18.53]) by ronja.ntg.nl (Postfix) with ESMTP id 7504012796 for ; Fri, 30 Sep 2005 15:08:37 +0200 (CEST) Original-Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Fri, 30 Sep 2005 06:08:35 -0700 Original-Received: from 80.126.23.145 by by24fd.bay24.hotmail.msn.com with HTTP; Fri, 30 Sep 2005 13:08:35 GMT X-Originating-IP: [80.126.23.145] X-Originating-Email: [pedrofiets@hotmail.com] X-Sender: pedrofiets@hotmail.com In-Reply-To: <433D25A5.6050505@gmx.net> Original-To: ntg-context@ntg.nl X-OriginalArrivalTime: 30 Sep 2005 13:08:35.0927 (UTC) FILETIME=[10FBFE70:01C5C5C0] 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:22780 Archived-At: Thank you Peter! Just wondering... Looking at the files s-mg-01.tex and mag-0000.tex from the context distribution, there is a different approach. Here I find \usemodule. What are the differences? And, when use with? Or is it just a metter of taste? Boris. >From: Peter Rolf >Reply-To: mailing list for ConTeXt users >To: mailing list for ConTeXt users >Subject: Re: [NTG-context] using 1 layout on several documents >Date: Fri, 30 Sep 2005 13:46:45 +0200 > >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 > > > > > >_______________________________________________ >ntg-context mailing list >ntg-context@ntg.nl >http://www.ntg.nl/mailman/listinfo/ntg-context _________________________________________________________________ Nieuw op MSN Messenger 7.5: Dynamische achtergronden http://www1.imagine-msn.com/Messenger/Audio.aspx