* Document Titles
@ 2009-06-25 9:28 Gerben Wierda
2009-06-25 9:49 ` Wolfgang Schuster
2009-06-26 9:11 ` Wiki recepy for Document Titles does not work Gerben Wierda
0 siblings, 2 replies; 9+ messages in thread
From: Gerben Wierda @ 2009-06-25 9:28 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Document Titles
2009-06-25 9:28 Document Titles Gerben Wierda
@ 2009-06-25 9:49 ` Wolfgang Schuster
2009-06-26 9:11 ` Wiki recepy for Document Titles does not work Gerben Wierda
1 sibling, 0 replies; 9+ messages in thread
From: Wolfgang Schuster @ 2009-06-25 9:49 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 25.06.2009 um 11:28 schrieb Gerben Wierda:
> 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.
There had been a few requests in the past about predefined styles
copying
then LaTeX article and report classes but when Hans asked for specs he
got no answer, if you want them make a list of the features, settings
etc.
Wolfgang
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
* Wiki recepy for Document Titles does not work
2009-06-25 9:28 Document Titles Gerben Wierda
2009-06-25 9:49 ` Wolfgang Schuster
@ 2009-06-26 9:11 ` Gerben Wierda
2009-06-26 9:39 ` Wolfgang Schuster
1 sibling, 1 reply; 9+ messages in thread
From: Gerben Wierda @ 2009-06-26 9:11 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
> ___________________________________________________________________________________
>
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Wiki recepy for Document Titles does not work
2009-06-26 9:11 ` Wiki recepy for Document Titles does not work Gerben Wierda
@ 2009-06-26 9:39 ` Wolfgang Schuster
2009-06-26 9:51 ` Gerben Wierda
0 siblings, 1 reply; 9+ messages in thread
From: Wolfgang Schuster @ 2009-06-26 9:39 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 26.06.2009 um 11:11 schrieb Gerben Wierda:
> 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?
Try this:
\unprotect
\definesystemvariable {title}
\definemarking[documenttitle]
\definemarking[documentauthor]
\definemarking[documentdate]
\def\setuptitle
{\dodoubleempty\dosetuptitle}
\def\dosetuptitle[#1][#2]%
{\ifsecondargument
\def\dodosetuptitle##1{\getparameters[\??title##1][#2]}%
\processcommalist[#1]\dodosetuptitle
\else
\getparameters[\??title][#1]%
\fi}
\def\placetitle
{\dosingleempty\doplacetitle}
\def\doplacetitle[#1]%
{\iffirstargument
\getparameters[\??title][#1]%
\fi
\def\dodoplacetitle##1%
{\marking[document##1]{\getvalue{\??title##1}}%
\blank[\getvalue{\??title##1\c!spacebefore}]%
\doattributes{\??dt##1}\c!style\c!color\getvalue{\??title##1}%
\blank[\getvalue{\??title##1\c!spaceafter}]}%
\@@titlebefore
\processcommalist[\c!title,\c!author,\c!date]\dodoplacetitle
\@@titleafter}
\setuptitle
[\c!title]
[\c!style=\tfd,
\c!color=,
\c!spacebefore={\v!force,2*\v!big},
\c!spaceafter={3*\v!medium}]
\setuptitle
[\c!author,\c!date]
[\c!style=\tfa,
\c!color=,
\c!spacebefore={2*\v!medium},
\c!spaceafter={3*\v!medium}]
\setuptitle
[\c!before={\startalignment[\v!middle]},
\c!after={\stopalignment},
\c!title=,
\c!author=,
\c!date=\currentdate]
\protect
\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[documenttitle]}]
[{\getmarking[documentauthor]}]
\starttext
\placetitle
...
\stoptext
Wolfgang
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Wiki recepy for Document Titles does not work
2009-06-26 9:39 ` Wolfgang Schuster
@ 2009-06-26 9:51 ` Gerben Wierda
2009-06-26 9:58 ` Wolfgang Schuster
0 siblings, 1 reply; 9+ messages in thread
From: Gerben Wierda @ 2009-06-26 9:51 UTC (permalink / raw)
To: mailing list for ConTeXt users
On 26 Jun 2009, at 11:39, Wolfgang Schuster wrote:
>
> Am 26.06.2009 um 11:11 schrieb Gerben Wierda:
>
>> 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?
>
>
> Try this:
>
> \unprotect
>
> \definesystemvariable {title}
>
> \definemarking[documenttitle]
> \definemarking[documentauthor]
> \definemarking[documentdate]
>
> \def\setuptitle
> {\dodoubleempty\dosetuptitle}
>
> \def\dosetuptitle[#1][#2]%
> {\ifsecondargument
> \def\dodosetuptitle##1{\getparameters[\??title##1][#2]}%
> \processcommalist[#1]\dodosetuptitle
> \else
> \getparameters[\??title][#1]%
> \fi}
>
> \def\placetitle
> {\dosingleempty\doplacetitle}
>
> \def\doplacetitle[#1]%
> {\iffirstargument
> \getparameters[\??title][#1]%
> \fi
> \def\dodoplacetitle##1%
> {\marking[document##1]{\getvalue{\??title##1}}%
> \blank[\getvalue{\??title##1\c!spacebefore}]%
> \doattributes{\??dt##1}\c!style\c!color\getvalue{\??title##1}%
> \blank[\getvalue{\??title##1\c!spaceafter}]}%
> \@@titlebefore
> \processcommalist[\c!title,\c!author,\c!date]\dodoplacetitle
> \@@titleafter}
>
> \setuptitle
> [\c!title]
> [\c!style=\tfd,
> \c!color=,
> \c!spacebefore={\v!force,2*\v!big},
> \c!spaceafter={3*\v!medium}]
>
> \setuptitle
> [\c!author,\c!date]
> [\c!style=\tfa,
> \c!color=,
> \c!spacebefore={2*\v!medium},
> \c!spaceafter={3*\v!medium}]
>
> \setuptitle
> [\c!before={\startalignment[\v!middle]},
> \c!after={\stopalignment},
> \c!title=,
> \c!author=,
> \c!date=\currentdate]
>
> \protect
>
> \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[documenttitle]}]
> [{\getmarking[documentauthor]}]
>
> \starttext
>
> \placetitle
>
> ...
>
> \stoptext
>
> Wolfgang
Ends with:
begin file foo at line 11
! Undefined control sequence.
<argument> \??dt
\c!title
\doattributes ...ibutes \endgroup \fi \ifcsname #1
#2\endcsname \@EA
\doconve...
\dodoplacetitle ...#1}\c!style \c!color \getvalue
{\??title #1}\blank
[\getv...
\next1 #1,->\dodoplacetitle {#1}
\doprocesscommaitem
<argument> \relax \c!title ,
\c!author ,\c!date
\doprocesscommalist ...aitem \gobbleoneargument #1
,]\relax \global
\advance ...
...
l.14
G
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Wiki recepy for Document Titles does not work
2009-06-26 9:51 ` Gerben Wierda
@ 2009-06-26 9:58 ` Wolfgang Schuster
2009-06-26 10:22 ` Gerben Wierda
0 siblings, 1 reply; 9+ messages in thread
From: Wolfgang Schuster @ 2009-06-26 9:58 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 26.06.2009 um 11:51 schrieb Gerben Wierda:
>> \def\doplacetitle[#1]%
>> {\iffirstargument
>> \getparameters[\??title][#1]%
>> \fi
>> \def\dodoplacetitle##1%
>> {\marking[document##1]{\getvalue{\??title##1}}%
>> \blank[\getvalue{\??title##1\c!spacebefore}]%
>> \doattributes{\??dt##1}\c!style\c!color\getvalue{\??title##1}%
\doattributes{\??title##1}\c!style\c!color\getvalue{\??title##1}%
>> \blank[\getvalue{\??title##1\c!spaceafter}]}%
>> \@@titlebefore
>> \processcommalist[\c!title,\c!author,\c!date]\dodoplacetitle
>> \@@titleafter}
>
> Ends with:
>
> begin file foo at line 11
> ! Undefined control sequence.
> <argument> \??dt
> \c!title
Fix the line above.
Wolfgang
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Wiki recepy for Document Titles does not work
2009-06-26 9:58 ` Wolfgang Schuster
@ 2009-06-26 10:22 ` Gerben Wierda
2009-06-26 11:07 ` Wolfgang Schuster
0 siblings, 1 reply; 9+ messages in thread
From: Gerben Wierda @ 2009-06-26 10:22 UTC (permalink / raw)
To: mailing list for ConTeXt users
On 26 Jun 2009, at 11:58, Wolfgang Schuster wrote:
>
> Am 26.06.2009 um 11:51 schrieb Gerben Wierda:
>
>>> \def\doplacetitle[#1]%
>>> {\iffirstargument
>>> \getparameters[\??title][#1]%
>>> \fi
>>> \def\dodoplacetitle##1%
>>> {\marking[document##1]{\getvalue{\??title##1}}%
>>> \blank[\getvalue{\??title##1\c!spacebefore}]%
>>> \doattributes{\??dt##1}\c!style\c!color\getvalue{\??title##1}%
>
> \doattributes{\??title##1}\c!style\c!color\getvalue{\??title##1}%
>
>>> \blank[\getvalue{\??title##1\c!spaceafter}]}%
>>> \@@titlebefore
>>> \processcommalist[\c!title,\c!author,\c!date]\dodoplacetitle
>>> \@@titleafter}
>>
>> Ends with:
>>
>> begin file foo at line 11
>> ! Undefined control sequence.
>> <argument> \??dt
>> \c!title
>
> Fix the line above.
Ends with:
! Argument of \getvalue has an extra }.
<inserted text>
\par
<to be read again>
}
\doattributes ...name #1#2\@EA \endcsname \fi {#4}
\dostopattributes
\dodoplacetitle ...#1}\c!style \c!color \getvalue
{\??title #1}\blank
[\getv...
\next1 #1,->\dodoplacetitle {#1}
\doprocesscommaitem
<argument> \relax \c!title ,
\c!author ,\c!date
...
l.14
G
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Wiki recepy for Document Titles does not work
2009-06-26 10:22 ` Gerben Wierda
@ 2009-06-26 11:07 ` Wolfgang Schuster
2009-06-26 12:08 ` Gerben Wierda
0 siblings, 1 reply; 9+ messages in thread
From: Wolfgang Schuster @ 2009-06-26 11:07 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 26.06.2009 um 12:22 schrieb Gerben Wierda:
> On 26 Jun 2009, at 11:58, Wolfgang Schuster wrote:
>
>> Am 26.06.2009 um 11:51 schrieb Gerben Wierda:
>>
>>>> \def\doplacetitle[#1]%
>>>> {\iffirstargument
>>>> \getparameters[\??title][#1]%
>>>> \fi
>>>> \def\dodoplacetitle##1%
>>>> {\marking[document##1]{\getvalue{\??title##1}}%
>>>> \blank[\getvalue{\??title##1\c!spacebefore}]%
>>>> \doattributes{\??dt##1}\c!style\c!color\getvalue{\??title##1}%
>>
>> \doattributes{\??title##1}\c!style\c!color\getvalue{\??title##1}%
\doattributes{\??title##1}\c!style\c!color{\getvalue{\??title##1}}%
> Ends with: ...
This should work now.
Wolfgang
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Wiki recepy for Document Titles does not work
2009-06-26 11:07 ` Wolfgang Schuster
@ 2009-06-26 12:08 ` Gerben Wierda
0 siblings, 0 replies; 9+ messages in thread
From: Gerben Wierda @ 2009-06-26 12:08 UTC (permalink / raw)
To: mailing list for ConTeXt users
On 26 Jun 2009, at 13:07, Wolfgang Schuster wrote:
>
> Am 26.06.2009 um 12:22 schrieb Gerben Wierda:
>
>> On 26 Jun 2009, at 11:58, Wolfgang Schuster wrote:
>>
>>> Am 26.06.2009 um 11:51 schrieb Gerben Wierda:
>>>
>>>>> \def\doplacetitle[#1]%
>>>>> {\iffirstargument
>>>>> \getparameters[\??title][#1]%
>>>>> \fi
>>>>> \def\dodoplacetitle##1%
>>>>> {\marking[document##1]{\getvalue{\??title##1}}%
>>>>> \blank[\getvalue{\??title##1\c!spacebefore}]%
>>>>> \doattributes{\??dt##1}\c!style\c!color\getvalue{\??title##1}%
>>>
>>> \doattributes{\??title##1}\c!style\c!color\getvalue{\??title##1}%
>
> \doattributes{\??title##1}\c!style\c!color{\getvalue{\??title##1}}%
>
>> Ends with: ...
>
> This should work now.
Yes, it does. Thanks.
G
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2009-06-26 12:08 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-25 9:28 Document Titles Gerben Wierda
2009-06-25 9:49 ` Wolfgang Schuster
2009-06-26 9:11 ` Wiki recepy for Document Titles does not work Gerben Wierda
2009-06-26 9:39 ` Wolfgang Schuster
2009-06-26 9:51 ` Gerben Wierda
2009-06-26 9:58 ` Wolfgang Schuster
2009-06-26 10:22 ` Gerben Wierda
2009-06-26 11:07 ` Wolfgang Schuster
2009-06-26 12:08 ` Gerben Wierda
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).