![](https://secure.gravatar.com/avatar/c83fb4134167a11422c23048fb8a85e3.jpg?s=120&d=mm&r=g)
The discussion went on about my silly PS. So I am reposting the original question/problem. The method in the wiki (http://wiki.contextgarden.net/Document_Titles) does not work for me, but maybe it is the order in which you have to do things? Here is my t-title.tex (from the wiki):
\unprotect
\let\endnote\footnote
\definemarking[Author] \definemarking[Doctitle]
\def\doctitle#1{\gdef\@title{#1}\marking[Doctitle]{#1}} \def\author#1{\gdef\@author{#1}\marking[Author]{#1}}
\definesystemvariable {dt} % DocumentTitle
% Expand both 1- and 2- arity'd versions of /dosetuptitle \def\setuptitle {\dodoubleempty\dosetuptitle}
% The one-argument iteration: % For each comma separated item of arg1, define (dtcontent(arg1))... % using \setuptitle in your document as defined at the bottom of this file
% The two-argument iteration: % For each comma separated item of arg1, and using style/color in arg2... % define (dt(arg1)(style)) and (dt(arg1)(color))
\def\dosetuptitle[#1][#2]% {\ifsecondargument \dodosetuptitle[#1][#2]% \else \dodosetuptitle[\v!content][#1]% \fi}
\def\dodosetuptitle[#1][#2]% {\def\dododosetuptitle##1% {\getparameters[\??dt##1][#2]}% \processcommalist[#1]\dododosetuptitle}
% Using earlier style/color definitions, apply style and color to arg1-item values \def\placetitle {\startalignment[\v!middle] \blank[\v!force,2*\v!big] \doattributes{\??dt\c!title}\c!style\c!color\@@dtcontenttitle \blank[3*\v!medium] \doattributes{\??dt\c!author}\c!style\c!color\@@dtcontentauthor \blank[2*\v!medium] \doattributes{\??dt\c!date}\c!style\c!color\@@dtcontentdate \blank[3*\v!medium] \stopalignment}
% Here is where we define the key-value pairs \setuptitle [\c!title] [\c!style=\tfd, \c!color=]
\setuptitle [\c!author,\c!date] [\c!style=\tfa, \c!color=]
\setuptitle [\c!title=, \c!author=, \c!date=\currentdate]
% define abstracts \definestartstop [abstract] [before={\midaligned{\bf Abstract} \startnarrower[2*middle]}, after={\stopnarrower \blank[big]}] \protect
And the start of my doc:
\usemodule[title]
\setuptitle [title={Title to be determined}, author={G.C.Th.~Wierda, M.Sc., MBA\footnote{IT Lead Architect, APG, {http://www.apg.nl/}}}, date={July 2009}]
\setupheadertexts[{\getmarking[Doctitle]}][{\getmarking[Author]}]
\starttext \placetitle
\startabstract Abstract will be written afterwards \stopabstract
\subsection{Introduction}
But I do not get the headings of the wiki example. G On 25 Jun 2009, at 11:28, Gerben Wierda wrote:
I followed the wiki
http://wiki.contextgarden.net/Document_Titles
but the last part "Adding markings to headers and footers" does not work. I suspect "In ConTeXt: A more advanced solution" was put in later and the instructions in Adding Markings does not work in that solution.
So, how do I add the markings in the "advanced solution" in the wiki instructions?
G
PS. This is what I would really like to have in ConTeXt. A gooed set of modules like a t-title, t-article, etc. Why after all these years has this not been added? It would make ConTeXt so much more usable for conceptual writers like myself. ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________