Changes

Jump to navigation Jump to search
Created page with "{{Reference |name={{\simplealignedbox}} |attributes= }} == Syntax == <table cellspacing="4" cellpadding="2" class="cmd"> <tr> <td colspan="2" class="cmd..."
{{Reference
|name={{\simplealignedbox}}
|attributes=
}}

== [[Help:Reference|Syntax]] ==
<table cellspacing="4" cellpadding="2" class="cmd">
<tr>
<td colspan="2" class="cmd">\{{\simplealignedbox}}<!--
--><span class="first">{...}</span><!--
--><span class="second">{...}</span><!--
--><span class="third">{...}</span><!--
--></td>
</tr>
<tr valign="top" class="first">
<td class="cmd">{...}</td>
<td>width</td>
</tr>
<tr valign="top" class="second">
<td class="cmd">{...}</td>
<td>alignment: ''left | right | flushleft | flushright | middle''</td>
</tr>
<tr valign="top" class="third">
<td class="cmd">{...}</td>
<td>content</td>
</tr>
</table>

== Description ==

The command is a simple wrapper around \hbox with a fixed width and the possibility to align the content either to the left, right or centred within the box.

== Example ==
<context source=yes mode=mkiv>
\ruledhbox{\simplealignedbox{3cm}{flushleft}{TEXT}}
\ruledhbox{\simplealignedbox{3cm}{flushright}{TEXT}}
\ruledhbox{\simplealignedbox{3cm}{middle}{TEXT}}
\ruledhbox{\simplealignedbox{3cm}{left}{TEXT}}
\ruledhbox{\simplealignedbox{3cm}{right}{TEXT}}
</context>

== See also ==
<!-- something like this:
* {{cmd|setuphead}}
* {{src|strc-sec.mkiv#l299}}
-->

== Help from ConTeXt-Mailinglist/Forum ==
All issues with:
{{Forum|{{\simplealignedbox}}}}

[[Category:Commands|{{\simplealignedbox}}]]
105

edits

Navigation menu