Command/ margindata

From Wiki
< Command(Redirected from Command/inmargin)
Jump to navigation Jump to search


\margindata

Summary

The instances of \margindata are used for placing fragments outside of the regular running text.

Instances

\inleftmargindefined as \definemargindata[inleftmargin][left][margin=margin,width=\leftmarginwidth,style=,color=]
\inrightmargindefined as \definemargindata[inrightmargin][right][margin=margin,width=\rightmarginwidth,style=,color=]
\inoutermargindefined as \definemargindata[inoutermargin][outer][margin=margin,width=\outermarginwidth,style=,color=]
\ininnermargindefined as \definemargindata[ininnermargin][inner][margin=margin,width=\innermarginwidth,style=,color=]
\inleftedgedefined as \definemargindata[inleftedge][left][margin=edge,width=\leftedgewidth,style=,color=,category=edge]
\inrightedgedefined as \definemargindata[inrightedge][right][margin=edge,width=\rightedgewidth,style=,color=,category=edge]
\inouteredgedefined as \definemargindata[inouteredge][outer][margin=edge,width=\outeredgewidth,style=,color=,category=edge]
\ininneredgedefined as \definemargindata[ininneredge][inner][margin=edge,width=\inneredgewidth,style=,color=,category=edge]
\atleftmargindefined as \definemargindata[atleftmargin][left][margin=normal,width=\leftmarginwidth,style=,color=]
\atrightmargindefined as \definemargindata[atrightmargin][right][margin=normal,width=\rightmarginwidth,style=,color=]
\inleftdefined as \definemargindata[inleft][left][margin=margin,width=\leftmarginwidth,align=flushright]
\inrightdefined as \definemargindata[inright][right][margin=margin,width=\rightmarginwidth,align=flushleft]
\inouterdefined as \definemargindata[inouter][outer][margin=margin,width=\outermarginwidth,align=inner]
\ininnerdefined as \definemargindata[ininner][inner][margin=margin,width=\innermarginwidth,align=outer]
\inmargindefined as \definemargindata[inmargin][left][margin=margin,width=\leftmarginwidth,align=flushright]
\inotherdefined as \definemargindata[inother][right][margin=margin,width=\rightmarginwidth,align=flushleft]
\margintextdefined as \definemargindata[margintext][left][margin=margin,width=\leftmarginwidth,align=flushright,stack=yes]

Settings instance

\MARGINDATA[...=...,...][...=...,...]{...}
referencereference
...=...,...inherits from \setupmargindata
...=...,...inherits from \setupmarginframed
{...}content

Description

Place a paragraph in the margin or edge region.

Examples

Example 1

\inmargin{\externalfigure
[hass23g]
[width=\marginwidth]}


margintext example

\setuppapersize[A8,landscape][A8,landscape]
\setuplayout[leftmargin=2.5cm,
             leftmargindistance=0.2cm,
             backspace=2.9cm,
             width=4cm,
             rightmargin=0cm]
\showframe

\starttext
\margintext{I have discovered a truly
            marvelous proof ...  but
            this margin is too narrow
            to contain it.}
There is no \math{n > 2} to solve
\startformula
a^n + b^n = c^n.
\stopformula
\stoptext


Use in titles

Hans wrote that "using inmargin inside a title is sort of unpredictable" and that for titles \margintitle is the way to go.


Bug report: margintitle is currently undocumented, which is why its example is included here. (See: Bug List)


\setuppapersize[A8,landscape][A8,landscape]
\setuplayout[leftmargin=2.5cm,
             leftmargindistance=0.2cm,
             backspace=2.9cm,
             width=4cm,
             rightmargin=0cm]
\showframe

\starttext
\margintitle{a special command}
\section{section title}
\stoptext

Notes

  • By Taco (talk) on 20:50, 20 August 2020 (CEST):
In MkII \setupmargindata was called \setupinmargin

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: