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
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 -----------------------------------------------------------------
On Dec 21, 2007 3:19 AM, Hans Hagen
\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
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
Joel C. Salomon wrote:
On Dec 21, 2007 3:19 AM, Hans Hagen
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 -----------------------------------------------------------------
On Fri, 21 Dec 2007 12:49:04 -0500
"Joel C. Salomon"
On Dec 21, 2007 12:29 PM, Hans Hagen
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
On Dec 21, 2007 12:49 PM, Joel C. Salomon
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
On Fri, 21 Dec 2007 13:15:22 -0500
"Joel C. Salomon"
On Dec 21, 2007 12:49 PM, Joel C. Salomon
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
On Dec 21, 2007 2:01 PM, Wolfgang Schuster
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
On Fri, 21 Dec 2007 15:09:26 -0500
"Joel C. Salomon"
On Dec 21, 2007 2:01 PM, Wolfgang Schuster
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
On Dec 21, 2007 4:08 PM, Wolfgang Schuster
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
On Sat, 22 Dec 2007 19:30:13 -0500
"Joel C. Salomon"
On Dec 21, 2007 4:08 PM, Wolfgang Schuster
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
On Thu, 20 Dec 2007 18:04:57 -0500
"Joel C. Salomon"
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
participants (3)
-
Hans Hagen
-
Joel C. Salomon
-
Wolfgang Schuster