Command/startdocument

From ConTeXt wiki
Jump to: navigation, search

\startdocument

Syntax

\startdocument[...] ... \stopdocument
[...] name


Description

Example

\definenamespace
   [documentauthor] % name of internal varialbles
   [type=module,
    name=author, 
    command=yes, % Create \defineauthor
    style=yes,   % Create \useauthorstyleandcolor 
    setup=list,  % Create \setupauthor
    parent=documentauthor,
  ]

\define[1]\useauthor
    {\edef\currentauthor{#1}%
     {\useauthorstyleandcolor{style}{color}
         \authorparameter{name}}%
     \space
     (\mono{\authorparameter{email}})%
     \doifsomething{\authorparameter{affiliation}}{%
         \space\authorparameter{affiliation}}
     \endgraf
    }

\startsetups document:start
  \startalignment[middle]
    {\ssbfc\setupinterlinespace
        \documentvariable{title}
     \endgraf}
     \blank[medium]
     \processcommacommand[\documentvariable{author}]\useauthor
     \blank[big]
   \stopalignment
\stopsetups

\startsetups document:stop
     % If you want to place something at the end of a document
\stopsetups

\setupauthor[style=bold]
\defineauthor[john][name={John Doe}, email={john.doe@gmail.com}, affiliation={TUG}]
\defineauthor[jill][name={Jill Hough}, email={this@that.com}, color=red]

\setupdocument
     [title={Be this the Verse},
      author={john,jill}]

\startdocument
    ....
\stopdocument

See also

Help from ConTeXt-Mailinglist/Forum

All issues with:

C O N T E X T G A R D E N

Personal tools
Namespaces
Variants
Actions
Help
External Help
Installation
Navigation
Toolbox