Changes

Jump to navigation Jump to search
4,047 bytes removed ,  01:23, 25 July 2016
m
Replaced content with "The {{cmd|setupinmargin}} command has been renamed to {{cmd|setupinmargindata}}."
{{Reference|name=setupinmargin|attributes=}} == [[Help:Reference|Syntax]] ==<table cellspacing="4" cellpadding="2" class="cmd"> <tr> <td colspan="2" class="cmd">\setupinmargin<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></table> == Description == Stack option is used to emulate LaTeX's marginpars (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>\setupinmargin[right][style=slanted]</texcode> The previous code does <i>not</i> alter the location of the <code>\inmargin</code> command. To do that you would use:<texcode>\setupinmargin[location=right,style=slanted]</texcode> == Example == Note that {{cmd|setupinmargin}} command has been renamed to {{cmd|setupinmargindata}}. The following code inserts text in the right-hand page margin: <texcode>\setupmargindata[inmargin][location=right] \starttextThis is an example of a simple margin note set in the slanted fontof the document. If used correctly, the note \inmargin{Here is asimple margin note.} should print on the side with the command\type {\inmargin} placed in the text. You will of course want toadjust your margins to accommodate the type.\stoptext</texcode>  == See also ==<!-- something like {{cmd|goto}} --> == Help from ConTeXt-Mailinglist/Forum ==All issues with:{{Forum|{{SUBPAGENAME}}}} [[Category:Command/Margins|setupinmargin]]
419

edits

Navigation menu