Hello all, How do I define the \setuptitlepage and \placetitlepage commands in the environment file? These commands are used as shown in the example below. %%%%%%%%%%%%%%%%%%%% \environment docenv \setuptitlepage[author=weare, name=thisismyname, draft=yes] \starttext \placetitlepage \chapter{First} kasj dlkasjdfl asdf asdfkjaslfd jalsfd \stoptext %%%%%%%%%%%%%%%%%%%% Thank you, Marius
Am 05.02.10 09:03, schrieb Marius:
Hello all,
How do I define the \setuptitlepage and \placetitlepage commands in the environment file? These commands are used as shown in the example below.
Since you do not explain what do you expect from both commands it's not possible to give you an answer but you can find on the wiki [1] a example for a \setuptitle and \placetitle command which can be copied and used in your document. [1] http://wiki.contextgarden.net/Document_Titles#In_ConTeXt:_A_more_advanced_so... Wolfgang
Thank you for the link, the answer to my question was as in the example you gave, but with a single argument. The solution to my problem given below works, but I can't find the answer to the following question. What is the difference between \dosingleempty and \dosingleargument ? %%%%%%%%%%%%%%%%%%%%%%% \unprotect \definesystemvariable {dt} \def\setuptitle {\dosingleempty\dosetuptitle} \def\dosetuptitle[#1]% {\def\dodosetuptitle##1% {\getparameters[\??dt][#1]}% \processcommalist[#1]\dodosetuptitle} \def\placetitle {\startalignment[\v!middle] \blank[\v!force,2*\v!big] \@@dttitle \blank[3*\v!medium] \@@dtauthor \blank[2*\v!medium] \@@dtdate \blank[3*\v!medium] \stopalignment} \setuptitle [\c!title=, \c!author=, \c!date=\currentdate] \protect %%%%%%%%%%%%%%%%%%%% On Fri, Feb 5, 2010 at 11:29 AM, Wolfgang Schuster < schuster.wolfgang@googlemail.com> wrote:
Am 05.02.10 09:03, schrieb Marius:
Hello all,
How do I define the \setuptitlepage and \placetitlepage commands in the environment file? These commands are used as shown in the example below.
Since you do not explain what do you expect from both commands it's not possible to give you an answer but you can find on the wiki [1] a example for a \setuptitle and \placetitle command which can be copied and used in your document.
[1] http://wiki.contextgarden.net/Document_Titles#In_ConTeXt:_A_more_advanced_so...
Wolfgang
On 5-2-2010 14:57, Marius wrote:
Thank you for the link, the answer to my question was as in the example you gave, but with a single argument. The solution to my problem given below works, but I can't find the answer to the following question. What is the difference between \dosingleempty and \dosingleargument ?
the first one does not complain when no argument is given ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
On 5-2-2010 10:29, Wolfgang Schuster wrote:
Am 05.02.10 09:03, schrieb Marius:
Hello all,
How do I define the \setuptitlepage and \placetitlepage commands in the environment file? These commands are used as shown in the example below.
Since you do not explain what do you expect from both commands it's not possible to give you an answer but you can find on the wiki [1] a example for a \setuptitle and \placetitle command which can be copied and used in your document.
[1] http://wiki.contextgarden.net/Document_Titles#In_ConTeXt:_A_more_advanced_so...
using no macros ... wikifyable ... \startsetups titlepage \startstandardmakeup \definedfont[SerifBold at 40pt] \setupinterlinespace \getvariable{document}{title} \vfill \definedfont[SerifBold at 20pt] \setupinterlinespace \getvariable{document}{author} \stopstandardmakeup \stopsetups \setvariables [document] [title=Whatever, author=Not Me] \setvariables [whatever] [set={\setup[whateverpage]}] \startsetups whateverpage \startstandardmakeup \definedfont[SerifBold at 40pt] \setupinterlinespace \getvariable{whatever}{title} \vfill \stopstandardmakeup \stopsetups \starttext \setups[titlepage] \setvariables[whatever][title=One] \setvariables[whatever][title=Two] \stoptext in the whatever case each setvariables will trigger a setup, so one has a sort of macro with key/value support ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
On 5-2-2010 19:08, Wolfgang Schuster wrote:
Am 05.02.10 18:53, schrieb Hans Hagen:
\setvariables [whatever] [set={\setup[whateverpage]}] nice feature for setvariables lovers :)
yes, for those getting the creeps of #1 an dso btw, i'm sure that you've seen \starttexdefinition blabla #1 #2 which like setups ignores spaces so one can have readable macros Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
On 5-2-2010 19:21, Wolfgang Schuster wrote:
Am 05.02.10 19:19, schrieb Hans Hagen:
btw, i'm sure that you've seen
\starttexdefinition blabla #1 #2
which like setups ignores spaces so one can have readable macros i was the one who requested the parameterless version
\starttexdefinition commandonly
ah, seems i need a memory upgrade Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (3)
-
Hans Hagen
-
Marius
-
Wolfgang Schuster