* Problems with getmarking
@ 2010-11-22 14:47 luigi scarso
2010-11-23 10:14 ` luigi scarso
0 siblings, 1 reply; 7+ messages in thread
From: luigi scarso @ 2010-11-22 14:47 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Problems with getmarking
2010-11-22 14:47 Problems with getmarking luigi scarso
@ 2010-11-23 10:14 ` luigi scarso
2010-11-23 11:32 ` Wolfgang Schuster
0 siblings, 1 reply; 7+ messages in thread
From: luigi scarso @ 2010-11-23 10:14 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Mon, Nov 22, 2010 at 3:47 PM, luigi scarso <luigi.scarso@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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Problems with getmarking
2010-11-23 10:14 ` luigi scarso
@ 2010-11-23 11:32 ` Wolfgang Schuster
2010-11-23 12:29 ` luigi scarso
2010-11-26 16:11 ` Hans Hagen
0 siblings, 2 replies; 7+ messages in thread
From: Wolfgang Schuster @ 2010-11-23 11:32 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Problems with getmarking
2010-11-23 11:32 ` Wolfgang Schuster
@ 2010-11-23 12:29 ` luigi scarso
2010-11-26 10:49 ` luigi scarso
2010-11-26 16:11 ` Hans Hagen
1 sibling, 1 reply; 7+ messages in thread
From: luigi scarso @ 2010-11-23 12:29 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Tue, Nov 23, 2010 at 12:32 PM, Wolfgang Schuster
<schuster.wolfgang@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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Problems with getmarking
2010-11-23 12:29 ` luigi scarso
@ 2010-11-26 10:49 ` luigi scarso
0 siblings, 0 replies; 7+ messages in thread
From: luigi scarso @ 2010-11-26 10:49 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Tue, Nov 23, 2010 at 1:29 PM, luigi scarso <luigi.scarso@gmail.com> wrote:
> On Tue, Nov 23, 2010 at 12:32 PM, Wolfgang Schuster
> <schuster.wolfgang@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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Problems with getmarking
2010-11-23 11:32 ` Wolfgang Schuster
2010-11-23 12:29 ` luigi scarso
@ 2010-11-26 16:11 ` Hans Hagen
2010-11-26 16:15 ` luigi scarso
1 sibling, 1 reply; 7+ messages in thread
From: Hans Hagen @ 2010-11-26 16:11 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Problems with getmarking
2010-11-26 16:11 ` Hans Hagen
@ 2010-11-26 16:15 ` luigi scarso
0 siblings, 0 replies; 7+ messages in thread
From: luigi scarso @ 2010-11-26 16:15 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Fri, Nov 26, 2010 at 5:11 PM, Hans Hagen <pragma@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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2010-11-26 16:15 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-22 14:47 Problems with getmarking luigi scarso
2010-11-23 10:14 ` luigi scarso
2010-11-23 11:32 ` Wolfgang Schuster
2010-11-23 12:29 ` luigi scarso
2010-11-26 10:49 ` luigi scarso
2010-11-26 16:11 ` Hans Hagen
2010-11-26 16:15 ` luigi scarso
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).