Difference between revisions of "Command/defineframed"

From Wiki
Jump to navigation Jump to search
 
Line 24: Line 24:
 
\defineframed
 
\defineframed
 
   [GreyBg]
 
   [GreyBg]
   [background=color,backgroundcolor=grey3]
+
   [background=color,backgroundcolor=gray]
 
\GreyBg[frame=on]{Hello}
 
\GreyBg[frame=on]{Hello}
  
Line 35: Line 35:
 
<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:wikipage originator="system" page="Keywords:Background"></cd:wikipage>
<cd:wikipage page="Framed"></cd:wikipage></cd:seealso>
+
<cd:wikipage page="Framed"></cd:wikipage>
 +
<cd:commandref name="_framed">for the preexisting instances</cd:commandref></cd:seealso>
 
</cd:commandgroup>
 
</cd:commandgroup>

Latest revision as of 12:39, 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=gray]
\GreyBg[frame=on]{Hello}

Notes

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: