Modules/MyWay

From ConTeXt wiki
Jump to navigationJump to search

<Modules|


NOTE: This is just a copy of How to make a MyWay for the ease of online viewing

My Way is a ConTeXt related publication, in most cases short introductions to new functionality. The style may be used by users for providing similar documents, but preferably not for other purposes, since it may confuse readers in their expectations.

We’ve chosen a layout which is more functional than beautiful. This layout provides several text areas: headers and footers, margins and edges as well as a main text area. The surrounding (gray) makes the main page (which is slightly smaller than A4) stand out and is suitable for viewing in spread mode.

The documents produced at Pragma ADE are called ThisWay, user documents gets the title My Way. The Pragma ADE issues are numbered. We strongly advise you not to use the mag- prefix for your issues, since this may lead to clashes with files distributed by Pragma ADE.

A sample MyWay document looks as follows


\usemodule[mag-01]

% Substitute the text between <+...+> 
\setvariables
  [magazine]
  [      title=<+Title of MyWay+>,
        author=<+Name of author+>,
   affiliation=<+Affiliation of author+>,
          date=<+date of publication+>,
  ]

\startbuffer[abstract]
<+Abstract of MyWay+>
\stopbuffer

\setupheadertexts[section] 

\starttext \setups [titlepage] \setups [title]

<+ Write article here +>

\setups [listing] %If you want the source listing of the module to be printed
\setups [lastpage] \stoptext