ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Wolfgang Schuster" <schuster.wolfgang@googlemail.com>
To: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Subject: Re: Setting up a project
Date: Fri, 21 Dec 2007 09:55:59 +0100	[thread overview]
Message-ID: <115224fb0712210055q7c60cd3ft2a0482160215a2c@mail.gmail.com> (raw)
In-Reply-To: <7871fcf50712201504s36570eddj4862ef466c69bfaa@mail.gmail.com>

On Thu, 20 Dec 2007 18:04:57 -0500
"Joel C. Salomon" <joelcsalomon@gmail.com> wrote:

> I'm trying a fairly ambitious project to teach myself practical
> ConTeXt -- typesetting a book I'm writing.  As per
> <http://wiki.contextgarden.net/Project_structure>, 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 <http://typophile.com/files/Layout.pdf>, 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
___________________________________________________________________________________


  parent reply	other threads:[~2007-12-21  8:55 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-20 23:04 Joel C. Salomon
2007-12-21  8:19 ` Hans Hagen
2007-12-21 17:08   ` Joel C. Salomon
2007-12-21 17:29     ` Hans Hagen
2007-12-21 17:49       ` Joel C. Salomon
2007-12-21 18:05         ` Wolfgang Schuster
2007-12-21 18:15         ` Joel C. Salomon
2007-12-21 19:01           ` Wolfgang Schuster
2007-12-21 20:09             ` Joel C. Salomon
2007-12-21 21:08               ` Wolfgang Schuster
2007-12-23  0:30                 ` Joel C. Salomon
2007-12-23 12:39                   ` Wolfgang Schuster
2007-12-21  8:55 ` Wolfgang Schuster [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-09-11 10:07 Piotr Kopszak
2002-09-11 17:53 ` Willi Egger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=115224fb0712210055q7c60cd3ft2a0482160215a2c@mail.gmail.com \
    --to=schuster.wolfgang@googlemail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).