From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/12797 Path: main.gmane.org!not-for-mail From: Matthias Weber Newsgroups: gmane.comp.tex.context Subject: Re: Newbie question on \completecontent Date: Wed, 6 Aug 2003 09:52:21 -0500 Sender: ntg-context-admin@ntg.nl Message-ID: <955880B4-C81D-11D7-B981-000A959AFACC@indiana.edu> References: <5E8A3844-C809-11D7-8891-000A95901A7E@rna.nl> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 (Apple Message framework v552) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1060181856 8325 80.91.224.253 (6 Aug 2003 14:57:36 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 6 Aug 2003 14:57:36 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Wed Aug 06 16:57:57 2003 Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19kPjh-0000Bf-00 for ; Wed, 06 Aug 2003 16:57:57 +0200 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 5A69410B62; Wed, 6 Aug 2003 16:57:53 +0200 (MEST) Original-Received: from julesburg.uits.indiana.edu (julesburg.uits.indiana.edu [129.79.1.75]) by ref.ntg.nl (Postfix) with ESMTP id 3A0F410ACB for ; Wed, 6 Aug 2003 16:52:23 +0200 (MEST) Original-Received: from logchain.uits.indiana.edu (logchain.uits.indiana.edu [129.79.1.77]) by julesburg.uits.indiana.edu (8.12.9/8.12.9/IUPO) with ESMTP id h76EqLPJ012047 for ; Wed, 6 Aug 2003 09:52:21 -0500 (EST) Original-Received: from indiana.edu (dial-122-67.dial.indiana.edu [156.56.122.67]) by logchain.uits.indiana.edu (8.12.9/8.12.9/IUPO) with ESMTP id h76EqJ1e012553 for ; Wed, 6 Aug 2003 09:52:20 -0500 (EST) Original-To: ntg-context@ntg.nl In-Reply-To: <5E8A3844-C809-11D7-8891-000A95901A7E@rna.nl> X-Mailer: Apple Mail (2.552) Errors-To: ntg-context-admin@ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.comp.tex.context:12797 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:12797 Hello Gerben, I am a beginner myself, and working on a book project too. Below I send you my complete directory setup with sample files. I am happy with the set-up and it might also be useful for you. Matthias Directory structure: sas.tex % main project file layout.tex % main layout file screenbook/screenbook.tex % product file part1/chapter1/chapter1.tex part1/chapter1/section1/section1.tex And here the files: % sas.tex: \startproject sas \environment layout \product screenbook/screenbook \stopproject %layout.tex % contains definitions and 'styles' relevant for all products \startenvironment layout \setuppagenumbering[location={footer,middle}] \setuphead [chapter] [numberstyle=bold, textstyle=cap, before=\hairline\blank, after={\nowhitespace\hairline\blank[line]}] \stopenvironment % screenbook/screenbook.tex % contains definitions for the relevant product % Maybe this can be moved to a secondary environment file, % I haven't tried that yet. \startproduct screenbook \setupcolors[state=start] \project sas \setuppapersize[S6][S6] \startfrontmatter \starttext \startstandardmakeup \midaligned{My Little Book --- Screen Version} \midaligned{by} \midaligned{Myself} \stopstandardmakeup \stoptext \completecontent \stopfrontmatter \startbodymatter \component part1/part1 \component part2/part2 \component part3/part3 \component part4/part4 \stopbodymatter \startbackmatter \completeindex \stopbackmatter \stopproduct % part1/chapter1/chapter1.tex \chapter{My first chapter} \starttext This is about whatever I have to say. \input part1/chapter1/section1/section1 \stoptext % part1/chapter1/section1/section1.tex % put all helper (images etc) files in this directory, too % This file contains the actual text and doesn't see the project structure % anymore. \section{My first section} blah blah blah