Difference between revisions of "Command/defineframed"

From Wiki
Jump to navigation Jump to search
(Created page with "Documentation for \defineframed")
 
Line 5: Line 5:
 
   <cd:arguments>
 
   <cd:arguments>
 
     <cd:keywords ordinal="1">
 
     <cd:keywords ordinal="1">
     <cd:keywordsdoc></cd:keywordsdoc>
+
     <cd:keywordsdoc>the new name</cd:keywordsdoc>
 
     <cd:constant type="cd:name"></cd:constant>
 
     <cd:constant type="cd:name"></cd:constant>
 
     </cd:keywords>
 
     </cd:keywords>
 
     <cd:keywords optional="yes" ordinal="2">
 
     <cd:keywords optional="yes" ordinal="2">
     <cd:keywordsdoc></cd:keywordsdoc>
+
     <cd:keywordsdoc>an optional parent framed instance</cd:keywordsdoc>
 
     <cd:constant type="cd:name"></cd:constant>
 
     <cd:constant type="cd:name"></cd:constant>
 
     </cd:keywords>
 
     </cd:keywords>
Line 21: Line 21:
 
<cd:description><!-- the long description of the command goes here -->
 
<cd:description><!-- the long description of the command goes here -->
 
</cd:description>
 
</cd:description>
<cd:examples></cd:examples>
+
<cd:examples><cd:example title=""><context source="yes">
 +
\defineframed
 +
  [GreyBg]
 +
  [background=color,backgroundcolor=grey3]
 +
\GreyBg[frame=on]{Hello}
 +
 
 +
</context>
 +
</cd:example></cd:examples>
 
<cd:notes></cd:notes>
 
<cd:notes></cd:notes>
 
<cd:seealso>
 
<cd:seealso>
Line 27: Line 34:
 
<cd:source file="pack-rul.mkiv" originator="system"></cd:source>
 
<cd:source file="pack-rul.mkiv" originator="system"></cd:source>
 
<cd:wikipage originator="system" page="Category:Rules"></cd:wikipage>
 
<cd:wikipage originator="system" page="Category:Rules"></cd:wikipage>
<cd:wikipage originator="system" page="Keywords:Background"></cd:wikipage></cd:seealso>
+
<cd:wikipage originator="system" page="Keywords:Background"></cd:wikipage>
 +
<cd:wikipage page="Framed"></cd:wikipage></cd:seealso>
 
</cd:commandgroup>
 
</cd:commandgroup>

Revision as of 12:36, 29 August 2020


\defineframed

Summary

The command \defineframed creates a special instance of \framed.

Settings

\defineframed[...][...][...=...,...]
[...]name
[...]name
...=...,...inherits from \setupframed

OptionExplanation
the new name
an optional parent framed instance

Description

Examples

Example 1

\defineframed
  [GreyBg]
  [background=color,backgroundcolor=grey3]
\GreyBg[frame=on]{Hello}

Notes

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: