[powerdot] Re: Customized table of contents-Howto

  • From: "Hendri Adriaens" <spotje@xxxxxxxxx>
  • To: powerdot <powerdot@xxxxxxxxxxxxx>
  • Date: Thu, 21 Jun 2007 14:05:57 +0200

Reply to the list please.

On 6/21/07, OG Ogunbade <s26433801@xxxxxxxxxx> wrote:
Hello,

Sorry for the misunderstanding. Language problems.

When a particular section is highlighted in stoc, I want ntoc to
display all the slides under this section and not only the current
slide as done by default.

I used this \def, though it gives the contents, I'm not convinced.
\def\pd@tocslide#1{
\ifnum\@tempcntb=\c@pd@section
\bfseries\ \pd@usedtocfont\color\pd@@tochltcolor#1
\else\bfseries\ #1\fi}

Do you have a better solution?

Prince

Quoting Hendri Adriaens <spotje@xxxxxxxxx>:

>> I want all the entries in both stoc & ntoc to be displayed such that their
>> activeness/non-activeness are kept intact.
>
> I don't understand what you want to do. stoc gives a section overview,
> ntoc the slides in the current section. The hlsections option (see
> docs) will keep sections highlighted in stoc.
>
>> The following macro gives the desired result for the stoc region:
>> \def\pd@tocsection#1{%
>> \ifnum\@tempcntb=\c@pd@section
>> \color{green}\ding{228}\bfseries\ \pd@usedtocfont\color\pd@@tochltcolor#1
>> \else\ding{228}\bfseries\ #1\fi}
>
> Did you forget % after #1 at the end of the line?
>
>> Also, when I tried to modify the (stoc/ntoc)-width options in this
>> present mode, it
>> produces overfull \hbox warning.
>
> The content doesn't fit the box.
>
> -Hendri.



This message and attachments are subject to a disclaimer. Please refer
to www.it.up.ac.za/documentation/governance/disclaimer/ for full
details. / Hierdie boodskap en aanhangsels is aan 'n vrywaringsklousule
onderhewig. Volledige besonderhede is by
www.it.up.ac.za/documentation/governance/disclaimer/ beskikbaar.




Other related posts: