![](https://secure.gravatar.com/avatar/386a116d129cdc597f2bb6210bbaff7a.jpg?s=120&d=mm&r=g)
I have the following \starttext %%\placemaincontent \chapter{AAA} \section{Hause one} Foo one \page \section{Hause two} Foo two \page \section{Hause three} Foo three \page \section{Hause four} Foo four\page \section{Dog boo} Koo \page \section{Dog foo} Boo \page \section{Money ba} Boo \page \section{Mail bee} Ugh \page \stoptext In main content I should like to have \bf{AAA} %% no problem here \bf{HAUSE} one ..... page x Hause two ..............page x Hause three............page x Hause four ..............page x \bf{DOG} boo ...........page x Dog foo.....................page x \bf{MONEY} ba.........page x \bf{MAIL} bee.............page x 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). Many thanks in advance luigi
![](https://secure.gravatar.com/avatar/565476157eb3895a9c928ffce26d988d.jpg?s=120&d=mm&r=g)
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
![](https://secure.gravatar.com/avatar/386a116d129cdc597f2bb6210bbaff7a.jpg?s=120&d=mm&r=g)
On 3/6/07, Taco Hoekwater
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}]
participants (2)
-
luigi scarso
-
Taco Hoekwater