summaryrefslogtreecommitdiff
path: root/mod/doc
diff options
context:
space:
mode:
authorPhilipp Gesang <gesang@stud.uni-heidelberg.de>2012-06-05 23:04:51 +0200
committerPhilipp Gesang <gesang@stud.uni-heidelberg.de>2012-06-05 23:04:51 +0200
commit9c6a8a9737e6f5b09ca65ed82a186b58e731e350 (patch)
tree93feea3dadad533c11c068ab53b9c7c5a906de72 /mod/doc
parent9b1389520701dbce2bebf451f0e5d719264928ea (diff)
downloadcontext-rst-9c6a8a9737e6f5b09ca65ed82a186b58e731e350.tar.gz
formatted manual
Diffstat (limited to 'mod/doc')
-rw-r--r--mod/doc/context/third/rst/manual.tex88
1 files changed, 70 insertions, 18 deletions
diff --git a/mod/doc/context/third/rst/manual.tex b/mod/doc/context/third/rst/manual.tex
index 460051b..cbb0382 100644
--- a/mod/doc/context/third/rst/manual.tex
+++ b/mod/doc/context/third/rst/manual.tex
@@ -1,8 +1,13 @@
-\usemodule[bib]
-
\setuppapersize[A5][A5]
-\setupcombinedlist[content][interaction=all,focus=standard]
+\setupcombinedlist[content][interaction=all,]
+
+\setupinteraction[
+ state=start,
+ focus=standard,
+ color=darkcyan,
+ contrastcolor=\interactionparameter{color},
+]
\setupindenting[yes,next,medium] % -> lead to the glue node error in mkiv
@@ -13,7 +18,16 @@
\setupheads[indentnext=yes]
\setupfloats[indentnext=yes]
-\setupbodyfont[10pt]
+\setupbodyfont[latin-modern,10pt]
+\definefontfeature [textfigures] [onum=yes]
+\definefontfeature [liningfigures] [onum=no]
+\definefontfeature [texligatures] [tlig=yes]
+\definefontfeature [notexligatures] [tlig=yes]
+\addfs{textfigures,texligatures}
+
+\setuptyping[
+ style={\addff{liningfigures,notexligatures}\ttx},
+]
% title page
\startbuffer[frontpage]
@@ -38,10 +52,10 @@
\startstandardmakeup
\vfill
\framed [align=right,frame=off,topframe=on] {%
-\tfxx\ss\setupinterlinespace[small]
-Copyright 2010--2011 by Philipp Gesang, Dossenheim.\par
-Mail any patches or suggestions to\par
-\type{string.format("%s@%s.com", "megas.kapaneus", "gmail")}\par
+\tfxx\ss\setupinterlinespace[small]\noindentation
+Copyright 2010--2012 by Philipp Gesang, Heidelberg.\par
+Mail any bug reports, patches or suggestions to\par
+\type{string.format("%s@%s.com", "phg42.2a", "gmail")}\par
or pay a visit to \goto{my BitBucket home}[url(http://bitbucket.org/phg/)].\par
}
\stopstandardmakeup
@@ -49,17 +63,51 @@ or pay a visit to \goto{my BitBucket home}[url(http://bitbucket.org/phg/)].\par
% table of contents
-\startbuffer[toc]
-\setuppagenumbering[state=start,alternative=doublesided,location=]
-\setupheadertexts
- [{\tfx\sc\getmarking[chapter]}] [{\tfx\bf \pagenumber}]
- [{\tfx\bf \pagenumber}] [{\tfx{\em rst}{\kern.5pt\CONTEXT}}]
-\completecontent
+\startbuffer [toc]
+\setuppagenumbering[
+ state=start,
+ alternative=doublesided,
+ location=,
+]
+\setuplayout [grid=no]
+\setuptolerance [verytolerant]
+\setuptolerance [vertical,verytolerant]
+
+\newdimen \mypagenumdistance \mypagenumdistance .7em
+\def\fillercmd{\nobreak\hskip\mypagenumdistance}
+
+\definelistplacement[my_list_placement][command]#1#2#3%
+ {#2\fillercmd#3\hskip1.5em}
+
+\setuplist [chapter] [alternative=a,style=\word\sc]
+\setuplist [section] [alternative=my_list_placement,]
+
+\startsetups toc:subsection
+ \noindentation\placelist[subsection]
+\stopsetups
+
+\startsetups toc:section
+ \blank
+ \setupnarrower [middle=9em,]
+ \startnarrower[middle]\tfx
+ \noindentation\placelist[section][after=\setups{toc:subsection}]
+ \stopnarrower
+ \blank
+\stopsetups
+
+\title{Contents}
+
+\placelist [chapter] [criterium=text,after=\setups{toc:section}]
+
+% \setupheadertexts
+% [{\tfx\sc\getmarking[chapter]}] [{\tfx\bf \pagenumber}]
+% [{\tfx\bf \pagenumber}] [{\tfx{\em rst}{\kern.5pt\CONTEXT}}]
+% \completecontent
\stopbuffer
% something radically changed in mkiv
\startluacode
-jobvariables = jobvariables or {}
+jobvariables = job.variables or {}
jobvariables.tobesaved = jobvariables.tobesaved or {}
\stopluacode
@@ -72,9 +120,13 @@ jobvariables.tobesaved = jobvariables.tobesaved or {}
\completepublications
\stopbuffer
-\appendtoks \getbuffer[frontpage] \to \everystarttext
-\appendtoks \getbuffer[author] \to \everystarttext
-\appendtoks \getbuffer[toc] \to \everystarttext
+\appendtoks
+ \startfrontmatter
+ \getbuffer[frontpage]
+ \getbuffer[author]
+ \getbuffer[toc]
+ \stopfrontmatter
+\to \everystarttext
%\prependtoks \getbuffer[pubs] \to \everystoptext