Changes

Jump to navigation Jump to search
319 bytes removed ,  09:14, 30 August 2020
no edit summary
<?xml version='1.0'?>
<!-- this file was generated on 2020-08-20T09:05 -->
<cd:commandgroup generated="yes" name="margindata" xmlns:cd="http://wiki.contextgarden.net/commanddoc/20200807">
<cd:shortdesc><!-- a short command summary goes here -->
The instances of <tt>\<i>margindata</i></tt> are used for placing fragments outside of the regular running text.
</cd:shortdesc>
</cd:command>
</cd:variants>
<cd:description>Place a paragraph in the margin or edge region.
</cd:description>
<cd:examples><cd:exampletitle=""><texcode>
\inmargin{\externalfigure
[hass23g]
</texcode>
</cd:example> <cd:example title="margintext example"><context source="yes">
\setuppapersize[A8,landscape][A8,landscape]
\setuplayout[leftmargin=2.5cm,
leftmargindistance=0.2cm,
backspace=2.9cm,
\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.
</context>
</cd:example><cd:example title="Use in titles">Hans wrote that "using inmargin inside a title is sort of unpredictable" and that for titles {{cmd|margintitle}} is the way to go. {{todobug|margintitle is currently undocumented, which is why its example is included here.}}
<context source="yes">
\setuppapersize[A8,landscape][A8,landscape]
\setuplayout[leftmargin=2.5cm,
leftmargindistance=0.2cm,
backspace=2.9cm,
\showframe
\starttext
\margintitle{a special command}
\section{section title}
\stoptext
</context>
</cd:example></cd:examples>
<cd:notes>
<cd:note author="[[User:Taco|Taco]] ([[User talk:Taco|talk]])" date="20:50, 20 August 2020 (CEST)">In [[MkII]] {{cmd|setupmargindata}} was called <code>\setupinmargin</code> </cd:note></cd:notes>
<cd:seealso>
<!-- one or more of these:
<cd:commandref name="xx"></cd:commandref>
<cd:wikipage page="xx"></cd:wikipage>
<cd:url url="https://xx"></cd:url>
<cd:manual pdf="xx"></cd:manual>
<cd:source file="xx"></cd:source>
-->
<cd:commandref name="definemargindata" originator="system"></cd:commandref>
<cd:commandref name="setupmargindata" originator="system"></cd:commandref>
<cd:commandref name="setupmarginframed" originator="system"></cd:commandref>
<cd:source file="typo-mar.mkiv" originator="system"></cd:source> <cd:wikipage originator="system" page="Category:Structure"></cd:wikipage> <cd:wikipage page="Layout"></cd:wikipage> <cd:commandref name="margintitle"></cd:commandref></cd:seealso>
</cd:commandgroup>

Navigation menu