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
Am 28.05.2014 um 15:54 schrieb Procházka Lukáš Ing. - Pontex s. r. o.
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
... 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
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
Hello,
On Thu, 29 May 2014 18:05:47 +0200, Aditya Mahajan
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
participants (3)
-
Aditya Mahajan
-
Procházka Lukáš Ing. - Pontex s. r. o.
-
Wolfgang Schuster