Commits

Wolfgang Schuster committed 9f7d1dd

Resume module and various changes in the letter and resume styles

Comments (0)

Files changed (19)

files/letter-imp-default.mkii

 %D \module
 %D   [     file=letter-imp-default,
-%D      version=2012.01.01,
+%D      version=2012.02.04,
 %D        title=\CONTEXT\ User Module,
 %D     subtitle=Default letter style,
 %D       author=Wolfgang Schuster,
 
 \setupletterframe
   [\v!foot,\v!nextfoot,\v!leftfoot,\v!rightfoot]
-  [\c!width=\textwidth]
+  [\c!width=\textwidth,
+   \c!height=\footerheight]
 
 %\setupletterlayer
 %  [\v!head]
    \v!topmark,
    \v!botmark,
    \v!cutmark,
+   \v!endmark,
+   \v!usermark,
    \v!backaddress,
    \v!address,
    \v!reference,

files/letter-imp-default.mkiv

 %D \module
 %D   [     file=letter-imp-default,
-%D      version=2012.01.01,
+%D      version=2012.02.04,
 %D        title=\CONTEXT\ User Module,
 %D     subtitle=Default letter style,
 %D       author=Wolfgang Schuster,
 
 \setupletterframe
   [\v!foot,\v!nextfoot,\v!leftfoot,\v!rightfoot]
-  [\c!width=\textwidth]
+  [\c!width=\textwidth,
+   \c!height=\footerheight]
 
 %\setupletterlayer
 %  [\v!head]
    \v!topmark,
    \v!botmark,
    \v!cutmark,
+   \v!endmark,
+   \v!usermark,
    \v!backaddress,
    \v!address,
    \v!reference,

files/memo-imp-default.mkii

 %D \module
 %D   [     file=memo-imp-default,
-%D      version=2011.10.29,
+%D      version=2012.02.04,
 %D        title=\CONTEXT\ User Module,
 %D     subtitle=Default memo style,
 %D       author=Wolfgang Schuster,
 \setupmemooptions
   [\c!marking=\v!no]
 
+\setupmemolayer
+  [\v!head,\v!nexthead,\v!lefthead,\v!righthead]
+  [\c!x=\backspace,
+   \c!y=\topspace]
+
+\setupmemoframe
+  [\v!head,\v!nexthead,\v!lefthead,\v!righthead]
+  [\c!width=\textwidth]
+
+\setupmemolayer
+  [\v!foot,\v!nextfoot,\v!leftfoot,\v!rightfoot]
+  [\c!preset=\v!left\v!bottom,
+   \c!x=\backspace,
+   \c!y=\bottomspace]
+
+\setupmemoframe
+  [\v!foot,\v!nextfoot,\v!leftfoot,\v!rightfoot]
+  [\c!width=\textwidth,
+   \c!height=\footerheight]
+
+\setupmemolayer
+  [\v!nexthead,\v!nextfoot]
+  [\c!state=\v!next]
+
+\setupmemolayer
+  [\v!lefthead,\v!leftfoot]
+  [\c!state=\v!left]
+
+\setupmemolayer
+  [\v!righthead,\v!rightfoot]
+  [\c!state=\v!right]
+
+\definememoelements
+  [\v!layer]
+  [\v!memomain,
+   \v!memonext,
+   \v!head,
+   \v!nexthead,
+   \v!lefthead,
+   \v!righthead,
+   \v!foot,
+   \v!nextfoot,
+   \v!leftfoot,
+   \v!rightfoot,
+   \v!topmark,
+   \v!botmark,
+   \v!cutmark,
+   \v!endmark,
+   \v!usermark]
+
 \definememoelements
   [\v!section]
   [\v!head

files/memo-imp-default.mkiv

 %D \module
 %D   [     file=memo-imp-default,
-%D      version=2011.10.29,
+%D      version=2012.02.04,
 %D        title=\CONTEXT\ User Module,
 %D     subtitle=Default memo style,
 %D       author=Wolfgang Schuster,
 \setupmemooptions
   [\c!marking=\v!no]
 
+\setupmemolayer
+  [\v!head,\v!nexthead,\v!lefthead,\v!righthead]
+  [\c!x=\backspace,
+   \c!y=\topspace]
+
+\setupmemoframe
+  [\v!head,\v!nexthead,\v!lefthead,\v!righthead]
+  [\c!width=\textwidth]
+
+\setupmemolayer
+  [\v!foot,\v!nextfoot,\v!leftfoot,\v!rightfoot]
+  [\c!preset=\v!left\v!bottom,
+   \c!x=\backspace,
+   \c!y=\bottomspace]
+
+\setupmemoframe
+  [\v!foot,\v!nextfoot,\v!leftfoot,\v!rightfoot]
+  [\c!width=\textwidth,
+   \c!height=\footerheight]
+
+\setupmemolayer
+  [\v!nexthead,\v!nextfoot]
+  [\c!state=\v!next]
+
+\setupmemolayer
+  [\v!lefthead,\v!leftfoot]
+  [\c!state=\v!left]
+
+\setupmemolayer
+  [\v!righthead,\v!rightfoot]
+  [\c!state=\v!right]
+
+\definememoelements
+  [\v!layer]
+  [\v!memomain,
+   \v!memonext,
+   \v!head,
+   \v!nexthead,
+   \v!lefthead,
+   \v!righthead,
+   \v!foot,
+   \v!nextfoot,
+   \v!leftfoot,
+   \v!rightfoot,
+   \v!topmark,
+   \v!botmark,
+   \v!cutmark,
+   \v!endmark,
+   \v!usermark]
+
 \definememoelements
   [\v!section]
   [\v!head

files/memo-imp-margin.mkii

 %D \module
-%D   [     file=memo-imp-memo,
-%D      version=2011.11.07,
+%D   [     file=memo-imp-margin,
+%D      version=2012.02.04,
 %D        title=\CONTEXT\ Memo Style,
-%D     subtitle=Memo style,
+%D     subtitle=Margin style,
 %D       author=Wolfgang Schuster,
 %D         date=\currentdate,
 %D    copyright=Wolfgang Schuster,
 
 \setupmemolayout
   [\v!firstpage,\v!secondpage]
-  [\c!backspace=1in,
-   \c!width=\v!middle,
-   \c!topspace=1in,
-   \c!header=0in,
-   \c!footer=0in,
-   \c!height=\v!fit]
+  [\c!header=0in]
 
 \setupmemosection
   [\v!head]
   [\c!alternative=\v!margin]
 
+\setupmemolayer
+  [\v!foot]
+  [\c!state=\v!repeat,
+   \c!alternative=\v!pagenumber]
+
 \setupmemooptions
   [\c!whitespace=\v!line]
 

files/memo-imp-margin.mkiv

 %D \module
-%D   [     file=memo-imp-memo,
-%D      version=2011.11.07,
+%D   [     file=memo-imp-margin,
+%D      version=2012.02.04,
 %D        title=\CONTEXT\ Memo Style,
-%D     subtitle=Memo style,
+%D     subtitle=Margin style,
 %D       author=Wolfgang Schuster,
 %D         date=\currentdate,
 %D    copyright=Wolfgang Schuster,
 
 \setupmemolayout
   [\v!firstpage,\v!secondpage]
-  [\c!backspace=1in,
-   \c!width=\v!middle,
-   \c!topspace=1in,
-   \c!header=0in,
-   \c!footer=0in,
-   \c!height=\v!fit]
+  [\c!header=0in]
 
 \setupmemosection
   [\v!head]
   [\c!alternative=\v!margin]
 
+\setupmemolayer
+  [\v!foot]
+  [\c!state=\v!repeat,
+   \c!alternative=\v!pagenumber]
+
 \setupmemooptions
   [\c!whitespace=\v!line]
 

files/memo-imp-memo.mkii

 %D \module
 %D   [     file=memo-imp-memo,
-%D      version=2011.11.01,
+%D      version=2012.02.04,
 %D        title=\CONTEXT\ Memo Style,
 %D     subtitle=Memo style,
 %D       author=Wolfgang Schuster,
 
 \setupmemolayout
   [\v!firstpage,\v!secondpage]
-  [\c!backspace=1in,
-   \c!width=\v!middle,
-   \c!topspace=1in,
-   \c!header=0in,
-   \c!footer=0in,
-   \c!height=\v!fit]
+  [\c!header=0in]
 
 \setupmemosection
   [\v!head]
   [\c!alternative=\v!memo]
 
+\setupmemolayer
+  [\v!foot]
+  [\c!state=\v!repeat,
+   \c!alternative=\v!pagenumber]
+
 \setupmemosection
   [\v!closing]
   [\c!leftmargin=.5\textwidth]

files/memo-imp-memo.mkiv

 %D \module
 %D   [     file=memo-imp-memo,
-%D      version=2011.11.01,
+%D      version=2012.02.04,
 %D        title=\CONTEXT\ Memo Style,
 %D     subtitle=Memo style,
 %D       author=Wolfgang Schuster,
 
 \setupmemolayout
   [\v!firstpage,\v!secondpage]
-  [\c!backspace=1in,
-   \c!width=\v!middle,
-   \c!topspace=1in,
-   \c!header=0in,
-   \c!footer=0in,
-   \c!height=\v!fit]
+  [\c!header=0in]
 
 \setupmemosection
   [\v!head]
   [\c!alternative=\v!memo]
 
+\setupmemolayer
+  [\v!foot]
+  [\c!state=\v!repeat,
+   \c!alternative=\v!pagenumber]
+
 \setupmemosection
   [\v!closing]
   [\c!leftmargin=.5\textwidth]

files/memo-imp-table.mkii

 %D \module
-%D   [     file=memo-imp-memo,
-%D      version=2011.11.07,
+%D   [     file=memo-imp-table,
+%D      version=2012.02.04,
 %D        title=\CONTEXT\ Memo Style,
-%D     subtitle=Memo style,
+%D     subtitle=Table style,
 %D       author=Wolfgang Schuster,
 %D         date=\currentdate,
 %D    copyright=Wolfgang Schuster,
 
 \setupmemolayout
   [\v!firstpage,\v!secondpage]
-  [\c!backspace=1in,
-   \c!width=\v!middle,
-   \c!topspace=1in,
-   \c!header=0in,
-   \c!footer=0in,
-   \c!height=\v!fit]
+  [\c!header=0in]
 
 \setupmemosection
   [\v!head]
   [\c!alternative=\v!table]
 
+\setupmemolayer
+  [\v!foot]
+  [\c!state=\v!repeat,
+   \c!alternative=\v!pagenumber]
+
 \setupmemooptions
   [\c!whitespace=\v!line]
 

files/memo-imp-table.mkiv

 %D \module
-%D   [     file=memo-imp-memo,
-%D      version=2011.11.07,
+%D   [     file=memo-imp-table,
+%D      version=2012.02.04,
 %D        title=\CONTEXT\ Memo Style,
-%D     subtitle=Memo style,
+%D     subtitle=Table style,
 %D       author=Wolfgang Schuster,
 %D         date=\currentdate,
 %D    copyright=Wolfgang Schuster,
 
 \setupmemolayout
   [\v!firstpage,\v!secondpage]
-  [\c!backspace=1in,
-   \c!width=\v!middle,
-   \c!topspace=1in,
-   \c!header=0in,
-   \c!footer=0in,
-   \c!height=\v!fit]
+  [\c!header=0in]
 
 \setupmemosection
   [\v!head]
   [\c!alternative=\v!table]
 
+\setupmemolayer
+  [\v!foot]
+  [\c!state=\v!repeat,
+   \c!alternative=\v!pagenumber]
+
 \setupmemooptions
   [\c!whitespace=\v!line]
 

files/resume-imp-default.mkiv

+%D \module
+%D   [     file=resume-imp-default,
+%D      version=2012.02.04,
+%D        title=\CONTEXT\ Resume Module,
+%D     subtitle=Default style,
+%D       author=Wolfgang Schuster,
+%D         date=\currentdate,
+%D    copyright=Wolfgang Schuster,
+%D      license=GNU General Public License]
+
+%C Copyright (C) 2011  Wolfgang Schuster
+%C
+%C This program is free software: you can redistribute it and/or modify
+%C it under the terms of the GNU General Public License as published by
+%C the Free Software Foundation, either version 3 of the License, or
+%C any later version.
+%C
+%C This program is distributed in the hope that it will be useful,
+%C but WITHOUT ANY WARRANTY; without even the implied warranty of
+%C MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+%C GNU General Public License for more details.
+%C
+%C You should have received a copy of the GNU General Public License
+%C along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
+\setupresumelayer
+  [\v!head,\v!nexthead,\v!lefthead,\v!righthead]
+  [\c!x=\backspace,
+   \c!y=\topspace]
+
+\setupresumeframe
+  [\v!head,\v!nexthead,\v!lefthead,\v!righthead]
+  [\c!width=\textwidth]
+
+\setupresumelayer
+  [\v!foot,\v!nextfoot,\v!leftfoot,\v!rightfoot]
+  [\c!preset=\v!left\v!bottom,
+   \c!x=\backspace,
+   \c!y=\bottomspace]
+
+\setupresumeframe
+  [\v!foot,\v!nextfoot,\v!leftfoot,\v!rightfoot]
+  [\c!width=\textwidth,
+   \c!height=\footerheight]
+
+\setupresumelayer
+  [\v!nexthead,\v!nextfoot]
+  [\c!state=\v!next]
+
+\setupresumelayer
+  [\v!lefthead,\v!leftfoot]
+  [\c!state=\v!left]
+
+\setupresumelayer
+  [\v!righthead,\v!rightfoot]
+  [\c!state=\v!right]
+
+\setupresumesection
+  [\v!closing]
+  [\c!spaceafter=\v!line,
+   \c!spaceinbetween={\v!samepage,2*\v!line}]
+
+\defineresumeelements
+  [\v!layer]
+  [\v!resumemain,
+   \v!resumenext,
+   \v!head,
+   \v!nexthead,
+   \v!lefthead,
+   \v!righthead,
+   \v!foot,
+   \v!nextfoot,
+   \v!topmark,
+   \v!botmark,
+   \v!cutmark,
+   \v!endmark,
+   \v!usermark]
+
+\defineresumeelements
+  [\v!section]
+  [\v!content,
+   \v!closing]
+
+\endinput

files/s-cor-00.lua

 local v_correspondence = variables.correspondence
 local v_letter         = variables.letter
 local v_memo           = variables.memo
+local v_resume         = variables.resume
 local v_stop           = variables.stop
 local v_layer          = variables.layer
 local v_section        = variables.section
 -- create synonyms for the default styles
 
 local patterns = {
-    [v_letter] = { "letter-imp-%s.mkiv", "letter-imp-%s.tex", "letter-%s.mkiv", "letter-%s.tex" },
-    [v_memo]   = { "memo-imp-%s.mkiv", "memo-imp-%s.tex", "memo-%s.mkiv", "memo-%s.tex" },
+    [v_letter]   = { "letter-imp-%s.mkiv", "letter-imp-%s.tex", "letter-%s.mkiv", "letter-%s.tex" },
+    [v_memo]     = {   "memo-imp-%s.mkiv",   "memo-imp-%s.tex",   "memo-%s.mkiv",   "memo-%s.tex" },
+    [v_resume]   = { "resume-imp-%s.mkiv", "resume-imp-%s.tex", "resume-%s.mkiv", "resume-%s.tex" },
 }
 
 local function action(name,foundname)

files/s-cor-00.mkvi

   \setinterfacevariable {correspondence}  {correspondence}
   \setinterfacevariable {letter}          {letter}
   \setinterfacevariable {memo}            {memo}
+  \setinterfacevariable {resume}          {resume}
   \setinterfacevariable {nexthead}        {nexthead}
   \setinterfacevariable {lefthead}        {lefthead}
   \setinterfacevariable {righthead}       {righthead}
   \setinterfacevariable {usermark}        {usermark}
   \setinterfacevariable {lettermain}      {lettermain}
   \setinterfacevariable {letternext}      {letternext}
+  \setinterfacevariable {memomain}        {memomain}
+  \setinterfacevariable {memonext}        {memonext}
+  \setinterfacevariable {resumemain}      {resumemain}
+  \setinterfacevariable {resumenext}      {resumenext}
   \setinterfacevariable {opening}         {opening}
   \setinterfacevariable {closing}         {closing}
   \setinterfacevariable {secondpage}      {secondpage}
   \setinterfacevariable {enclosure}       {enclosure}
   \setinterfacevariable {french}          {french}
   \setinterfacevariable {specialnotation} {specialnotation}
-  \setinterfacevariable {memomain}        {memomain}
-  \setinterfacevariable {memonext}        {memonext}
   \setinterfacevariable {e}               {e}
   \setinterfacevariable {attention}       {attention}
   \setinterfacevariable {room}            {room}

files/s-cor-01.mkii

 %D \module
 %D   [     file=s-cor-01,
-%D      version=2012.01.15,
+%D      version=2012.02.04,
 %D        title=\CONTEXT\ User Module,
 %D     subtitle=Letters,
 %D       author=Wolfgang Schuster,
 \defineletterelement[\v!layer][\v!nexthead][\v!gbrief]
   {\maxaligned
      {\rlap{\correspondenceparameter\c!fromname}
-      \midaligned{\lettertext\v!page\subpagenumber\lettertext\v!of\lastsubpagenumber}
+      \midaligned{\leftlettertext\v!pagenumber\subpagenumber\rightlettertext\v!pagenumber\lastsubpagenumber}
       \llap{\correspondenceparameter\c!date}}
    \hairline}
 
      \eTR
    \eTABLE}
 
+\defineletterelement[\v!layer][\v!foot][\v!pagenumber]
+  {\midaligned{\leftlettertext\v!pagenumber\subpagenumber\rightlettertext\v!pagenumber\lastsubpagenumber}}
+
 \defineletterelement[\v!layer][\v!foot][\v!setups]
   {\texsetup{\v!letter:\v!layer:\v!foot}}
 
 \setuplettertext[\s!it][\v!street=]
 \setuplettertext[\s!es][\v!street=]
 
+% page:
+
+\setuplettertext[\s!en][\v!page=Page~]
+\setuplettertext[\s!nl][\v!page=]
+\setuplettertext[\s!de][\v!page=Seite~]
+\setuplettertext[\s!fr][\v!page=]
+\setuplettertext[\s!it][\v!page=]
+\setuplettertext[\s!es][\v!page=]
+
+% pagenumber:
+
+\setuplettertext[\s!en][\v!pagenumber={Page , of }]
+\setuplettertext[\s!nl][\v!pagenumber=]
+\setuplettertext[\s!de][\v!pagenumber={Seite , von }]
+\setuplettertext[\s!fr][\v!pagenumber=]
+\setuplettertext[\s!it][\v!pagenumber=]
+\setuplettertext[\s!es][\v!pagenumber=]
+
 \stopmodule
 
 \protect \endinput

files/s-cor-01.mkvi

 %D \module
 %D   [     file=s-cor-01,
-%D      version=2012.01.20,
+%D      version=2012.02.04,
 %D        title=\CONTEXT\ User Module,
 %D     subtitle=Letters,
 %D       author=Wolfgang Schuster,
 \defineletterelement[\v!layer][\v!nexthead][\v!gbrief]
   {\maxaligned
      {\rlap{\correspondenceparameter\c!fromname}
-      \midaligned{\lettertext\v!page\subpagenumber\lettertext\v!of\lastsubpagenumber}
+      \midaligned{\leftlettertext\v!pagenumber\subpagenumber\rightlettertext\v!pagenumber\lastsubpagenumber}
       \llap{\correspondenceparameter\c!date}}
    \hairline}
 
      \eTR
    \eTABLE}
 
+\defineletterelement[\v!layer][\v!foot][\v!pagenumber]
+  {\midaligned{\leftlettertext\v!pagenumber\subpagenumber\rightlettertext\v!pagenumber\lastsubpagenumber}}
+
 \defineletterelement[\v!layer][\v!foot][\v!setups]
   {\texsetup{\v!letter:\v!layer:\v!foot}}
 
 \setuplettertext[\s!it][\v!street=]
 \setuplettertext[\s!es][\v!street=]
 
+% page:
+
+\setuplettertext[\s!en][\v!page=Page~]
+\setuplettertext[\s!nl][\v!page=]
+\setuplettertext[\s!de][\v!page=Seite~]
+\setuplettertext[\s!fr][\v!page=]
+\setuplettertext[\s!it][\v!page=]
+\setuplettertext[\s!es][\v!page=]
+
+% pagenumber:
+
+\setuplettertext[\s!en][\v!pagenumber={Page , of }]
+\setuplettertext[\s!nl][\v!pagenumber=]
+\setuplettertext[\s!de][\v!pagenumber={Seite , von }]
+\setuplettertext[\s!fr][\v!pagenumber=]
+\setuplettertext[\s!it][\v!pagenumber=]
+\setuplettertext[\s!es][\v!pagenumber=]
+
 \stopmodule
 
 \protect \endinput

files/s-cor-02.mkii

 %D \module
 %D   [     file=s-cor-02,
-%D      version=2012.01.15,
+%D      version=2012.02.04,
 %D        title=\CONTEXT\ User Module,
 %D     subtitle=Memos,
 %D       author=Wolfgang Schuster,
 \definememolayer [\v!lefthead]
 \definememolayer [\v!righthead]
 
+\definememolayer [\v!foot]
+\definememolayer [\v!nextfoot]
+\definememolayer [\v!leftfoot]
+\definememolayer [\v!rightfoot]
+
 \definememolayer [\v!topmark]
 \definememolayer [\v!botmark]
 \definememolayer [\v!cutmark]
 
 % layer: nexthead
 
-\definememoelement[\v!layer][\v!nexthead][\v!fullblock]
-  {\maxaligned
-     {\rlap{\correspondenceparameter\c!toname}%
-      \midaligned{\pagenumber}%
-      \llap{\framed[\c!frame=\v!off,\c!location=\v!top,\c!align=\v!left]
-        {\correspondenceparameter\c!date   \\
-         \correspondenceparameter\c!reference}}}}
-
-\definememoelement[\v!layer][\v!nexthead][\v!hanging]
-  {\maxaligned
-     {\framed[\c!frame=\v!off,\c!location=\v!top,\c!align=v!right]
-       {\correspondenceparameter\c!toname    \\
-        \correspondenceparameter\c!date      \\
-        \correspondenceparameter\c!reference \\
-        \memotext\c!page\pagenumber}}\hss}
-
-\definememoelement[\v!layer][\v!nexthead][\v!semiblock]
-  {\maxaligned
-     {\rlap{\correspondenceparameter\c!toname}%
-      \midaligned{\pagenumber}%
-      \llap{\correspondenceparameter\c!date}}}
-
-\definememoelement[\v!layer][\v!nexthead][\v!simplified]
-  {\memoelement[\v!layer][\v!nexthead][\v!fullblock]}
-
-\definememoelement[\v!layer][\v!nexthead][\v!modified]
-  {\memoelement[\v!layer][\v!nexthead][\v!hanging]}
-
 \definememoelement[\v!layer][\v!nexthead][\v!setups]
   {\texsetup{\v!memo:\v!layer:\v!nexthead}}
 
 \definememoelement[\v!layer][\v!righthead][\v!setups]
   {\texsetup{\v!memo:\v!layer:\v!righthead}}
 
+% layer: foot
+
+\definememoelement[\v!layer][\v!foot][\v!pagenumber]
+  {\centerbox{\hbox{\begstrut\leftmemotext\v!pagenumber\subpagenumber\rightmemotext\v!pagenumber\lastsubpagenumber\endstrut}}}
+
 % layer: topmark
 
 \definememoelement[\v!layer][\v!topmark][\v!setups]
      \processcommalist[#1]\dodosetupmemotext
    \fi}
 
-\def\memotext#1{\labeltext{\????memotext#1}}
+\def\memotext     #1{\labeltext     {\????memotext#1}}
+\def\leftmemotext #1{\leftlabeltext {\????memotext#1}}
+\def\rightmemotext#1{\rightlabeltext{\????memotext#1}}
 
-% page:
+% pagenumber:
 
-\setupmemotext[\s!en][\v!page=Page~]
-\setupmemotext[\s!nl][\v!page=]
-\setupmemotext[\s!de][\v!page=Seite~]
-\setupmemotext[\s!fr][\v!page=]
-\setupmemotext[\s!it][\v!page=]
-\setupmemotext[\s!es][\v!page=]
+\setupmemotext[\s!en][\v!pagenumber={Page , of }]
+\setupmemotext[\s!nl][\v!pagenumber=]
+\setupmemotext[\s!de][\v!pagenumber={Seite , von }]
+\setupmemotext[\s!fr][\v!pagenumber=]
+\setupmemotext[\s!it][\v!pagenumber=]
+\setupmemotext[\s!es][\v!pagenumber=]
 
 % date:
 

files/s-cor-02.mkvi

 %D \module
 %D   [     file=s-cor-02,
-%D      version=2012.01.15,
+%D      version=2012.02.04,
 %D        title=\CONTEXT\ User Module,
 %D     subtitle=Memos,
 %D       author=Wolfgang Schuster,
 \definememolayer [\v!lefthead]
 \definememolayer [\v!righthead]
 
+\definememolayer [\v!foot]
+\definememolayer [\v!nextfoot]
+\definememolayer [\v!leftfoot]
+\definememolayer [\v!rightfoot]
+
 \definememolayer [\v!topmark]
 \definememolayer [\v!botmark]
 \definememolayer [\v!cutmark]
 
 % layer: nexthead
 
-\definememoelement[\v!layer][\v!nexthead][\v!fullblock]
-  {\maxaligned
-     {\rlap{\correspondenceparameter\c!toname}%
-      \midaligned{\pagenumber}%
-      \llap{\framed[\c!frame=\v!off,\c!location=\v!top,\c!align=\v!left]
-        {\correspondenceparameter\c!date   \\
-         \correspondenceparameter\c!reference}}}}
-
-\definememoelement[\v!layer][\v!nexthead][\v!hanging]
-  {\maxaligned
-     {\framed[\c!frame=\v!off,\c!location=\v!top,\c!align=v!right]
-       {\correspondenceparameter\c!toname    \\
-        \correspondenceparameter\c!date      \\
-        \correspondenceparameter\c!reference \\
-        \memotext\c!page\pagenumber}}\hss}
-
-\definememoelement[\v!layer][\v!nexthead][\v!semiblock]
-  {\maxaligned
-     {\rlap{\correspondenceparameter\c!toname}%
-      \midaligned{\pagenumber}%
-      \llap{\correspondenceparameter\c!date}}}
-
-\definememoelement[\v!layer][\v!nexthead][\v!simplified]
-  {\memoelement[\v!layer][\v!nexthead][\v!fullblock]}
-
-\definememoelement[\v!layer][\v!nexthead][\v!modified]
-  {\memoelement[\v!layer][\v!nexthead][\v!hanging]}
-
 \definememoelement[\v!layer][\v!nexthead][\v!setups]
   {\texsetup{\v!memo:\v!layer:\v!nexthead}}
 
 \definememoelement[\v!layer][\v!righthead][\v!setups]
   {\texsetup{\v!memo:\v!layer:\v!righthead}}
 
+% layer: foot
+
+\definememoelement[\v!layer][\v!foot][\v!pagenumber]
+  {\centerbox{\hbox{\begstrut\leftmemotext\v!pagenumber\subpagenumber\rightmemotext\v!pagenumber\lastsubpagenumber\endstrut}}}
+
 % layer: topmark
 
 \definememoelement[\v!layer][\v!topmark][\v!setups]
 
 \definelabelclass[memo]
 
-% page:
+% pagenumber:
 
-\setupmemotext[\s!en][\v!page=Page~]
-\setupmemotext[\s!nl][\v!page=]
-\setupmemotext[\s!de][\v!page=Seite~]
-\setupmemotext[\s!fr][\v!page=]
-\setupmemotext[\s!it][\v!page=]
-\setupmemotext[\s!es][\v!page=]
+\setupmemotext[\s!en][\v!pagenumber={Page , of }]
+\setupmemotext[\s!nl][\v!pagenumber=]
+\setupmemotext[\s!de][\v!pagenumber={Seite , von }]
+\setupmemotext[\s!fr][\v!pagenumber=]
+\setupmemotext[\s!it][\v!pagenumber=]
+\setupmemotext[\s!es][\v!pagenumber=]
 
 % date:
 

files/s-cor-03.mkvi

+%D \module
+%D   [     file=s-cor-03,
+%D      version=2012.02.04,
+%D        title=\CONTEXT\ User Module,
+%D     subtitle=Resume,
+%D       author=Wolfgang Schuster,
+%D         date=\currentdate,
+%D    copyright=Wolfgang Schuster,
+%D      license=GNU General Public License]
+
+%C Copyright (C) 2011  Wolfgang Schuster
+%C
+%C This program is free software: you can redistribute it and/or modify
+%C it under the terms of the GNU General Public License as published by
+%C the Free Software Foundation, either version 3 of the License, or
+%C any later version.
+%C
+%C This program is distributed in the hope that it will be useful,
+%C but WITHOUT ANY WARRANTY; without even the implied warranty of
+%C MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+%C GNU General Public License for more details.
+%C
+%C You should have received a copy of the GNU General Public License
+%C along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
+\unprotect
+
+\usemodule[cor-00]
+
+\startmodule[\v!resume]
+
+\setupmodule
+  [\c!style=]
+
+% Commands
+
+\definecorrespondence[\v!resume]
+
+\def\defineresumelayer       {\dodoubleargument\correspondence_layer_define       [\v!resume]}
+\def\defineresumesection     {\dodoubleargument\correspondence_section_define     [\v!resume]}
+\def\defineresumedescription {\dodoubleargument\correspondence_description_define [\v!resume]}
+
+\def\defineresumeelements    {\dotripleargument\correspondence_elements_define    [\v!resume]}
+\def\setupresumeelements     {\dotripleargument\correspondence_elements_define    [\v!resume]}
+
+\def\setupresumestyle        {\dotripleargument\correspondence_style_setup        [\v!resume]}
+\def\setupresumelayer        {\dotripleargument\correspondence_layer_setup        [\v!resume]}
+\def\setupresumeframe        {\dotripleargument\correspondence_frame_setup        [\v!resume]}
+\def\setupresumelayout       {\dotripleargument\correspondence_layout_setup       [\v!resume]}
+\def\setupresumesection      {\dotripleargument\correspondence_section_setup      [\v!resume]}
+\def\setupresumedescription  {\dotripleargument\correspondence_description_setup  [\v!resume]}
+\def\setupresumeoptions      {\dodoubleargument\correspondence_option_setup       [\v!resume]}
+\def\setupresume             {\dodoubleargument\correspondence_setup              [\v!resume]}
+
+\def\useresumestyle          {\dodoubleargument\correspondence_file_load          [\v!resume]}
+
+\def\defineresumeelement     {\doquadrupleargument\correspondence_element_define  [\v!resume]}
+\def\resumeelement           {\doquadrupleargument\correspondence_element_place   [\v!resume]}
+
+% Layers
+
+\defineresumelayer [\v!head]
+\defineresumelayer [\v!nexthead]
+\defineresumelayer [\v!lefthead]
+\defineresumelayer [\v!righthead]
+
+\defineresumelayer [\v!foot]
+\defineresumelayer [\v!nextfoot]
+\defineresumelayer [\v!leftfoot]
+\defineresumelayer [\v!rightfoot]
+
+\defineresumelayer [\v!topmark]
+\defineresumelayer [\v!botmark]
+\defineresumelayer [\v!cutmark]
+\defineresumelayer [\v!endmark]
+\defineresumelayer [\v!usermark]
+
+\defineresumelayer [\v!resumemain]
+\defineresumelayer [\v!resumenext]
+
+% Section
+
+\defineresumesection [\v!head]
+\defineresumesection [\v!content]
+\defineresumesection [\v!closing]
+
+% Setups
+
+% layer: head
+
+\defineresumeelement[\v!layer][\v!head][\v!setups]
+  {\texsetup{\v!resume:\v!layer:\v!head}}
+
+% layer: nexthead
+
+\defineresumeelement[\v!layer][\v!nexthead][\v!setups]
+  {\texsetup{\v!resume:\v!layer:\v!nexthead}}
+
+% layer: lefthead
+
+\defineresumeelement[\v!layer][\v!lefthead][\v!setups]
+  {\texsetup{\v!resume:\v!layer:\v!lefthead}}
+
+% layer: righthead
+
+\defineresumeelement[\v!layer][\v!righthead][\v!setups]
+  {\texsetup{\v!resume:\v!layer:\v!righthead}}
+
+% layer: topmark
+
+\defineresumeelement[\v!layer][\v!topmark][\v!setups]
+  {\texsetup{\v!resume:\v!layer:\v!topmark}}
+
+% layer: botmark
+
+\defineresumeelement[\v!layer][\v!botmark][\v!setups]
+  {\texsetup{\v!resume:\v!layer:\v!botmark}}
+
+% layer: cutmark
+
+\defineresumeelement[\v!layer][\v!cutmark][\v!setups]
+  {\texsetup{\v!resume:\v!layer:\v!cutmark}}
+
+% layer: endmark
+
+\defineresumeelement[\v!layer][\v!endmark][\v!setups]
+  {\texsetup{\v!resume:\v!layer:\v!endmark}}
+
+% layer: usermark
+
+\defineresumeelement[\v!layer][\v!usermark][\v!setups]
+  {\texsetup{\v!resume:\v!layer:\v!usermark}}
+
+% layer: resumemain
+
+\defineresumeelement[\v!layer][\v!resumemain][\v!setups]
+  {\texsetup{\v!resume:\v!layer:\v!resumemain}}
+
+% layer: resumenext
+
+\defineresumeelement[\v!layer][\v!resumenext][\v!setups]
+  {\texsetup{\v!resume:\v!layer:\v!resumenext}}
+
+% section: head
+
+\defineresumeelement[\v!section][\v!head][\s!default]
+  {\def\\{\correspondencesectionparameter\c!separator}%
+   \correspondenceparameter\c!fromaddress}
+
+\defineresumeelement[\v!section][\v!head][\v!setups]
+  {\texsetup{\v!resume:\v!section:\v!head}}
+
+% section: content
+
+\defineresumeelement[\v!section][\v!content][\s!default]
+  {\getbufferdata[\????correspondencebuffer\v!resume]}
+
+\defineresumeelement[\v!section][\v!content][\v!setups]
+  {\texsetup{\v!resume:\v!section:\v!content}}
+
+% section: closing
+
+\defineresumeelement[\v!section][\v!closing][\s!default]
+  {}
+
+\defineresumeelement[\v!section][\v!closing][\v!setups]
+  {\texsetup{\v!resume:\v!section:\v!closing}}
+
+% Files
+
+\useresumestyle[default,\currentmoduleparameter\c!style]
+
+% Extras
+
+\appendtoks
+  \ifx\currentcorrespondence\v!resume
+    \doif{\correspondenceoptionparameter\c!marking}\v!no{\setupresumelayer[\v!topmark,\v!botmark,\v!cutmark,\v!endmark,\v!usermark][\c!state=\v!stop]}%
+  \fi
+\to \t_correspondence_before
+
+% Labels
+
+\definelabelclass[resume]
+
+\stopmodule
+
+\protect \endinput
+\usemodule[cor-03]
+
+\setupresumeoptions
+  [bodyfont=calluna]
+
+\startresume
+\input knuth
+\stopresume