ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Matthias Weber <matweber@indiana.edu>
Subject: Re: Newbie question on \completecontent
Date: Wed, 6 Aug 2003 09:52:21 -0500	[thread overview]
Message-ID: <955880B4-C81D-11D7-B981-000A959AFACC@indiana.edu> (raw)
In-Reply-To: <5E8A3844-C809-11D7-8891-000A95901A7E@rna.nl>

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

  reply	other threads:[~2003-08-06 14:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-06 12:27 Gerben Wierda
2003-08-06 14:52 ` Matthias Weber [this message]
2003-08-06 19:43 ` Hans Hagen

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=955880B4-C81D-11D7-B981-000A959AFACC@indiana.edu \
    --to=matweber@indiana.edu \
    --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).