Re: [NTG-context] ToC problem

2006-02-12 Thread Elliot Clifton
Taco Hoekwater wrote

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

Thanks, that works.

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


Re: [NTG-context] ToC problem

2006-02-12 Thread Taco Hoekwater
Elliot Clifton wrote:
> 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.

Can you try \noexpand\nomarking ?

(I'll double-check tomorrow)

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


Re: [NTG-context] ToC problem

2006-02-11 Thread Elliot Clifton
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
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] ToC problem

2006-02-06 Thread Elliot Clifton
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
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] ToC problem

2006-02-06 Thread Taco Hoekwater


Elliot Clifton wrote:
> 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.

> Any idea what's wrong?

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)

Cheers, Taco
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] ToC problem

2006-02-06 Thread Elliot Clifton
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.
 \ArticleTitle
 -- \ArticleAuthor
\listtextcommand #1->\begstrut #1
 \endstrut
\doattributes ...sname [EMAIL PROTECTED] \endcsname \fi {#4
  }\dostopattributes
 ... {\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
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] ToC problem

2006-02-06 Thread Taco Hoekwater


Elliot Clifton wrote:
> 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.

Here is a trick that may help:

% in environment file:
\setuphead[chapter][number=no]
\definehead[Article][chapter]
\setuphead[Article][number=no,placehead=no,before=,after=,page=]
\definecombinedlist[Article][Article][alternative=c]

\def\startArticle[#1]%
   {\begingroup
\getparameters[Article][#1]%
\chapter{\ArticleTitle}%   this is typeset
\Article{\ArticleTitle -- \ArticleAuthor}% this is the toc entry
}

\def\stopArticle%
   {\blank\rightline{\ArticleAuthor}\endgroup}

% in text
\starttext
\placecombinedlist[Article]
\startArticle[Author=Thor,Title=The title]
.
\stopArticle
\stoptext
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] ToC problem

2006-02-05 Thread Elliot Clifton
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 
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] ToC Problem

2006-02-05 Thread Taco Hoekwater
Elliot Clifton wrote:
> 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?

It works for me. But your definition of success may be different
from mine, so I suggest posting a minimal file exhibiting the error.

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


[NTG-context] ToC Problem

2006-02-04 Thread Elliot Clifton
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
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context