Commits

Philipp Gesang  committed f5cec06

formatted manual

  • Participants
  • Parent commits 3afe206

Comments (0)

Files changed (8)

 *.bib
 ./testing/*
 ./tmp.tex
+./doc/*
 *–rst_temporary*
 ./tmp/*
 ./test/*
 Contact
 =======
 
-|rstcontext| was written by Philipp Gesang, ``megas.kapaneus`` at ``gmail`` dot
+|rstcontext| was written by Philipp Gesang, ``phg42.2a`` at ``gmail`` dot
 ``com`` (find me on BitBucket_).
 
 .. |rstcontext| ctx:: {{\em rst}\kern.5pt\CONTEXT}
 .. |TeX| ctx:: {\TEX}
 .. |CONTEXT| ctx:: {\CONTEXT}
 
-.. _Contact: megas.kapaneus@gmail.com
+.. _Contact: phg42.2a@gmail.com
 .. _BitBucket:  http://bitbucket.org/phg
 .. _maintainer: Contact_

File mod/doc/context/third/rst/manual.tex

-\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
 
 \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]
 \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
 
 
 % 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
 
 \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
 

File mod/tex/context/third/rst/rst_context.lua

 --         FILE:  rst_context.lua
 --        USAGE:  called by rst_parser.lua
 --  DESCRIPTION:  Complement to the reStructuredText parser
---       AUTHOR:  Philipp Gesang (Phg), <megas.kapaneus@gmail.com>
---      CHANGED:  2011-08-28 13:46:46+0200
+--       AUTHOR:  Philipp Gesang (Phg), <phg42.2a@gmail.com>
+--      CHANGED:  2012-06-05 22:18:11+0200
 --------------------------------------------------------------------------------
 --
 --- TODO

File mod/tex/context/third/rst/rst_directives.lua

 --         FILE:  rst_directives.lua
 --        USAGE:  called by rst_parser.lua
 --  DESCRIPTION:  Complement to the reStructuredText parser
---       AUTHOR:  Philipp Gesang (Phg), <megas.kapaneus@gmail.com>
---      CHANGED:  2012-06-05 21:18:54+0200
+--       AUTHOR:  Philipp Gesang (Phg), <phg42.2a@gmail.com>
+--      CHANGED:  2012-06-05 22:17:51+0200
 --------------------------------------------------------------------------------
 --
 

File mod/tex/context/third/rst/rst_helpers.lua

 --         FILE:  rst_helpers.lua
 --        USAGE:  called by rst_parser.lua
 --  DESCRIPTION:  Complement to the reStructuredText parser
---       AUTHOR:  Philipp Gesang (Phg), <megas.kapaneus@gmail.com>
---      CHANGED:  2011-08-28 13:47:07+0200
+--       AUTHOR:  Philipp Gesang (Phg), <phg42.2a@gmail.com>
+--      CHANGED:  2012-06-05 22:17:31+0200
 --------------------------------------------------------------------------------
 --
 

File mod/tex/context/third/rst/rst_parser.lua

 --         FILE:  rst_parser.lua
 --        USAGE:  refer to doc/documentation.rst
 --  DESCRIPTION:  https://bitbucket.org/phg/context-rst/overview
---       AUTHOR:  Philipp Gesang (Phg), <megas.kapaneus@gmail.com>
+--       AUTHOR:  Philipp Gesang (Phg), <phg42.2a@gmail.com>
 --      VERSION:  0.5
---      CHANGED:  2011-08-28 22:29:33+0200
+--      CHANGED:  2012-06-05 22:17:18+0200
 --------------------------------------------------------------------------------
 --
 
 
     setups = setups .. [[
 \setupcolors[state=start]
-\setupinteraction[state=start,focus=standard,color=darkgreen,contrastcolor=darkgreen]
+%% Interaction is supposed to be handled manually.
+%%\setupinteraction[state=start,focus=standard,color=darkgreen,contrastcolor=darkgreen]
 \setupbodyfontenvironment [default]  [em=italic]
 \sethyphenatedurlnormal{:=?&}
 \sethyphenatedurlbefore{?&}

File mod/tex/context/third/rst/rst_setups.lua

 --         FILE:  rst_setups.lua
 --        USAGE:  called by rst_parser.lua
 --  DESCRIPTION:  Complement to the reStructuredText parser
---       AUTHOR:  Philipp Gesang (Phg), <megas.kapaneus@gmail.com>
---      CHANGED:  2011-08-28 13:47:24+0200
+--       AUTHOR:  Philipp Gesang (Phg), <phg42.2a@gmail.com>
+--      CHANGED:  2012-06-05 22:17:10+0200
 --------------------------------------------------------------------------------
 --