ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "luigi scarso" <luigi.scarso@gmail.com>
To: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Subject: Re: An Index problem (repost)
Date: Tue, 6 Mar 2007 12:11:23 +0100	[thread overview]
Message-ID: <fe8d59da0703060311u1b62777ap8d7cc051b84e0ca1@mail.gmail.com> (raw)
In-Reply-To: <45ED3706.6030108@elvenkind.com>

On 3/6/07, Taco Hoekwater <taco@elvenkind.com> wrote:
>
> Hi Luigi,
>
> Sorry, no time right now for an elaborate example.
>
> luigi scarso wrote:
> >
> > ie, the very first word in bold face and upper case,
> > the following in normal face if and only of the very first word was
> > equal to the first
> > word of actual item (I know, it's strange).
>
> I would propose you create your own combined list
> (\definecombinedlist) and use that instead of the TOC.
> You have to write the items to that list explicitly then,
> but it would be reasonably straightforward.
>
>
> Another option is to create a dummy macro that you
> redefine where it is needed.
>
>
>     \unexpanded \def\tocbf#1{{\bf #1}}
> vs
>     \unexpanded \def\tocbf#1{#}
>
> and
>     \section{\tocbf{Bold} ..}
>
> Best, Taco

OK.

\def\SectionCommand#1#2#3{%
%% something like this ??
%% (check for #1)
%% if #1 == 1
%% then
%%   put bold+CAP #2
%%   store #2 in LastSecTitle
%% else
%%   if #2 == LastSecTile
%%   then
%%      put normal #2
%%   else
%%      put bold+CAP #2
%%      store #2 in LastSecTitle
%%
}%
\setuplist[section]
          [alternative=none,
	   sectionnumber=no, partnumber=no,
	   command={\SectionCommand}]

      reply	other threads:[~2007-03-06 11:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-06  8:44 luigi scarso
2007-03-06  9:40 ` Taco Hoekwater
2007-03-06 11:11   ` luigi scarso [this message]

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=fe8d59da0703060311u1b62777ap8d7cc051b84e0ca1@mail.gmail.com \
    --to=luigi.scarso@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).