ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Table of content in presentation example
@ 2017-05-12 20:08 cryo shock
  2017-05-12 20:16 ` cryo shock
  2017-05-13 15:30 ` Hans Hagen
  0 siblings, 2 replies; 5+ messages in thread
From: cryo shock @ 2017-05-12 20:08 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1442 bytes --]

Hi guys, I downloaded a sample presentation with component and example
presentation from a link off of ctxwiki. I will attach both files and a
premade PDF that shows what I mean.

So far I edited the component a little in display style, yet I don't know
why I can't get a simple table of content on the second slide.

In the component I found the following code:

\definehead
    [slide]
    [subject]
    [
      style=\ssbfc,
      color=foreground:contrast,
      alternative=middle,
      page=yes
    ]

So I understand that the head called slide comes from the head subject,
which by default isn't shown in the table of content. So I searched ctxwiki
for table of content and modified the above setup to

\definehead
    [slide]
    [subject]  % default: subject
    [
      style=\ssbfc,
      color=foreground:contrast,
      alternative=middle,
      page=yes,
*      incrementnumber=yes,  % keep track of the number*
*      number=no             % but don't show it*
    ]

I also added the following line:

\setuplist[subject][width=2cm]

The example .tex then starts with

\starttext

\setvariables
...
\startslide
...
\stopslide
...
\stoptext

So I inserted another \startslide \stopslide with \placecontent in between:

\startslide[title={T.o.c.}]
  \placecontent
\stopslide

Yet the rendered PDF shows only a blank page where the TOC is supposed to
be.

Can anybody tell me what I am doing wrong?
Thanks in advance,

Sebastian

[-- Attachment #1.2: Type: text/html, Size: 4505 bytes --]

[-- Attachment #2: pres-c-slides.tex --]
[-- Type: application/x-tex, Size: 4266 bytes --]

[-- Attachment #3: pres-p-example.pdf --]
[-- Type: application/pdf, Size: 42654 bytes --]

[-- Attachment #4: pres-p-example.tex --]
[-- Type: application/x-tex, Size: 1639 bytes --]

[-- Attachment #5: Type: text/plain, Size: 492 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-05-13 15:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-12 20:08 Table of content in presentation example cryo shock
2017-05-12 20:16 ` cryo shock
2017-05-12 21:03   ` cryo shock
2017-05-12 22:01     ` cryo shock
2017-05-13 15:30 ` Hans Hagen

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).