Changes

Jump to navigation Jump to search
m
compile example
}}
== [[Help:Reference|Syntax]] (autogenerated) ==<table cellspacing="4" cellpadding="2" class="cmd"> <tr> <td colspan="2" class="cmd"syntax>\setupmargindata<span class="first" style="color:red;">[...]</span><span class="second" >[...,...=...,...]</span></td> </tr> <tr valign="top" class="first"> <td class="cmd">[...]</td> <td>left right number </td> </tr> <tr valign="top" class="second"> <td class="cmd">[[Command/keyword:location|location]]</td> <td>[[Command/value:flushleft|flushleft]] [[Command/value:flushright|flushright]] [[Command/value:both|both]] </td> </tr> <tr valign="top" class="second"> <td class="cmd">[[Command/keyword:style|style]]</td> <td>[[Command/value:normal|normal]] [[Command/value:bold|bold]] [[Command/value:slanted|slanted]] [[Command/value:boldslanted|boldslanted]] [[Command/value:type|type]] [[Command/value:cap|cap]] [[Command/value:small...|small...]] [[Command/value:command|command]] </td> </tr> <tr valign="top" class="second"> <td class="cmd">[[Command/keyword:before|before]]</td> <td>[[Command/value:command|command]] </td> </tr> <tr valign="top" class="second"> <td class="cmd">[[Command/keyword:after|after]]</td> <td>[[Command/value:command|command]] </td> </tr> <tr valign="top" class="second"> <td class="cmd">[[Command/keyword:align|align]]</td> <td>[[Command/value:inner|inner]] [[Command/value:outer|outer]] [[Command/value:left|left]] [[Command/value:right|right]] [[Command/value:middle|middle]] [[Command/value:normal|normal]] [[Command/value:no|no]] [[Command/value:yes|yes]] </td> </tr> <tr valign="top" class="second"> <td class="cmd">[[Command/keyword:line|line]]</td> <td>[[Command/value:number|number]] </td> </tr> <tr valign="top" class="second"> <td class="cmd">[[Command/keyword:distance|distance]]</td> <td>[[Command/value:dimension|dimension]] </td> </tr> <tr valign="top" class="second"> <td class="cmd">[[Command/keyword:separator|separator]]</td> <td>[[Command/value:text|text]] </td> </tr> <tr valign="top" class="second"> <td class="cmd">[[Command/keyword:width|width]]</td> <td>[[Command/value:dimension|dimension]] </td> </tr> <tr valign="top" class="second"> <td class="cmd">[[Command/keyword:distance|distance]]</td> <td>[[Command/value:dimension|dimension]] </td> </tr> <tr valign="top" class="second"> <td class="cmd">[[Command/keyword:stack|stack]]</td> <td>[[Command/value:yes|yes]] [[Command/value:no|no]] </td> </tr> <tr valign="top" class="second"> <td class="cmd">[...,...=...,...]</td> <td>see [[Command/setupframed|\setupframed]] </td> </tr></tablesyntax>
== Description ==
Stack option is used to emulate LaTeX's LaTeX’s marginpars (they're they’re considered floats, hence the resulting margin notes do not overlap).
The first bracket can be used to provide different setups for different margin text types. It defines which type of text the following parameters apply to. So the following code defines that any text placed in the margin using <code>\inright{...}</code> will be slanted:
 
<texcode>
\setupmargindata[right][style=slanted]
The previous code does <i>not</i> alter the location of the <code>\inmargin</code> command. To do that you would use:
 
<texcode>
\setupmargindata[location=right,style=slanted]
The following code inserts text in the right-hand page margin:
<texcodecontext source="yes">\setuppapersize[A6,landscape]\setupmargindata[inmargin][location=right,style=italic]
\starttext
adjust your margins to accommodate the type.
\stoptext
</texcodecontext>
== See also ==
<!-- something like {{cmd|goto}} -->
* {{cmd|inmargin}}
* {{cmd|inouter}}
== Help from ConTeXt-Mailinglist/Forum ==

Navigation menu