Command/setupinmargin

From Wiki
< Command
Revision as of 22:11, 28 May 2010 by Yatskovsky (talk | contribs) (→‎Description: stack option explained)
Jump to navigation Jump to search

\setupinmargin

Syntax

\setupinmargin[...][...,...=...,...]
[...] left right number
location flushleft flushright both
style normal bold slanted boldslanted type cap small... command
before command
after command
align inner outer left right middle normal no yes
line number
distance dimension
separator text
width dimension
distance dimension
stack yes no
[...,...=...,...] see \setupframed

Description

Stack option is used to emulate LaTeX's marginpars (they're considered floats, hence the resulting margin notes do not overlap).

Example

% For example:
\setupinmargin[style=slanted]

\starttext

This is an example of a simple margin note set in the slanted font
of the document. If used correctly, the note \inmargin{Here is a
simple margin note.} should print on the side with the command 
\type {\inmargin} placed in the text. You will of course want to 
adjust your margins to accommodate the type.  

\stoptext 


See also