ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: ToC problem
@ 2006-02-06 14:08 Elliot Clifton
  2006-02-06 15:16 ` Taco Hoekwater
  0 siblings, 1 reply; 10+ messages in thread
From: Elliot Clifton @ 2006-02-06 14:08 UTC (permalink / raw)


Hi Taco,

Thanks for the suggestion. It looks good.

I set up a test document, and cut and pased your example. Alas, it
won't compile.

Output from texexec:

! Undefined control sequence.
<argument> \ArticleTitle
                         -- \ArticleAuthor
\listtextcommand #1->\begstrut #1
                                 \endstrut
\doattributes ...sname #1#2\@EA \endcsname \fi {#4
                                                  }\dostopattributes
<argument> ... {\ArticleTitle -- \ArticleAuthor }}
                                                  \egroup \ifdim \wd 4=\zero...

\secondoftwoarguments #1#2->#2

\dosomelistelement ...hss \dostoplistattributes }}
                                                  \endgraf \nointerlineskip ...
...
l.16 ...- \ArticleAuthor }{2::0:2:0:0:0:0:0::1}{1}

Any idea what's wrong?

Thanks for your help.

Elliot

^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: ToC problem
@ 2006-02-12 11:26 Elliot Clifton
  0 siblings, 0 replies; 10+ messages in thread
From: Elliot Clifton @ 2006-02-12 11:26 UTC (permalink / raw)


Taco Hoekwater wrote

> Can you try \noexpand\nomarking ?
>
> (I'll double-check tomorrow)

Thanks, that works.

Elliot

^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: ToC problem
@ 2006-02-11 16:49 Elliot Clifton
  2006-02-12 10:42 ` Taco Hoekwater
  0 siblings, 1 reply; 10+ messages in thread
From: Elliot Clifton @ 2006-02-11 16:49 UTC (permalink / raw)


Hi Taco,

thanks for the start/stopArticle macro. Is there any way to make it
work with \nomarking? I need to be able truncate headings.

Elliot

^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: ToC problem
@ 2006-02-06 18:10 Elliot Clifton
  0 siblings, 0 replies; 10+ messages in thread
From: Elliot Clifton @ 2006-02-06 18:10 UTC (permalink / raw)


Taco Hoekwater, wrote:
>
> My mistake, sorry.
>
> You need and \expanded around the call to \Article, because
> otherwise the macro names \ArticleAuthor etc. end up in the
> list instead of their content. So please change that line to:
>
>    \expanded{\Article{\ArticleTitle -- \ArticleAuthor}}
>
> (you have to delete the current .tuo file also to make the
> error go away)
>

It works now. Thanks. Just what I wanted.

Elliot

^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: ToC problem
@ 2006-02-05 23:04 Elliot Clifton
  2006-02-06 10:18 ` Taco Hoekwater
  0 siblings, 1 reply; 10+ messages in thread
From: Elliot Clifton @ 2006-02-05 23:04 UTC (permalink / raw)



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

I found the cause of  the problem there was a problem with the value I was
passing to \chapter{} that prevented the chapter title from being shown in
the ToC.

I've a second ToC related question.

Is it possible to more text to a ToC entry?  As I want to list both chapter
titles and the author.

Something like:

[chapter-title][author].....................................[page no.]

Elliot

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

[-- Attachment #2: Type: text/plain, Size: 139 bytes --]

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

^ permalink raw reply	[flat|nested] 10+ messages in thread
* ToC Problem
@ 2006-02-05  0:30 Elliot Clifton
  2006-02-05 11:45 ` Taco Hoekwater
  0 siblings, 1 reply; 10+ messages in thread
From: Elliot Clifton @ 2006-02-05  0:30 UTC (permalink / raw)



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

Hi,

Article names are not displayed in my ToC, the seperators and page numbers
do appear though.

I set upmy heads, lists, and contents  as follows:

\definehead[Article][chapter]
\setuphead[Article][number=no]

\definelist[Article][alternative=c, criterium=all]

\definecombinedlist        [MyContent]
                [Article]
                [level=Article, placehead=yes, criterium=all, alternative=c]

The list will render  correctly but not the ToC. I could use the list rather
than the combined list, but I want get combined list working as I have yet
to have any success with them whem using my own heads.

Any ideas what I'm doing wrong?

Thanks,

Elliot

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

[-- Attachment #2: Type: text/plain, Size: 139 bytes --]

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

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

end of thread, other threads:[~2006-02-12 11:26 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-06 14:08 ToC problem Elliot Clifton
2006-02-06 15:16 ` Taco Hoekwater
  -- strict thread matches above, loose matches on Subject: below --
2006-02-12 11:26 Elliot Clifton
2006-02-11 16:49 Elliot Clifton
2006-02-12 10:42 ` Taco Hoekwater
2006-02-06 18:10 Elliot Clifton
2006-02-05 23:04 Elliot Clifton
2006-02-06 10:18 ` Taco Hoekwater
2006-02-05  0:30 ToC Problem Elliot Clifton
2006-02-05 11:45 ` Taco Hoekwater

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