Difference between revisions of "Command/setupmargindata"

From ConTeXt wiki
Jump to navigationJump to search
(Moved the content for \setupmargindata to the correct page)
 
 
(One intermediate revision by one other user not shown)
Line 3: Line 3:
 
|attributes=
 
|attributes=
 
}}
 
}}
 +
 +
== [[Help:Reference|Syntax]] (autogenerated) ==
 +
<syntax>setupmargindata</syntax>
  
 
== [[Help:Reference|Syntax]] ==
 
== [[Help:Reference|Syntax]] ==
Line 96: Line 99:
 
== See also ==
 
== See also ==
 
<!-- something like {{cmd|goto}} -->
 
<!-- something like {{cmd|goto}} -->
 +
* {{cmd|inmargin}}
 +
* {{cmd|inouter}}
  
 
== Help from ConTeXt-Mailinglist/Forum ==
 
== Help from ConTeXt-Mailinglist/Forum ==

Latest revision as of 22:17, 14 November 2019

\setupmargindata

Syntax (autogenerated)

\setupmargindata[...,...][...=...,...]
[...,...]name
strutyes no auto cap fit line default character
commandoneargument
widthdimension
alignsee \setupalign
anchorregion text
locationleft right inner outer
methodtop line first depth height
categorydefault edge
scopelocal global
optiontext paragraph
marginlocal normal margin edge
distancedimension
hoffsetdimension
voffsetdimension
dydimension
bottomspacedimension
thresholddimension
linenumber
stackyes continue
stylestyle command
colorcolor


Syntax

\setupmargindata[...][...,...=...,...]
[...] 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).

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 \inright{...} will be slanted:

\setupmargindata[right][style=slanted]

The previous code does not alter the location of the \inmargin command. To do that you would use:

\setupmargindata[location=right,style=slanted]

Example

The following code inserts text in the right-hand page margin:

\setupmargindata[inmargin][location=right]

\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

Help from ConTeXt-Mailinglist/Forum

All issues with: