diff options
author | Context Git Mirror Bot <phg42.2a@gmail.com> | 2016-07-08 17:59:01 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg42.2a@gmail.com> | 2016-07-08 17:59:01 +0200 |
commit | 3691e25e611249750a260ec00aa139ba82a37bca (patch) | |
tree | 0c1bac1c1be87850fec3bc43c25aaccad9f02239 /tex/context/interface/mkiv/i-offset.xml | |
parent | 86659b2416b5513b448fa70329d135e3a8ce165c (diff) | |
download | context-3691e25e611249750a260ec00aa139ba82a37bca.tar.gz |
2016-07-08 17:24:00
Diffstat (limited to 'tex/context/interface/mkiv/i-offset.xml')
-rw-r--r-- | tex/context/interface/mkiv/i-offset.xml | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/tex/context/interface/mkiv/i-offset.xml b/tex/context/interface/mkiv/i-offset.xml new file mode 100644 index 000000000..8e68a3bef --- /dev/null +++ b/tex/context/interface/mkiv/i-offset.xml @@ -0,0 +1,74 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<?context-directive job ctxfile x-setups.ctx ?> + +<cd:interface xmlns:cd="http://www.pragma-ade.com/commands"> + + <cd:command name="setupoffsetbox" file="pack-box.mkiv"> + <cd:arguments> + <cd:assignments list="yes"> + <cd:parameter name="x"> + <cd:constant type="cd:dimension"/> + </cd:parameter> + <cd:parameter name="y"> + <cd:constant type="cd:dimension"/> + </cd:parameter> + <cd:parameter name="leftoffset"> + <cd:constant type="cd:dimension"/> + </cd:parameter> + <cd:parameter name="rightoffset"> + <cd:constant type="cd:dimension"/> + </cd:parameter> + <cd:parameter name="topoffset"> + <cd:constant type="cd:dimension"/> + </cd:parameter> + <cd:parameter name="bottomoffset"> + <cd:constant type="cd:dimension"/> + </cd:parameter> + <cd:parameter name="method"> + <cd:constant type="fixed"/> + </cd:parameter> + <cd:parameter name="width"> + <cd:constant type="cd:dimension"/> + </cd:parameter> + <cd:parameter name="height"> + <cd:constant type="cd:dimension"/> + </cd:parameter> + <cd:parameter name="depth"> + <cd:constant type="cd:dimension"/> + </cd:parameter> + <cd:parameter name="location"> + <cd:resolve name="value-aligned"/> + </cd:parameter> + </cd:assignments> + </cd:arguments> + </cd:command> + + <cd:command name="setupoffset" file="pack-box.mkiv"> + <cd:arguments> + <cd:assignments list="yes"> + <cd:inherit name="setupoffsetbox"/> + </cd:assignments> + </cd:arguments> + </cd:command> + + <cd:command name="offsetbox" file="pack-box.mkiv"> + <cd:arguments> + <cd:assignments list="yes" optional="yes"> + <cd:inherit name="setupoffsetbox"/> + </cd:assignments> + <cd:csname/> + <cd:content/> + </cd:arguments> + </cd:command> + + <cd:command name="offset" file="pack-box.mkiv"> + <cd:arguments> + <cd:assignments list="yes" optional="yes"> + <cd:inherit name="setupoffset"/> + </cd:assignments> + <cd:content/> + </cd:arguments> + </cd:command> + +</cd:interface>
\ No newline at end of file |