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


_______________________________________________ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context

Reply via email to