Difference between revisions of "Command/setupinmargin"

From Wiki
Jump to navigation Jump to search
m (Text replace - "Category:(.*)" to "Category:Command/$1")
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Reference
+
The {{cmd|setupinmargin}} command has been renamed to {{cmd|setupmargindata}}.
|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 ==
 
 
 
<texcode>
 
% 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
 
</texcode>
 
 
 
 
 
== See also ==
 
<!-- something like [[cmd:goto|\goto]] -->
 
 
 
== Help from ConTeXt-Mailinglist/Forum ==
 
All issues with:
 
{{Forum|{{SUBPAGENAME}}}}
 
 
 
[[Category:Command/Command/Margins|setupinmargin]]
 

Latest revision as of 15:49, 25 July 2016

The \setupinmargin command has been renamed to \setupmargindata.