From: "Christian" <metan0r@gmx.de>
To: "'mailing list for ConTeXt users'" <ntg-context@ntg.nl>
Subject: Re: itemize textstyle
Date: Thu, 7 Jul 2011 20:19:31 +0200 [thread overview]
Message-ID: <002101cc3cd2$6af399d0$40dacd70$@gmx.de> (raw)
In-Reply-To: <CDA2253E-334B-466F-BE8F-B27CBA86F74D@googlemail.com>
> >> \setupitemize[1][style=\bf\setff{smallcaps}]
> >> \setupitemize[3][style=\it]
> >> \setupitemize[4][style=\tfx,color=darkgray]
> >
> > I already tried the "sytle" parameter (option?). But it has no effect
> > :( Does it work for you?
>
> Wrong key, style is for the symbol/number of the item. A real setup key
for
> the content isn't available and the best i can do (without extra markup
> around each entry) is the following.
>
> \definefontfeature[smcp][smcp=yes]
>
> \setupitemize[1][command=\bf\addff{smcp}]
> \setupitemize[2][command=\tf\subfs{smcp}]
> \setupitemize[3][command=\it]
> \setupitemize[4][command=\tf\darkgray,color=black]
>
> \setupbodyfont[palatino]
>
> \starttext
>
> \startitemize
> \item One
> \startitemize
> \item Two
> \startitemize
> \item Three
> \startitemize
> \item Four
> \stopitemize
> \stopitemize
> \stopitemize
> \stopitemize
>
> \stoptext
>
> With some extra markup a better result is possible:
>
> \definefontfeature[smcp][smcp=yes]
>
> \definestartstop[itemzero] [before=\startitem,after=\stopitem,]
> \definestartstop[itemone] [itemzero][style=\bf\addff{smcp}]
> \definestartstop[itemtwo] [itemzero][style=\tf]
> \definestartstop[itemthree][itemzero][style=\it]
> \definestartstop[itemfour] [itemzero][style=\tfx,color=darkgray]
>
> \setupbodyfont[palatino]
>
> \starttext
>
> \startitemize
> \startitemone One \stopitemone
> \startitemize
> \startitemtwo Two \stopitemtwo
> \startitemize
> \startitemthree Three \stopitemthree
> \startitemize
> \startitemfour Four \stopitemfour
> \stopitemize
> \stopitemize
> \stopitemize
> \stopitemize
>
> \stoptext
>
> What you can also do is to ask Hans for style and color keys to change the
> layout of the itemize content (would then only be available when you use
> \startitem ... \stopitem).
Thank you very much for this example!
This is already more than enough for a starting point. I guess the style and
color keys for items might be an idea to hold on to. But at the moment I
neither do want to push this, nor is there the urgent need because of your
code. Also, there is surely enough work to do with more important stuff ;)
Thanks again!
___________________________________________________________________________________
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:[~2011-07-07 18:19 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-07 14:21 Christian
2011-07-07 15:12 ` Wolfgang Schuster
2011-07-07 16:53 ` Christian
2011-07-07 17:23 ` Wolfgang Schuster
2011-07-07 18:19 ` Christian [this message]
2011-07-07 18:35 ` 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='002101cc3cd2$6af399d0$40dacd70$@gmx.de' \
--to=metan0r@gmx.de \
--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).