Changes

Jump to navigation Jump to search
300 bytes added ,  10:39, 11 February 2011
no edit summary
% Definitinos for the different headers. I use chapter, section, and subsection
% and "title" for the acknowledgements because they should not be included in the TOC
 
% The publisher wanted the chapter headings centered and split over two lines:
 
\define[2]\MyChapterCommand{\startalignment[middle]\framed[frame=off]{\vbox{\headtext{chapter} #1\blank[0*small]#2}}\stopalignment}
\setuphead[chapter][page=yes,
header=empty, command=\MyChapterCommand, style=\bfc, number=yes, align=middle, before={\strut\blank[line]}, after={\blank[4*line]}]
\setuplabeltextsetupheadtext[chapter={{},{.}}Chapter]
\setuphead[title][page=yes,
%%% CUSTOM ENVIRONMENTS %%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
% I used tikz for one picture with arrows (its default arrows are nicer than the metapost ones)
 
\usemodule[tikz]
\usetikzlibrary[arrows,snakes,backgrounds]
% the Greek module with Monotype Porson as font, scaled just a bit
\define\textbar{\getglyph{Serif}{\char124}}
% This is to prevent empty pages at I had only four or five tables, so I wanted them numbered across the end of blocks.entire book
\setupsectionblocksetupcaptions[frontpart][pageheadstyle=italic,style=no]{\setupsectionblock[bodypart]switchtobodyfont[page=no]\setupsectionblock[appendixSSize][page},way=no]\setupsectionblock[backpart][pagebytext,stopper=no]
% I had only four or five tables, so I wanted them numbered across the entire book\setupreferencing[partnumber=no]
\setupcaptions[headstyle=normal% In the table of contents,style={\switchtobodyfont[\SSize]},way=bytext,stopper=:]I wanted tabular numerals
\setupreferencingsetuplist[partnumberchapter,section][pagecommand=no\TNum]
% and finally, indenting
</texcode>
 
 
[[Category:Sample documents]]
6

edits

Navigation menu