From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/38176 Path: news.gmane.org!not-for-mail From: "Wolfgang Schuster" Newsgroups: gmane.comp.tex.context Subject: Re: Setting up a project Date: Fri, 21 Dec 2007 09:55:59 +0100 Message-ID: <115224fb0712210055q7c60cd3ft2a0482160215a2c@mail.gmail.com> References: <7871fcf50712201504s36570eddj4862ef466c69bfaa@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1198227387 10364 80.91.229.12 (21 Dec 2007 08:56:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 21 Dec 2007 08:56:27 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Fri Dec 21 09:56:39 2007 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1J5dgM-0000bb-0d for gctc-ntg-context-518@m.gmane.org; Fri, 21 Dec 2007 09:56:38 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7D1401FBAA; Fri, 21 Dec 2007 09:56:15 +0100 (CET) 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 11578-01-8; Fri, 21 Dec 2007 09:56:07 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 637AC1FB64; Fri, 21 Dec 2007 09:56:07 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8E3C81FB64 for ; Fri, 21 Dec 2007 09:56:05 +0100 (CET) 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 09860-01-8 for ; Fri, 21 Dec 2007 09:56:00 +0100 (CET) Original-Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.172]) by ronja.ntg.nl (Postfix) with ESMTP id 1E04A1FB4B for ; Fri, 21 Dec 2007 09:56:00 +0100 (CET) Original-Received: by ug-out-1314.google.com with SMTP id q2so557782uge.50 for ; Fri, 21 Dec 2007 00:55:59 -0800 (PST) Original-Received: by 10.67.92.20 with SMTP id u20mr4478011ugl.71.1198227359263; Fri, 21 Dec 2007 00:55:59 -0800 (PST) Original-Received: by 10.66.252.15 with HTTP; Fri, 21 Dec 2007 00:55:59 -0800 (PST) In-Reply-To: <7871fcf50712201504s36570eddj4862ef466c69bfaa@mail.gmail.com> Content-Disposition: inline X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 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-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:38176 Archived-At: On Thu, 20 Dec 2007 18:04:57 -0500 "Joel C. Salomon" wrote: > I'm trying a fairly ambitious project to teach myself practical > ConTeXt -- typesetting a book I'm writing. As per > , I've created files > for the project, environment, product, and component. The component > file (preface.tex) is the only one with (dummy) content right now. > > Side questions: > Does a project with a single product really require the full hierarchy? > Is there a dummy layout I can put into the environment file to test the set-up? you can omit the project file, I use it myself only for documents where I use the same layout for more than one product/Dokument. > Now I want to set up the layout. An example of what I'm trying to > achieve is at , currently done > in OpenOffice. I'm not yet asking about fonts; I just want to put the > text in the correct places. It doesn't seem that 6×9 (inches) is a > built-in size, so my environment file (env_firefly.tex) needs to look > something like: How to use th Gentium fonts with ConTeXt have been asked not so long ago, I could also send you a typescript file to use the DejaVo fonts with XeTeX but I had a few problems to use them with LuaTeX in the last time. > \startenvironment env_firefly > \definepapersize[sixbynine][ > width=6in,height=9in, > offset=???,scale=???] > \setuppapersize[sixbynine][sixbynine] > \setuplayout[... > ...] > \stopenvironment > > Do I need to define & name the paper size, or is putting it in the > \setuplayout sufficient? > What are the "offset" & "scale" in the paper size? You need \definepapersize to set the width and height of your page. I never the used the offset and scale keys for \definepapersize but the offset key sems to change the with and height of the papersize by the given value, positive value means reduce the size by this dimension. Don't know what the scale key is for, I tried to use it but got no change in the output. \setuplayout is meant to set the margin on your page. You forgot \setuppagenumbering[location=doublesided] in your environment to get a doublesided document. > I want to have 6″×9″ trim, inner margin of 48pt, outer margin 96pt, > top margin 72pt, bottom margin 144pt for starters. Headers and > footers, when they exist, are allocated 12 points height and are 12pt > away from the text. (See the linked-to example.) \setuplayout [backspace=48pt, cutspace=96pt, width=fit, height=fit, %topspace=72pt, topspace=60pt, header=12pt, headerdistance=12pt, %bottomspace=144pt, bottomspace=132pt, footer=12pt, footerdistance=12pt] > I have read several of the manuals, I'm just having trouble putting it > all together. Also, I'm not looking for a recipe but guides on > developing the layout myself so I can understand it. You could try to read the example layouts on the wiki. 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________