The following...
%---------------------------------------------------------------------------
% Equipment Card Environment
%---------------------------------------------------------------------------
\startlocalenvironment[eqCard]
%-- Page Setup
\definepapersize[BC][height=2in,width=3.5in]
\setuppapersize[BC][letter]
\setuplayout[nx=2,ny=5]
\setupbodyfont[cmr, 6pt]
\setupwhitespace[none]
\setuplayout[location=middle,
width=3.25in,
height=1.75in,
backspace=.875in,
header=0in,
footer=0in,
topspace=0.125in,
backspace=0.125in]
\showframe
\stoplocalenvironment
%---------------------------------------------------------------------------
% Unit Cards Environment
%---------------------------------------------------------------------------
\startlocalenvironment[unitCard]
%-- Page Setup
\definepapersize[IC][height=3in,width=5in]
\setuppapersize[IC][letter]
\setuplayout[nx=2,ny=2]
\setupbodyfont[cmr, 8pt]
\setupwhitespace[none]
\setuplayout[location=middle,
width=4.5in,
height=2.5in,
backspace=0.25in,
topspace=0.25in,
header=0in,
footer=0in,
topspace=0.5in]
\showframe
\stoplocalenviroment
%---------------------------------------------------------------------------
% Game Book Environment
%---------------------------------------------------------------------------
\startlocalenvironment[game]
%-- Page Setup
\setuppapersize[letter][letter]
\setupbodyfont[cmr, 12pt]
\setupwhitespace[medium]
\setuplayout[location=middle,
width=6.5in,
height=10in,
marking=on,
margin=1in,
backspace=.875in,
topspace=0.5in]
%--- Custom Macro Defines
\define[1]\tableOfContents{
\page[bigpreference]
\crlf
\midaligned{{\tfb Table of Contents}}
\textrule
\nowhitespace
\placecontent[criterium=#1]
\nowhitespace
}
%--- #'d Custom Headings
\setuphead[chapter]
[numberstyle=bold,
textstyle=slanted,
after=\nowhitespace\textrule]
\setuphead[section][
before={\page[yes]},
after=\nowhitespace\textrule,
numberstyle=bold,
textstyle=slanted]
% foostyle=cap is busted.
\setuphead[subsection]
[numberstyle=bold,
textstyle=slanted,
before={\page[bigpreference]},
after=\nowhitespace\textrule]
\setuphead[subsubsection]
[numberstyle=bold,
textstyle=slanted,
before={\page[no]},
after=\nowhitespace\textrule]
%---un#'d Custom Headings
\setuphead [title][after={\page[yes]}]
\stoplocalenvironment
Gives the following error when processed with texexec...
Runaway argument?
\definepapersize [BC][height=2in,width=3.5in] \par \setuppapersize [\ETC.
! File ended while scanning use of \next.
<inserted text>
\par
<*> &cont-en unspeakableHordesEnv.tex
It seems the \startlocatenvironment commands are not nesting }'s properly,
or something. I've checked all commas, and brackets.
Daniel