[NTG-context] nomarking function in MKIV

Wolfgang Schuster schuster.wolfgang at googlemail.com
Thu Jul 1 00:35:44 CEST 2010


Am 30.06.10 10:19, schrieb Alan BRASLAU:
> On Tuesday 29 June 2010 19:33:55 Peter Münster wrote:
>> On Tue, Jun 29 2010, John Devereux wrote:
>>> ....so that "Short Title Rest Of Title" appears as the chapter 
>>> title, but
>>> just "Short Title" appears in the TOC, PDF bookmarks and footers.
>>
>> \setupinteraction[state=start]
>> \placebookmarks[all]
>> \setupfootertexts[chapter]
>> \starttext
>> \completecontent
>> \startchapter[title=long, list=short, bookmark=bookmark, marking=footer]
>> bla
>> \stopchapter
>> \stoptext
>>
>> Cheers, Peter
>
> Three points:
>
> [...]
>
> (2)
> Additionally,
> \chapter [title={First chapter},list={First}]
> does not work. Logically this should work just as \startchapter.
This won't happen but what you can do is to write a macro which accepts 
different values for
headers/footers, the running text and the toc (i know the entries in the 
toc and text are wrong).

\unprotect

\def\????ca{@@@@ca}

\unexpanded\def\caption
   {\dosingleargument\docaption}

\def\docaption[#1]%
   
{\getparameters[\????ca][\c!title=,\c!list=\@@@@catitle,\c!marking=\@@@@catitle,#1]%
    \doifmodeelse{*\v!marking}
      {\@@@@camarking}
      {\doifmodeelse{*\v!list}
         {\@@@@calist}
         {\@@@@catitle}}}

\protect

\setupheadertexts[chapter]

\starttext

\completecontent

\chapter{First Chapter}

\chapter{\caption[title=Second Chapter,list=Chapter Two,marking=Two]}

\stoptext

Wolfgang



More information about the ntg-context mailing list