![](https://secure.gravatar.com/avatar/29c7bbff49b1599eddb2ec73fd9ffa6e.jpg?s=120&d=mm&r=g)
How does one forces the item nubers to the right. The goal is have the units above each other and not above the tens: < 1> <1> .. not < 9> <9> <10> <10> Could not find it in the command refs of the contextgarden. Hans van der Meer
![](https://secure.gravatar.com/avatar/d39338246f50cca667c8256c313d7cfd.jpg?s=120&d=mm&r=g)
On 2013–03–04 Meer, H. van der wrote:
How does one forces the item nubers to the right. The goal is have the units above each other and not above the tens:
Here's an ugly solution using a box. Maybe there's a more clean solution. \setupitemgroup [itemize] [left=\simplealignedbox{1em}{flushright}] \starttext \startitemize [n, packed, columns] \dorecurse{32}{\startitem foo \stopitem} \stopitemize \stoptext Marco
![](https://secure.gravatar.com/avatar/29c7bbff49b1599eddb2ec73fd9ffa6e.jpg?s=120&d=mm&r=g)
A lucky guess did me look into the code. Whereas I got no results with [align=] it turns out that [itemalign=flushright] does the trick. Spares you the "ugly solution". Maybe someone more apt to do things in the contextgarden, will be so kind as put this there.
Hans van der Meer
On 4 mrt. 2013, at 14:19, Marco Patzer
![](https://secure.gravatar.com/avatar/d39338246f50cca667c8256c313d7cfd.jpg?s=120&d=mm&r=g)
On 2013–03–04 Meer, H. van der wrote:
A lucky guess did me look into the code. Whereas I got no results with [align=] it turns out that [itemalign=flushright] does the trick. Spares you the "ugly solution".
That's indeed much better :)
Maybe someone more apt to do things in the contextgarden, will be so kind as put this there.
Done. Marco
![](https://secure.gravatar.com/avatar/d6e7462bd4209f9c4cd08271985a50df.jpg?s=120&d=mm&r=g)
Hello, kind request - \simplealignedbox is not known to me - could anyone familar add some info to wiki? Best regards, Lukas
\setupitemgroup [itemize] [left=\simplealignedbox{1em}{flushright}]
-- Ing. Lukáš Procházka [mailto:LPr@pontex.cz] Pontex s. r. o. [mailto:pontex@pontex.cz] [http://www.pontex.cz] Bezová 1658 147 14 Praha 4 Tel: +420 244 062 238 Fax: +420 244 461 038
![](https://secure.gravatar.com/avatar/27c34cb91f1e92bd850fe60b3d9ef336.jpg?s=120&d=mm&r=g)
Am 07.03.2013 um 14:40 schrieb Procházka Lukáš Ing. - Pontex s. r. o.
Hello,
kind request - \simplealignedbox is not known to me - could anyone familar add some info to wiki?
With the \simplealignedbox command you can align a given text in a box with a given width, the width of the box is set with the first argument, the alignment with the second and the content with the third argument of the command. Example with all possible alignments: \starttext \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}} \stoptext Wolfgang
![](https://secure.gravatar.com/avatar/d39338246f50cca667c8256c313d7cfd.jpg?s=120&d=mm&r=g)
On 2013–03–07 Procházka Lukáš Ing. - Pontex s. r. o. wrote:
kind request - \simplealignedbox is not known to me - could anyone familar add some info to wiki?
It's 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.
\simplealignedbox{<width>}{
![](https://secure.gravatar.com/avatar/d6e7462bd4209f9c4cd08271985a50df.jpg?s=120&d=mm&r=g)
... OK, thanks to Marco and Wolfgang.
Best regads,
Lukas
On Thu, 07 Mar 2013 15:09:01 +0100, Marco Patzer
On 2013–03–07 Procházka Lukáš Ing. - Pontex s. r. o. wrote:
kind request - \simplealignedbox is not known to me - could anyone familar add some info to wiki?
It's 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.
\simplealignedbox{<width>}{
}{<content>} translates to
\hbox to <width>{<content>\hss} %% left alignment \hbox to <width>{\hss<content>} %% right alignment \hbox to <width>{\hss<content>\hss}
\hss pushes the content to the left or right, respectively.
Marco
-- Ing. Lukáš Procházka [mailto:LPr@pontex.cz] Pontex s. r. o. [mailto:pontex@pontex.cz] [http://www.pontex.cz] Bezová 1658 147 14 Praha 4 Tel: +420 244 062 238 Fax: +420 244 461 038
participants (5)
-
Marco Patzer
-
Meer, H. van der
-
Procházka Lukáš Ing. - Pontex s. r. o.
-
Thomas A. Schmitz
-
Wolfgang Schuster