* Special look of \item
@ 2014-05-28 13:54 Procházka Lukáš Ing. - Pontex s. r. o.
2014-05-28 16:49 ` Wolfgang Schuster
0 siblings, 1 reply; 5+ messages in thread
From: Procházka Lukáš Ing. - Pontex s. r. o. @ 2014-05-28 13:54 UTC (permalink / raw)
To: ConTeXt
Hello,
is there a way how to achieve the following look of items inside \staritemize ... \stopitemize:
|<-- textwidth ------>|
* Item - abc def ghi
jlk mn op qrst
uw xyz
Some other text that
belongs to the item.
* Longer item -
abc def ghi
jlk mn op qrst
uw xyz
Some other text that
belongs to the longer
item.
----
\starttext
\startitemize
\item
Item - abc def ghi
jlk mn op qrst
uw xyz
Some other text that
belongs to the item.
\items
Longer item -
abc def ghi
jlk mn op qrst
uw xyz
Some other text that
belongs to the longer
item.
\stopitemize
\stoptext
----
I played with h-, v-, t-, s- and other boxes, with b/eTABLE but I'm not able to get the desired result...
Thank you in advance.
Best regards,
Lukas
--
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 241 096 751
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] 5+ messages in thread
* Re: Special look of \item
2014-05-28 13:54 Special look of \item Procházka Lukáš Ing. - Pontex s. r. o.
@ 2014-05-28 16:49 ` Wolfgang Schuster
2014-05-29 6:36 ` Procházka Lukáš Ing. - Pontex s. r. o.
0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Schuster @ 2014-05-28 16:49 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 28.05.2014 um 15:54 schrieb Procházka Lukáš Ing. - Pontex s. r. o. <LPr@pontex.cz>:
> Hello,
>
> is there a way how to achieve the following look of items inside \staritemize ... \stopitemize:
>
>
> |<-- textwidth ------>|
>
> * Item - abc def ghi
> jlk mn op qrst
> uw xyz
>
> Some other text that
> belongs to the item.
>
> * Longer item -
> abc def ghi
> jlk mn op qrst
> uw xyz
>
> Some other text that
> belongs to the longer
> item.
>
>
> ----
>
> \starttext
> \startitemize
> \item
> Item - abc def ghi
> jlk mn op qrst
> uw xyz
>
> Some other text that
> belongs to the item.
>
> \items
> Longer item -
> abc def ghi
> jlk mn op qrst
> uw xyz
>
> Some other text that
> belongs to the longer
> item.
>
> \stopitemize
> \stoptext
>
> ----
>
> I played with h-, v-, t-, s- and other boxes, with b/eTABLE but I'm not able to get the desired result…
\define[1]\ItemCommand
{\hangindent=1em\relax
#1 – \ignorespaces}
\setupitemize[command=\ItemCommand]
\starttext
\startitemize
\item{Ward} \input ward
\input ward
\item{Zapf} \input zapf
\input zapf
\stopitemize
\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] 5+ messages in thread
* Re: Special look of \item
2014-05-28 16:49 ` Wolfgang Schuster
@ 2014-05-29 6:36 ` Procházka Lukáš Ing. - Pontex s. r. o.
2014-05-29 16:05 ` Aditya Mahajan
0 siblings, 1 reply; 5+ messages in thread
From: Procházka Lukáš Ing. - Pontex s. r. o. @ 2014-05-29 6:36 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: ddv
[-- Attachment #1: Type: text/plain, Size: 741 bytes --]
... Thanks a lot, that gave me a hint!
Finally I'm using:
----
\define[1]\ItemCommand{\hangindent=1.5in\relax\simplealignedbox{1.5in}{flushleft}{#1\hss--- }\ignorespaces}
\setupitemize[command=\ItemCommand]
\starttext
\startitemize
\item{Ward} \input ward
\input ward
\item{Knuth} \input knuth
\stopitemize
\stoptext
----
BTW: I tried to wikify but the result differs from that I'm getting with the latest beta (attached to this mail);
so I wikified nothing.
Best regards,
Lukas
--
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 241 096 751
Fax: +420 244 461 038
[-- Attachment #2: Item.mkiv --]
[-- Type: application/octet-stream, Size: 304 bytes --]
\define[1]\ItemCommand{\hangindent=1.5in\relax\simplealignedbox{1.5in}{flushleft}{#1\hss--- }\ignorespaces}
\setupitemize[command=\ItemCommand]
%\showboxes
\starttext
\startitemize
\item{Ward} \input ward
\input ward
\item{Knuth} \input knuth
\stopitemize
\stoptext
[-- Attachment #3: Item.pdf --]
[-- Type: application/pdf, Size: 11971 bytes --]
[-- Attachment #4: 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] 5+ messages in thread
* Re: Special look of \item
2014-05-29 6:36 ` Procházka Lukáš Ing. - Pontex s. r. o.
@ 2014-05-29 16:05 ` Aditya Mahajan
2014-05-30 8:07 ` Procházka Lukáš Ing. - Pontex s. r. o.
0 siblings, 1 reply; 5+ messages in thread
From: Aditya Mahajan @ 2014-05-29 16:05 UTC (permalink / raw)
To: mailing list for ConTeXt users
> BTW: I tried to wikify but the result differs from that I'm getting with the
> latest beta (attached to this mail);
> so I wikified nothing.
The wiki uses an old context version. You should try the example with
<context mode="mkiv" source="yes">
...
</context>
If not, post the code and upload the image from your computer. That is
better than not adding this to the wiki at all!
Aditya
___________________________________________________________________________________
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] 5+ messages in thread
* Re: Special look of \item
2014-05-29 16:05 ` Aditya Mahajan
@ 2014-05-30 8:07 ` Procházka Lukáš Ing. - Pontex s. r. o.
0 siblings, 0 replies; 5+ messages in thread
From: Procházka Lukáš Ing. - Pontex s. r. o. @ 2014-05-30 8:07 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hello,
On Thu, 29 May 2014 18:05:47 +0200, Aditya Mahajan <adityam@umich.edu> wrote:
>> BTW: I tried to wikify but the result differs from that I'm getting with the
>> latest beta (attached to this mail);
>> so I wikified nothing.
>
> The wiki uses an old context version. You should try the example with
>
> <context mode="mkiv" source="yes">
> ...
> </context>
Yes, this is what I'm normally using.
> If not, post the code and upload the image from your computer.That is better than not adding this to the wiki at all!
(It was not truth that Ctx wiki didn't compile the exmaple - but it produced another output than the latest Ctx beta!)
Anyway, wikified using an image: http://wiki.contextgarden.net/Command/item
Best regards,
Lukas
>
> Aditya
--
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 241 096 751
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] 5+ messages in thread
end of thread, other threads:[~2014-05-30 8:07 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-28 13:54 Special look of \item Procházka Lukáš Ing. - Pontex s. r. o.
2014-05-28 16:49 ` Wolfgang Schuster
2014-05-29 6:36 ` Procházka Lukáš Ing. - Pontex s. r. o.
2014-05-29 16:05 ` Aditya Mahajan
2014-05-30 8:07 ` Procházka Lukáš Ing. - Pontex s. r. o.
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).