Difference between revisions of "Command/defineplacement"

From Wiki
Jump to navigation Jump to search
(Created page with "Documentation for \defineplacement")
 
 
Line 1: Line 1:
 
<cd:commandgroup name="defineplacement" xmlns:cd="http://wiki.contextgarden.net/commanddoc/20200807">
 
<cd:commandgroup name="defineplacement" xmlns:cd="http://wiki.contextgarden.net/commanddoc/20200807">
<cd:shortdesc>The command <tt>\defineplacement</tt> defines {{cmd|placement}} instances.
+
<cd:shortdesc>The command <tt>\defineplacement</tt> defines {{gen|placement}} instances.
 
</cd:shortdesc>
 
</cd:shortdesc>
 
<cd:variants>
 
<cd:variants>
Line 20: Line 20:
 
   </cd:command>
 
   </cd:command>
 
</cd:variants>
 
</cd:variants>
<cd:description><!-- the long description of the command goes here -->
+
<cd:description>The command <tt>\defineplacement</tt> defines {{gen|placement}} instances as well as their environment form {{gen|startplacement}}.
</cd:description>
+
 
 +
{{bug|the definition for {{gen|startplacement}} gets lost somewhere during generation of the command list. It is present in <code>context-en.xml</code>}}
 +
 
 +
{{bug|the source file is <code>pack-mis.mkvi</code>, not <code>pack-mis.mkiv</code>}}</cd:description>
 
<cd:examples><cd:example title=""><context source="yes">
 
<cd:examples><cd:example title=""><context source="yes">
 +
\setuppapersize[A7,landscape]
 
\setuplayout[grid=on]
 
\setuplayout[grid=on]
 
\showgrid
 
\showgrid
 +
\starttext
 
\defineplacement[upped][grid=line]
 
\defineplacement[upped][grid=line]
  
Line 33: Line 38:
  
 
\placeupped{but this is not}
 
\placeupped{but this is not}
 +
 +
Text continues here
 +
\stoptext
 
</context>
 
</context>
 
</cd:example></cd:examples>
 
</cd:example></cd:examples>
<cd:notes></cd:notes>
+
<cd:notes>
 +
<cd:note author="Taco" date="2020-09-11T22:26:11+0200">
 +
The grid option was broken in the ConTeXt 2020.06.30 LMTX on the wiki, resulting in a non-corrected placement. This was fixed soon after.
 +
</cd:note></cd:notes>
 
<cd:seealso>
 
<cd:seealso>
 
<cd:commandref name="setupplacement" originator="system"></cd:commandref>
 
<cd:commandref name="setupplacement" originator="system"></cd:commandref>
 
<cd:source file="pack-mis.mkiv" originator="system"></cd:source>
 
<cd:source file="pack-mis.mkiv" originator="system"></cd:source>
<cd:wikipage originator="system" page="Category:Layout"></cd:wikipage></cd:seealso>
+
<cd:wikipage originator="system" page="Category:Layout"></cd:wikipage>
 +
<cd:source file="pack-mis.mkvi"></cd:source></cd:seealso>
 
</cd:commandgroup>
 
</cd:commandgroup>

Latest revision as of 20:28, 11 September 2020


\defineplacement

Summary

The command \defineplacement defines placement instances.

Settings

\defineplacement[...][...][...=...,...]
[...]name
[...]name
...=...,...inherits from \setupplacement

Description

The command \defineplacement defines placement instances as well as their environment form startplacement.

Bug report: the definition for startplacement gets lost somewhere during generation of the command list. It is present in context-en.xml (See: Bug List)



Bug report: the source file is pack-mis.mkvi, not pack-mis.mkiv (See: Bug List)


Examples

Example 1

\setuppapersize[A7,landscape]
\setuplayout[grid=on]
\showgrid
\starttext
\defineplacement[upped][grid=line]

\input zapf

\kern 3pt % force nongrid
this is off

\placeupped{but this is not}

Text continues here
\stoptext

Notes

  • By Taco on 2020-09-11T22:26:11+0200:
The grid option was broken in the ConTeXt 2020.06.30 LMTX on the wiki, resulting in a non-corrected placement. This was fixed soon after.

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: