With this code mkii and mkiv make differents pdf : mkiv doesn't show the header after the second \part. Perhaps \getmarking is obsolete ? \setuppagenumbering[way=bytext,partnumber=no,location={margin},alternative=doublesided] \setupcolors[state=start] \setupinteraction[state=start] \setupbodyfont[ss] \setuppapersize[A4][A4] \setuphead[part] [placehead=yes, page=right] \setuphead[chapter] [placehead=yes,page=yes,before=,after=,] \setuphead[section] [placehead=yes,page=yes,before=,after=,] \setuphead[subsection] [placehead=yes,before=,after=,] \def\ChapterId#1{\setupheadertexts[text] [{}] [{\getmarking[chapter][first]---\getmarking[section][first]}] [{\getmarking[chapter][first]---\getmarking[section][first]}] [{}]} \starttext \part{Part} \chapter{Chapter} \ChapterId{} \section{Section} foo \chapter{Chapter} \ChapterId{} \section{Section} goo %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \part{Part} \chapter{Chapter} \ChapterId{} \section{Section} foo \chapter{Chapter} \ChapterId{} \section{Section} goo \stoptext -- luigi
On Mon, Nov 22, 2010 at 3:47 PM, luigi scarso
With this code mkii and mkiv make differents pdf : mkiv doesn't show the header after the second \part. Perhaps \getmarking is obsolete ?
\setuppagenumbering[way=bytext,partnumber=no,location={margin},alternative=doublesided]
\setupcolors[state=start] \setupinteraction[state=start]
\setupbodyfont[ss] \setuppapersize[A4][A4]
\setuphead[part] [placehead=yes, page=right] \setuphead[chapter] [placehead=yes,page=yes,before=,after=,] \setuphead[section] [placehead=yes,page=yes,before=,after=,] \setuphead[subsection] [placehead=yes,before=,after=,]
\def\ChapterId#1{\setupheadertexts[text] [{}] [{\getmarking[chapter][first]---\getmarking[section][first]}] [{\getmarking[chapter][first]---\getmarking[section][first]}] [{}]}
\starttext \part{Part} \chapter{Chapter} \ChapterId{} \section{Section} foo
\chapter{Chapter} \ChapterId{} \section{Section} goo
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\part{Part} \chapter{Chapter} \ChapterId{} \section{Section} foo
\chapter{Chapter} \ChapterId{} \section{Section} goo
\stoptext Hm I cannot see a solution --- perhaps a bug ?
-- luigi
Am 23.11.2010 um 11:14 schrieb luigi scarso:
Hm I cannot see a solution --- perhaps a bug ?
I think so and i hope this is the correct solution: \unprotect %setvalue{\??nh:\??mk:y:\v!page }{\resetcurrentstructuremarks} % strc-sec.mkiv \setvalue{\??nh:\??mk:y:\v!page }{} \protect \setuphead[part][placehead=yes,marking=page] \setupheadertexts[{\getmarking[part][first]\ – \getmarking[chapter][first]\ – \getmarking[section][first]}] \starttext \dorecurse{2} {\part{Part #1} \dorecurse{2} {\chapter{Chapter #1-##1} \section{Section #1-##1}}} \stoptext Wolfgang
On Tue, Nov 23, 2010 at 12:32 PM, Wolfgang Schuster
Am 23.11.2010 um 11:14 schrieb luigi scarso:
Hm I cannot see a solution --- perhaps a bug ?
I think so and i hope this is the correct solution:
\unprotect %setvalue{\??nh:\??mk:y:\v!page }{\resetcurrentstructuremarks} % strc-sec.mkiv \setvalue{\??nh:\??mk:y:\v!page }{} \protect
\setuphead[part][placehead=yes,marking=page]
\setupheadertexts[{\getmarking[part][first]\ – \getmarking[chapter][first]\ – \getmarking[section][first]}]
\starttext
\dorecurse{2} {\part{Part #1} \dorecurse{2} {\chapter{Chapter #1-##1} \section{Section #1-##1}}}
\stoptext
It's ok with the example, but I've another test that is still wrong, but it's too much long -- I must simplify it. -- luigi
On Tue, Nov 23, 2010 at 1:29 PM, luigi scarso
On Tue, Nov 23, 2010 at 12:32 PM, Wolfgang Schuster
wrote: Am 23.11.2010 um 11:14 schrieb luigi scarso:
Hm I cannot see a solution --- perhaps a bug ?
I think so and i hope this is the correct solution:
\unprotect %setvalue{\??nh:\??mk:y:\v!page }{\resetcurrentstructuremarks} % strc-sec.mkiv \setvalue{\??nh:\??mk:y:\v!page }{} \protect
\setuphead[part][placehead=yes,marking=page]
\setupheadertexts[{\getmarking[part][first]\ – \getmarking[chapter][first]\ – \getmarking[section][first]}]
\starttext
\dorecurse{2} {\part{Part #1} \dorecurse{2} {\chapter{Chapter #1-##1} \section{Section #1-##1}}}
\stoptext
It's ok with the example, but I've another test that is still wrong, but it's too much long -- I must simplify it. No, my example was wrong. The patch seems to work ok .
-- luigi
On 23-11-2010 12:32, Wolfgang Schuster wrote:
Am 23.11.2010 um 11:14 schrieb luigi scarso:
Hm I cannot see a solution --- perhaps a bug ?
I think so and i hope this is the correct solution:
\unprotect %setvalue{\??nh:\??mk:y:\v!page }{\resetcurrentstructuremarks} % strc-sec.mkiv \setvalue{\??nh:\??mk:y:\v!page }{} \protect
I'll patch it but I don't have time now to check it. ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
On Fri, Nov 26, 2010 at 5:11 PM, Hans Hagen
On 23-11-2010 12:32, Wolfgang Schuster wrote:
Am 23.11.2010 um 11:14 schrieb luigi scarso:
Hm I cannot see a solution --- perhaps a bug ?
I think so and i hope this is the correct solution:
\unprotect %setvalue{\??nh:\??mk:y:\v!page }{\resetcurrentstructuremarks} % strc-sec.mkiv \setvalue{\??nh:\??mk:y:\v!page }{} \protect
I'll patch it but I don't have time now to check it. It seems ok, at least with my last one-thousand-pages pdf .
-- luigi
participants (3)
-
Hans Hagen
-
luigi scarso
-
Wolfgang Schuster