ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* itemize
@ 2013-03-04 12:52 Meer, H. van der
  2013-03-04 13:19 ` itemize Marco Patzer
  0 siblings, 1 reply; 9+ messages in thread
From: Meer, H. van der @ 2013-03-04 12:52 UTC (permalink / raw)
  To: ConTeXt NTG


[-- Attachment #1.1: Type: text/plain, Size: 271 bytes --]

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




[-- Attachment #1.2: Type: text/html, Size: 1925 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: itemize
  2013-03-04 12:52 itemize Meer, H. van der
@ 2013-03-04 13:19 ` Marco Patzer
  2013-03-04 13:34   ` itemize Meer, H. van der
  2013-03-07 13:40   ` \simplealignedbox (was: itemize) Procházka Lukáš Ing. - Pontex s. r. o.
  0 siblings, 2 replies; 9+ messages in thread
From: Marco Patzer @ 2013-03-04 13:19 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 447 bytes --]

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

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 490 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: itemize
  2013-03-04 13:19 ` itemize Marco Patzer
@ 2013-03-04 13:34   ` Meer, H. van der
  2013-03-04 14:06     ` itemize Marco Patzer
  2013-03-07 13:40   ` \simplealignedbox (was: itemize) Procházka Lukáš Ing. - Pontex s. r. o.
  1 sibling, 1 reply; 9+ messages in thread
From: Meer, H. van der @ 2013-03-04 13:34 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1350 bytes --]

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 <homerow@lavabit.com<mailto:homerow@lavabit.com>> wrote:

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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl<mailto:ntg-context@ntg.nl> / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


[-- Attachment #1.2: Type: text/html, Size: 3391 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: itemize
  2013-03-04 13:34   ` itemize Meer, H. van der
@ 2013-03-04 14:06     ` Marco Patzer
  0 siblings, 0 replies; 9+ messages in thread
From: Marco Patzer @ 2013-03-04 14:06 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 374 bytes --]

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

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 490 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: \simplealignedbox (was: itemize)
  2013-03-04 13:19 ` itemize Marco Patzer
  2013-03-04 13:34   ` itemize Meer, H. van der
@ 2013-03-07 13:40   ` Procházka Lukáš Ing. - Pontex s. r. o.
  2013-03-07 14:06     ` Wolfgang Schuster
  2013-03-07 14:09     ` Marco Patzer
  1 sibling, 2 replies; 9+ messages in thread
From: Procházka Lukáš Ing. - Pontex s. r. o. @ 2013-03-07 13:40 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: \simplealignedbox (was: itemize)
  2013-03-07 13:40   ` \simplealignedbox (was: itemize) Procházka Lukáš Ing. - Pontex s. r. o.
@ 2013-03-07 14:06     ` Wolfgang Schuster
  2013-03-07 14:09     ` Marco Patzer
  1 sibling, 0 replies; 9+ messages in thread
From: Wolfgang Schuster @ 2013-03-07 14:06 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 07.03.2013 um 14:40 schrieb Procházka Lukáš Ing. - Pontex s. r. o. <LPr@pontex.cz>:

> 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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: \simplealignedbox (was: itemize)
  2013-03-07 13:40   ` \simplealignedbox (was: itemize) Procházka Lukáš Ing. - Pontex s. r. o.
  2013-03-07 14:06     ` Wolfgang Schuster
@ 2013-03-07 14:09     ` Marco Patzer
  2013-03-07 14:11       ` [***Spam/VIR***] " Procházka Lukáš Ing. - Pontex s. r. o.
  1 sibling, 1 reply; 9+ messages in thread
From: Marco Patzer @ 2013-03-07 14:09 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 643 bytes --]

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>}{<left|right|flushleft|flushright|middle>}{<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

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 490 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [***Spam/VIR***] Re: \simplealignedbox (was: itemize)
  2013-03-07 14:09     ` Marco Patzer
@ 2013-03-07 14:11       ` Procházka Lukáš Ing. - Pontex s. r. o.
  2013-03-08  8:05         ` \simplealignedbox Thomas A. Schmitz
  0 siblings, 1 reply; 9+ messages in thread
From: Procházka Lukáš Ing. - Pontex s. r. o. @ 2013-03-07 14:11 UTC (permalink / raw)
  To: mailing list for ConTeXt users

... OK, thanks to Marco and Wolfgang.

Best regads,

Lukas


On Thu, 07 Mar 2013 15:09:01 +0100, Marco Patzer <homerow@lavabit.com> wrote:

> 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>}{<left|right|flushleft|flushright|middle>}{<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

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: \simplealignedbox
  2013-03-07 14:11       ` [***Spam/VIR***] " Procházka Lukáš Ing. - Pontex s. r. o.
@ 2013-03-08  8:05         ` Thomas A. Schmitz
  0 siblings, 0 replies; 9+ messages in thread
From: Thomas A. Schmitz @ 2013-03-08  8:05 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 03/07/2013 03:11 PM, Procházka Lukáš Ing. - Pontex s. r. o. wrote:
> ... OK, thanks to Marco and Wolfgang.
>
> Best regads,
>
> Lukas

So did you add it to the wiki?

Thomas
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2013-03-08  8:05 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-04 12:52 itemize Meer, H. van der
2013-03-04 13:19 ` itemize Marco Patzer
2013-03-04 13:34   ` itemize Meer, H. van der
2013-03-04 14:06     ` itemize Marco Patzer
2013-03-07 13:40   ` \simplealignedbox (was: itemize) Procházka Lukáš Ing. - Pontex s. r. o.
2013-03-07 14:06     ` Wolfgang Schuster
2013-03-07 14:09     ` Marco Patzer
2013-03-07 14:11       ` [***Spam/VIR***] " Procházka Lukáš Ing. - Pontex s. r. o.
2013-03-08  8:05         ` \simplealignedbox Thomas A. Schmitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).