How to make a MyWay

From Wiki
Jump to navigation Jump to search

My Way is an online publication whose articles are primarily short introductions to specific aspects of ConTeXt. To give My Way articles a consistent look, they are formatted in a specific style that is set up by the magazine-basic module. This style should be used for My Way articles only, since using it for other documents might confuse readers in their expectations.

Formatting an article for My Way is simple. Just do three things:

  1. Use the magazine-basic module (which is included in the ConTeXt distrubtion, so it doesn't need installing).
  2. Write an abstract and enclose it in \startbuffer[abstract] and \stopbuffer.
  3. Specify the article's metadata (title, author, affiliation if there is one, and date) as keyword-value options for \startdocument.

With the magazine-basic module, the abstract actually doesn't appear in the article anywhere, but you should still include it since it might be used in some other or later version of the My Way style.

Here's a minimal example of a My Way article:


This is a very abstract abstract.\ldots

\startdocument[title={Example My Way article}, author={Arthur Author}, affiliation={University of the Round Table}, date={October 20, 2020}]

% put the article's text here
\input knuth


By modifying this example, you can easily format your own article for My Way. For more information and inspiration, look through the source code that is shown at the end of recent This Way articles.

NOTE: What follows below is a copy of the original article How to make a MyWay from 2003, so it may be outdated, and the details may no longer be correct.

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


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

<+Abstract of MyWay+>


\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