From: Matthias Weber <matweber@indiana.edu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Three questions about descriptions
Date: Fri, 25 Jul 2014 20:02:22 -0400 [thread overview]
Message-ID: <F6BAD004-5F26-4C2C-AF5C-4C946A4BD10D@indiana.edu> (raw)
In-Reply-To: <53D2B80D.9070907@rik.users.panix.com>
[-- Attachment #1.1.1: Type: text/plain, Size: 2470 bytes --]
Thanks Rik,
that does exactly what I want.
Matthias
On Jul 25, 2014, at 4:03 PM, Rik Kabel <context@rik.users.panix.com> wrote:
> On 2014-07-25 14:56, Matthias Weber wrote:
>> Dear All,
>>
>> I’d like to use a mechanism that allows me to create an itemized list with my own labels like one can
>> with descriptions:
>>
>> \definedescription[outline][
>> headstyle=bold,style=normal,alternative=hanging,margin=1cm,distance=-.8cm]
>>
>> \starttext
>>
>> \outline[Welcome] Tea
>>
>> \outline[Introduction] Tufte or Knuth?
>>
>> \outline[Snack] Chocolate Cake
>>
>> \outline[Discussion] Knuth or Tufte?
>>
>> \outline[Open End] Bear and wine
>>
>> \stoptext
>>
>> However, instead of the above I would like to
>>
>> — have the result “packed”, i.e. without lines between the descriptions
>> — have a stopper (“:”) after the label
>> — have the text of the description begin after the stopper and not at a fixed indentation (distance=…)
>>
>> How do I do that?
>>
>> Thanks,
>>
>> Matthias
>>
>>
> The following works, but I suspect that there may be a better way to get the packing.
> \define[1]\outlinehead{#1:}
> \definedescription[outline]
> \setupdescription [outline]
> [headstyle=bold,
> style=normal,
> % alternative=hanging,
> width=fit,
> distance=1ex,
> before={\blank[back]},
> headcommand=\outlinehead,
> ]
>
> \starttext
>
> \outline{Welcome} Tea
>
> \outline{Introduction} Tufte or Knuth? and more and more and more and more to see what hanging does.
>
> \outline{Snack} Chocolate Cake
>
> \outline{Discussion} Knuth or Tufte?
>
> \outline{Open End} Bear and wine
>
> \stoptext
> Try it both with and without the hanging alternative.
>
> And for me, beer is preferable to bear.
> --
> Rik
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
[-- Attachment #1.1.2: Type: text/html, Size: 4473 bytes --]
[-- Attachment #1.2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 842 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
___________________________________________________________________________________
next prev parent reply other threads:[~2014-07-26 0:02 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-25 18:56 Matthias Weber
2014-07-25 20:03 ` Rik Kabel
2014-07-26 0:02 ` Matthias Weber [this message]
2014-07-26 8:34 ` Wolfgang Schuster
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=F6BAD004-5F26-4C2C-AF5C-4C946A4BD10D@indiana.edu \
--to=matweber@indiana.edu \
--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).