Re: [NTG-context] Problems with getmarking
On Tue, Nov 23, 2010 at 1:29 PM, luigi scarso luigi.sca...@gmail.com wrote: On Tue, Nov 23, 2010 at 12:32 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com 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 ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Problems with getmarking
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 - ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Problems with getmarking
On Fri, Nov 26, 2010 at 5:11 PM, Hans Hagen pra...@wxs.nl wrote: 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 ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Problems with getmarking
On Mon, Nov 22, 2010 at 3:47 PM, luigi scarso luigi.sca...@gmail.com wrote: 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 ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Problems with getmarking
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 ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Problems with getmarking
On Tue, Nov 23, 2010 at 12:32 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com 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. -- luigi ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Problems with getmarking
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 ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___