ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Special look of \item
Date: Wed, 28 May 2014 18:49:27 +0200	[thread overview]
Message-ID: <ED1078C6-E49D-4A08-B6A8-69F18B944203@gmail.com> (raw)
In-Reply-To: <op.xgkoxjvttpjj8f@lpr>


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
___________________________________________________________________________________

  reply	other threads:[~2014-05-28 16:49 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-28 13:54 Procházka Lukáš Ing. - Pontex s. r. o.
2014-05-28 16:49 ` Wolfgang Schuster [this message]
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.

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ED1078C6-E49D-4A08-B6A8-69F18B944203@gmail.com \
    --to=schuster.wolfgang@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).