Skip to content

Instantly share code, notes, and snippets.

@adityam
Created February 22, 2012 19:02
Show Gist options
  • Save adityam/1886670 to your computer and use it in GitHub Desktop.
Save adityam/1886670 to your computer and use it in GitHub Desktop.
Style of IREX 1000
\startmodule irex
%D Paper Size
\definepapersize[irexpaper][height=8in,width=6.25in]
\setuppapersize[irexpaper][irexpaper]
%D Layout
\setuplayout
[location=middle,
topspace=5mm,
width=middle,
height=middle,
bottomspace=5mm,
bottomdistace=0mm,
bottom=0mm,
backspace=5mm,
cutspace=5mm,
leftmargin=0mm,
rightmargin=0mm,
header=0mm,
footer=0mm,
headerdistance=0mm,
footerdistance=0mm,
]
\setuppagenumbering[location=]
%D Fonts
\usetypescriptfile[type-exljbris]
\definetypeface [mainface] [rm] [serif] [fontin] [default] [features=default]
\definetypeface [mainface] [ss] [sans] [fontin] [default] [features=default]
\setupbodyfont [mainface,12pt]
\definefont [interludefont] [name:museo700 at 28pt]
\definefont [chapterfont] [name:museo700 at 32pt]
%D Headings
\setuphead[chapter]
[alternative=middle,
style=\chapterfont,
number=no,
before={\blank[2*big,force]},
after={\blank[4*big]\placeinitial},
]
\setupinteraction[state=start]
\placebookmarks[chapter]
\def\Chapter{\dowithpargument\chapter}
%D Interlude
\def\Interlude{\dowithpargument\doInterlude}
\def\doInterlude#1%
{\page
\null
\vfill \vfill
\startalignment[center]
\let\\\crlf
\interludefont
\setupinterlinespace[big]
#1
\endgraf
\stopalignment
\vfill \vfill \vfill
\page}
%D Style
\setupindenting [medium,yes]
\setupwhitespace [medium]
\stopmodule
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment