ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Setting up a project
@ 2002-09-11 10:07 Piotr Kopszak
  2002-09-11 17:53 ` Willi Egger
  0 siblings, 1 reply; 15+ messages in thread
From: Piotr Kopszak @ 2002-09-11 10:07 UTC (permalink / raw)


Hello, 

I wanted to change my document structure to something more managable
so I decided to set up a project with products and components. 

the project file: booklet.tex

product files: pl/pl.tex
	       en/en.tex
	       front/front.tex

component files: pl/leszek-pl/leszek-pl.tex
		 pl/leszek-pl/uccellini-pl.tex
		 pl/leszek-pl/biblio-pl.tex

		 en/leszek-en/leszek-en.tex
		 en/leszek-en/uccellini-en.tex
		 en/leszek-en/biblio-en.tex

		 front/okladka/okladka.tex
		 front/spis/spis.tex

There are two problems however:

1. When  I process  the project  with  "texexec booklet"  I get  empty
   output  in spite of  the fact  that all  the files  are on  the TeX
   path.  The solution to  this is  making symbolic  links to  all the
   files  in the same  directory where  "booklet.tex" resides.  But it
   does not seem like a right thing to do.  
2. I was  not able to use  localenvironments with any of  the files in
   the project.  

If anyone  would bo so kind  to answer I  could send the files.  And I
still  don't know  how to  use iso-8859-2  encoded files  (with Polish
characters!), but that seems unsupported in spite of what the
documentation says (mtexexec.pdf). 

Thanks in advance for your help

Piotr


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Setting up a project
  2002-09-11 10:07 Setting up a project Piotr Kopszak
@ 2002-09-11 17:53 ` Willi Egger
  0 siblings, 0 replies; 15+ messages in thread
From: Willi Egger @ 2002-09-11 17:53 UTC (permalink / raw)
  Cc: ntg_context

Hi Piotr,

I have a large project defined with

\startproject XY

\environment layout

\product A
\product B
\product ...

\stopproject

Project files look as follows:

\startproduct gekart
\project XY

\component t-1
\component t-2
\component ...

\stopproduct

My project works in this way.
Some of the component files use a local environment.
As far as I know texexec searches the directories beneath the current
directrory for the input files.

What your font-problem is concerned I just can say, that you need to install
the used fonts with the appropriate encoding while installing them. May be
that the hints on the site of Bill Mc Cain can be of
help.(http://home.salamander.com/~wmcclain/context-help.html)

Kind regards Willi


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Setting up a project
  2007-12-23  0:30                 ` Joel C. Salomon
@ 2007-12-23 12:39                   ` Wolfgang Schuster
  0 siblings, 0 replies; 15+ messages in thread
From: Wolfgang Schuster @ 2007-12-23 12:39 UTC (permalink / raw)
  To: ntg-context

On Sat, 22 Dec 2007 19:30:13 -0500
"Joel C. Salomon" <joelcsalomon@gmail.com> wrote:

> On Dec 21, 2007 4:08 PM, Wolfgang Schuster
> <schuster.wolfgang@googlemail.com> wrote:
> > >       textwidth=288pt, textheight=432pt,
> >
> > replace these two lines with
> >
> > width=288pt and height=432pt
> >
> > don't use textwidth and textheight in \setuplayout.
> 
> Actually, "width=288pt, textheight=432pt," gives me exactly the result
> I wanted.  I'd just like to be able to set the distance between the
> top of the paper and the top of the text area directly, as in
> 	header=12pt, headerdistance=12pt, something=72pt
> rather than what I'm currently using:
> 	header=12pt, headerdistance=12pt, topspace=48pt, % 48 = 72 - (12+12)
> Is this possible, and what is the something's name?
> 
> > leftmargindistance is only the distance between the textarea and the
> > left box for the left margin, the layout concept could be a little bit
> > confusing.
> 
> Ya think maybe? ;)
> 
> Thanks for the help,
> --Joel

\setuplayout
  [marking=on,
   location=middle,
   width=288pt,
   height=432pt,
   header=12pt,
   headerdistance=12pt,
   topspace=\dimexpr72pt-\headerheight-\headerdistance\relax,
   footer=\headerheight,
   footerdistance=\headerdistance,
   %bottomspace=144pt, % calculated by ConTeXt
   leftmargindistance=12pt,
   leftmargin=24pt,
   backspace=48pt,
   rightmargindistance=\leftmargindistance,
   rightmargin=\leftmarginwidth]

You should also avoid to use set the headerdistance, the textheight and
the bottomdistances at the same time, try to set only two dimension and
let TeX calculate the third dimension itself.

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Setting up a project
  2007-12-21 21:08               ` Wolfgang Schuster
@ 2007-12-23  0:30                 ` Joel C. Salomon
  2007-12-23 12:39                   ` Wolfgang Schuster
  0 siblings, 1 reply; 15+ messages in thread
From: Joel C. Salomon @ 2007-12-23  0:30 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Dec 21, 2007 4:08 PM, Wolfgang Schuster
<schuster.wolfgang@googlemail.com> wrote:
> >       textwidth=288pt, textheight=432pt,
>
> replace these two lines with
>
> width=288pt and height=432pt
>
> don't use textwidth and textheight in \setuplayout.

Actually, "width=288pt, textheight=432pt," gives me exactly the result
I wanted.  I'd just like to be able to set the distance between the
top of the paper and the top of the text area directly, as in
	header=12pt, headerdistance=12pt, something=72pt
rather than what I'm currently using:
	header=12pt, headerdistance=12pt, topspace=48pt, % 48 = 72 - (12+12)
Is this possible, and what is the something's name?

> leftmargindistance is only the distance between the textarea and the
> left box for the left margin, the layout concept could be a little bit
> confusing.

Ya think maybe? ;)

Thanks for the help,
--Joel
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Setting up a project
  2007-12-21 20:09             ` Joel C. Salomon
@ 2007-12-21 21:08               ` Wolfgang Schuster
  2007-12-23  0:30                 ` Joel C. Salomon
  0 siblings, 1 reply; 15+ messages in thread
From: Wolfgang Schuster @ 2007-12-21 21:08 UTC (permalink / raw)
  To: ntg-context

On Fri, 21 Dec 2007 15:09:26 -0500
"Joel C. Salomon" <joelcsalomon@gmail.com> wrote:

> On Dec 21, 2007 2:01 PM, Wolfgang Schuster
> <schuster.wolfgang@googlemail.com> wrote:
> > What do you mean by the rectangle around the text area.
> 
> Here's the project I'm compiling (as it currently stands), condensed
> into a single file:
> 
> \definepapersize[sixbynine][width=6in,height=9in]
> \setuppapersize[sixbynine][letter]
> \setuplayout
> 	[marking=on, location=middle,
> 	textwidth=288pt, textheight=432pt,

replace these two lines with

width=288pt and height=432pt

don't use textwidth and textheight in \setuplayout.

> 	header=12pt, headerdistance=12pt, topspace=72pt,
> 	footer=12pt, footerdistance=12pt, bottomspace=144pt,
> 	leftmargindistance=12pt, leftmargin=24pt, backspace=48pt,
> 	rightmargindistance=12pt, rightmargin=24pt]
> \setuppagenumbering[alternative=doublesided]
> \showframe
> \starttext
> \title{Preface}
> A few paragraphs of {\em Lorem ipsum} text.
> \stoptext
> 
> The center rectangle, surrounding the text area, seems to have its
> left & right margins some distance from the actual text.  How do I set
> that distance, and why is it different from the leftmargindistance?

leftmargindistance is only the distance between the textarea and the
left box for the left margin, the layout concept could be a little bit
confusing.

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Setting up a project
  2007-12-21 19:01           ` Wolfgang Schuster
@ 2007-12-21 20:09             ` Joel C. Salomon
  2007-12-21 21:08               ` Wolfgang Schuster
  0 siblings, 1 reply; 15+ messages in thread
From: Joel C. Salomon @ 2007-12-21 20:09 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Dec 21, 2007 2:01 PM, Wolfgang Schuster
<schuster.wolfgang@googlemail.com> wrote:
> What do you mean by the rectangle around the text area.

Here's the project I'm compiling (as it currently stands), condensed
into a single file:

\definepapersize[sixbynine][width=6in,height=9in]
\setuppapersize[sixbynine][letter]
\setuplayout
	[marking=on, location=middle,
	textwidth=288pt, textheight=432pt,
	header=12pt, headerdistance=12pt, topspace=72pt,
	footer=12pt, footerdistance=12pt, bottomspace=144pt,
	leftmargindistance=12pt, leftmargin=24pt, backspace=48pt,
	rightmargindistance=12pt, rightmargin=24pt]
\setuppagenumbering[alternative=doublesided]
\showframe
\starttext
\title{Preface}
A few paragraphs of {\em Lorem ipsum} text.
\stoptext

The center rectangle, surrounding the text area, seems to have its
left & right margins some distance from the actual text.  How do I set
that distance, and why is it different from the leftmargindistance?

--Joel
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Setting up a project
  2007-12-21 18:15         ` Joel C. Salomon
@ 2007-12-21 19:01           ` Wolfgang Schuster
  2007-12-21 20:09             ` Joel C. Salomon
  0 siblings, 1 reply; 15+ messages in thread
From: Wolfgang Schuster @ 2007-12-21 19:01 UTC (permalink / raw)
  To: ntg-context

On Fri, 21 Dec 2007 13:15:22 -0500
"Joel C. Salomon" <joelcsalomon@gmail.com> wrote:

> On Dec 21, 2007 12:49 PM, Joel C. Salomon <joelcsalomon@gmail.com> wrote:
> > Is there a problem with having location=middle in setuplayout and
> > location=doublesided in setuppagenumbering?
> 
> Never mind; I had done something dumb with the margin widths.
> 
> Anyhow, I'm trying the environment shown below, but I'm evidently not
> understanding what the various *space values are.  Only cutspace seems
> to work as I expected it to; even the text area isn't the right size
> (unless the rectangle isn't around the text area itself).
> 
> \definepapersize[sixbynine][width=6in,height=9in]
> \setuppapersize[sixbynine][letter]
> \setuplayout
> 	[marking=on, location=middle,
> 	textwidth=288pt, textheight=432pt,
> 	header=12pt, headerdistance=12pt, topspace=72pt,
> 	footer=12pt, footerdistance=12pt, bottomspace=144pt,
> 	leftmargindistance=12pt, leftmargin=24pt, backspace=48pt,
> 	rightmargindistance=12pt, rightmargin=24pt, cutspace=96pt]
> \setuppagenumbering[location=doublesided]
> \showframe

http://wiki.contextgarden.net/Layout

you should also set only "backspace and textwidth" ond no "cutspace" or
you set "backspace and cutspace" and let ConTeXt calculate the
textwidth.

What do you mean by the rectangle around the text area.

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Setting up a project
  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
  1 sibling, 1 reply; 15+ messages in thread
From: Joel C. Salomon @ 2007-12-21 18:15 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Dec 21, 2007 12:49 PM, Joel C. Salomon <joelcsalomon@gmail.com> wrote:
> Is there a problem with having location=middle in setuplayout and
> location=doublesided in setuppagenumbering?

Never mind; I had done something dumb with the margin widths.

Anyhow, I'm trying the environment shown below, but I'm evidently not
understanding what the various *space values are.  Only cutspace seems
to work as I expected it to; even the text area isn't the right size
(unless the rectangle isn't around the text area itself).

\definepapersize[sixbynine][width=6in,height=9in]
\setuppapersize[sixbynine][letter]
\setuplayout
	[marking=on, location=middle,
	textwidth=288pt, textheight=432pt,
	header=12pt, headerdistance=12pt, topspace=72pt,
	footer=12pt, footerdistance=12pt, bottomspace=144pt,
	leftmargindistance=12pt, leftmargin=24pt, backspace=48pt,
	rightmargindistance=12pt, rightmargin=24pt, cutspace=96pt]
\setuppagenumbering[location=doublesided]
\showframe

--Joel
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Setting up a project
  2007-12-21 17:49       ` Joel C. Salomon
@ 2007-12-21 18:05         ` Wolfgang Schuster
  2007-12-21 18:15         ` Joel C. Salomon
  1 sibling, 0 replies; 15+ messages in thread
From: Wolfgang Schuster @ 2007-12-21 18:05 UTC (permalink / raw)
  To: ntg-context

On Fri, 21 Dec 2007 12:49:04 -0500
"Joel C. Salomon" <joelcsalomon@gmail.com> wrote:

> On Dec 21, 2007 12:29 PM, Hans Hagen <pragma@wxs.nl> wrote:
> > location=middle (in setuplayout)
> 
> Is there a problem with having location=middle in setuplayout and
> location=doublesided in setuppagenumbering?

No problem, the doublesided option for \setuppagenumbering take care of
left and right pages in your real document while the location key for
\setuplayout place the document only on the larger paper according to
the given position.

The command for doublesided documents should be \setuppagenumbering
[alternative=doublesided] and not [location=doublesided], sorry for the
wrong information.

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Setting up a project
  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
  0 siblings, 2 replies; 15+ messages in thread
From: Joel C. Salomon @ 2007-12-21 17:49 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Dec 21, 2007 12:29 PM, Hans Hagen <pragma@wxs.nl> wrote:
> location=middle (in setuplayout)

Is there a problem with having location=middle in setuplayout and
location=doublesided in setuppagenumbering?

--Joel
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Setting up a project
  2007-12-21 17:08   ` Joel C. Salomon
@ 2007-12-21 17:29     ` Hans Hagen
  2007-12-21 17:49       ` Joel C. Salomon
  0 siblings, 1 reply; 15+ messages in thread
From: Hans Hagen @ 2007-12-21 17:29 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Joel C. Salomon wrote:
> On Dec 21, 2007 3:19 AM, Hans Hagen <pragma@wxs.nl> wrote:
>> \setuppapersize[sixbynine][oversized]
>> \setuplayout[marking=on]
> 
> Cool!  Is there a way to center the 6″×9″ page on 8½″×11″ paper?  I've tried
> 	\setuppapersize[sixbynine][letter]
> but that puts the page in the upper-left corner.  Right now I'm using
> 	\setuppapersize[sixbynine][sixbynine]
> and having Acrobat Reader center this on the printed page.  (Which
> might well be the best way to do this.)

location=middle (in setuplayout)


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Setting up a project
  2007-12-21  8:19 ` Hans Hagen
@ 2007-12-21 17:08   ` Joel C. Salomon
  2007-12-21 17:29     ` Hans Hagen
  0 siblings, 1 reply; 15+ messages in thread
From: Joel C. Salomon @ 2007-12-21 17:08 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Dec 21, 2007 3:19 AM, Hans Hagen <pragma@wxs.nl> wrote:
> \setuppapersize[sixbynine][oversized]
> \setuplayout[marking=on]

Cool!  Is there a way to center the 6″×9″ page on 8½″×11″ paper?  I've tried
	\setuppapersize[sixbynine][letter]
but that puts the page in the upper-left corner.  Right now I'm using
	\setuppapersize[sixbynine][sixbynine]
and having Acrobat Reader center this on the printed page.  (Which
might well be the best way to do this.)

> use \showframe
>
> stat with defining headers and footers and then set topspace and
> backspace dimensions

Thanks; now I can see what I'm doing.

On Dec 21, 2007 3:55 AM, Wolfgang Schuster
<schuster.wolfgang@googlemail.com> wrote:
> 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.

I assume that I'd replace every instance of "\project
firefly_novelization_proj" with "\environment
firefly_novelization_env", correct?  But keeping the project file
isn't much hassle, and there might be two volumes, so...

> How to use th Gentium fonts with ConTeXt have been asked

My use of Gentium is a temporary thing for the OpenOffice mockup; I'm
asking for type suggestions on Typophile.  For the nonce I'l be
satisfied with the Latin Modern fonts.

> You forgot \setuppagenumbering[location=doublesided] in your
> environment to get a doublesided document.

Thanks; that was not obvious from any sample document I've seen.

> \setuplayout
>   [backspace=48pt,
<snip>
>    footerdistance=12pt]

I'm using
	\setuplayout
		[marking=on
		%backspace=48pt, cutspace=96pt,
		backspace=36pt, cutspace=84pt,
		width=fit, height=fit,
		%topspace=72pt,
		topspace=48pt, header=12pt, headerdistance=12pt,
		%bottomspace=144pt,
		bottomspace=120pt, footer=12pt, footerdistance=12pt]
right now.  Notice the backspace & cutspace values; the values you
gave me defined some sort of left and right marginal areas with a
separation between them and the main text area, and I wanted the text
area to be 6″×9″.  Now I'm thinking there must be a clearer way to
express it, something like:
	width=288pt, height=432pt,
	header=12pt, headerdistance=12pt,
	footer=12pt, footerdistance=12pt,
	left**=48pt, right**=96pt, top**=72pt, bottom**=144pt,
	something to define an outer marginal area; I don't intend to put
anything in the inner margin]
where the left** &c. define the distance between the paper's edge and
the edge of the text area.  Is this what the edgedistance values are?

> You could try to read the example layouts on the wiki.

I'm using those for ideas too; I'm still missing some important things though.

--Joel
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Setting up a project
  2007-12-20 23:04 Joel C. Salomon
  2007-12-21  8:19 ` Hans Hagen
@ 2007-12-21  8:55 ` Wolfgang Schuster
  1 sibling, 0 replies; 15+ messages in thread
From: Wolfgang Schuster @ 2007-12-21  8:55 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Setting up a project
  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  8:55 ` Wolfgang Schuster
  1 sibling, 1 reply; 15+ messages in thread
From: Hans Hagen @ 2007-12-21  8:19 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Joel C. Salomon wrote:

> 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?

no, you could stick to a product but maybe later on you want for 
instance a screen version which then can make another product

> \startenvironment env_firefly
> \definepapersize[sixbynine][width=6in,height=9in]
> \setuppapersize[sixbynine][sixbynine]
> \setuplayout[...
> 	...]
> \stopenvironment
> 
> Do I need to define & name the paper size, or is putting it in the
> \setuplayout sufficient?

looks ok to me; it depends on your papersize

also try:

\setuppapersize[sixbynine][oversized]
\setuplayout[marking=on]

> What are the "offset" & "scale" in the paper size?

special purpose, tweaking, seldom needed

> 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.)
> 
> 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.

use \showframe

stat with defining headers and footers and then set topspace and 
backspace dimensions

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Setting up a project
@ 2007-12-20 23:04 Joel C. Salomon
  2007-12-21  8:19 ` Hans Hagen
  2007-12-21  8:55 ` Wolfgang Schuster
  0 siblings, 2 replies; 15+ messages in thread
From: Joel C. Salomon @ 2007-12-20 23:04 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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?

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:

\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?

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.)

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.

Thanks,
--Joel
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2007-12-23 12:39 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-11 10:07 Setting up a project Piotr Kopszak
2002-09-11 17:53 ` Willi Egger
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 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).